diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-01-04 01:55:59 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-04 01:55:59 +0000 |
| commit | 2c274694127f5127fef311c13d265a9099dd629d (patch) | |
| tree | f2c855e5306822a14ffaef9a4f6ec3734a4890db /modules/tag/views | |
| parent | 08c9745086a51accf6e561d6e8ac2a9ab7582ef7 (diff) | |
Simple admin tags interface.
Diffstat (limited to 'modules/tag/views')
| -rw-r--r-- | modules/tag/views/admin_tags.html.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/tag/views/admin_tags.html.php b/modules/tag/views/admin_tags.html.php new file mode 100644 index 00000000..9f2aa099 --- /dev/null +++ b/modules/tag/views/admin_tags.html.php @@ -0,0 +1,31 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<h1> <?= _("Tags") ?> </h1> + +<div id="gTagSearch"> + <form method="get" action="<?= url::site("admin/tags") ?>"> + <fieldset> + <legend> <?= _("Search Tags") ?> </legend> + <input name="filter" value="<?= $filter ?>"/> + <input type="submit" value="<?= _("Search Tags") ?>"/> + </fieldset> + </form> +</div> + +<table> + <tr> + <th> <?= _("Tag") ?> </th> + <th> <?= _("Photos") ?> </th> + <th> <?= _("Actions") ?> </th> + </tr> + <? foreach ($tags as $tag): ?> + <tr> + <td> <?= $tag->name ?> </td> + <td> <?= $tag->count ?> </td> + <td> + <a href="<?= url::site("admin/tags/delete/$tag->id?csrf=" . access::csrf_token()) ?>"> + <?= _("delete") ?> + </a> + </td> + </tr> + <? endforeach ?> +</table> |
