|
|
@ -1,5 +1,4 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
@ -14,8 +13,10 @@ redirectifnotloggedin();
|
|
|
|
<table id="cattable" class="table table-bordered table-striped">
|
|
|
|
<table id="cattable" class="table table-bordered table-striped">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th><?php lang('actions'); ?></th>
|
|
|
|
<th data-priority="0"></th>
|
|
|
|
<th><i class="fa fa-archive hidden-xs"></i> <?php lang('category'); ?></th>
|
|
|
|
<th data-priority="1"><?php lang('actions'); ?></th>
|
|
|
|
|
|
|
|
<th data-priority="1"><i class="fa fa-archive hidden-xs"></i> <?php lang('category'); ?></th>
|
|
|
|
|
|
|
|
<th data-priority="2"><i class="fa fa-hashtag hidden-xs"></i> <?php lang('item count'); ?></th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
@ -25,12 +26,15 @@ redirectifnotloggedin();
|
|
|
|
'catname'
|
|
|
|
'catname'
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
foreach ($cats as $cat) {
|
|
|
|
foreach ($cats as $cat) {
|
|
|
|
|
|
|
|
$itemcount = $database->count('items', ['catid' => $cat['catid']]);
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td></td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<a class="btn btn-primary btn-xs" href="app.php?page=editcat&id=<?php echo $cat['catid']; ?>"><i class="fa fa-pencil-square-o"></i> <?php lang("edit"); ?></a>
|
|
|
|
<a class="btn btn-primary btn-xs" href="app.php?page=editcat&id=<?php echo $cat['catid']; ?>"><i class="fa fa-pencil-square-o"></i> <?php lang("edit"); ?></a>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td><?php echo $cat['catname']; ?></td>
|
|
|
|
<td><?php echo $cat['catname']; ?></td>
|
|
|
|
|
|
|
|
<td><?php echo $itemcount; ?></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -38,8 +42,10 @@ redirectifnotloggedin();
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th><?php lang('actions'); ?></th>
|
|
|
|
<th data-priority="0"></th>
|
|
|
|
<th><i class="fa fa-archive"></i> <?php lang('category'); ?></th>
|
|
|
|
<th data-priority="1"><?php lang('actions'); ?></th>
|
|
|
|
|
|
|
|
<th data-priority="1"><i class="fa fa-archive hidden-xs"></i> <?php lang('category'); ?></th>
|
|
|
|
|
|
|
|
<th data-priority="2"><i class="fa fa-hashtag hidden-xs"></i> <?php lang('item count'); ?></th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</table>
|