bludit/bl-kernel/admin/views/categories.php

31 lines
745 B
PHP
Raw Normal View History

2017-04-17 12:49:03 +02:00
<?php
2017-04-26 20:16:34 +02:00
HTML::title(array('title'=>$L->g('Categories'), 'icon'=>'tag'));
2017-04-17 12:49:03 +02:00
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'new-category"><i class="uk-icon-plus"></i> '.$L->g('Add a new category').'</a>';
echo '
<table class="uk-table uk-table-striped">
<thead>
<tr>
<th>'.$L->g('Name').'</th>
2017-05-16 00:46:20 +02:00
<th>'.$L->g('URL').'</th>
2017-04-17 12:49:03 +02:00
</tr>
</thead>
<tbody>
';
2017-05-16 00:46:20 +02:00
$categories = $dbCategories->getKeyNameArray();
2017-04-17 12:49:03 +02:00
foreach($categories as $categoryKey=>$category)
{
echo '<tr>';
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'edit-category/'.$categoryKey.'">'.$category.'</a></td>';
2017-05-16 00:46:20 +02:00
echo '<td><a href="'.DOMAIN.$Url->filters('category', false).$categoryKey.'">'.DOMAIN.$Url->filters('category', false).$categoryKey.'</a></td>';
2017-04-17 12:49:03 +02:00
echo '</tr>';
}
echo '
</tbody>
</table>
';