1 | |
---|
2 | <?php $fv->printErrorMessages(); ?> |
---|
3 | |
---|
4 | <div id="commandbox"> |
---|
5 | <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"> |
---|
6 | <?php $app->printHiddenSession(false); ?> |
---|
7 | <span class="sc-nowrap commandtext"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add %ITEM_TITLE%"); ?></a></span> |
---|
8 | <br /> |
---|
9 | |
---|
10 | <input type="text" class="sc-small" size="20" name="search_query" value="<?php echo getFormData('search_query'); ?>" title="<?php echo oTxt(_("Fields searched: __///__ %SEARCH_FIELDS%.")); ?>" /> |
---|
11 | <select name="filter___///__"> |
---|
12 | <?php // printSelectForm('__///___tbl', "CONCAT(__///___id, '—', city, '—', title)", '__///___id', getFormData('filter___///__'), array('Any __///__'), 'ORDER BY __///__ ASC'); ?> |
---|
13 | </select> |
---|
14 | <input type="submit" value="<?php echo _("Search"); ?>" /> |
---|
15 | </form> |
---|
16 | </div> |
---|
17 | |
---|
18 | <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> |
---|
19 | <?php $app->printHiddenSession(); ?> |
---|
20 | <?php include 'list_info.ihtml'; ?> |
---|
21 | <table class="list"> |
---|
22 | <tr> |
---|
23 | <th> </th> |
---|
24 | <th> </th> |
---|
25 | %ADM_LIST_HEADER_ROWS% |
---|
26 | <th> </th> |
---|
27 | </tr> |
---|
28 | <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items > 0; $i++) { ?> |
---|
29 | <tr> |
---|
30 | <td class="sc-padleft sc-nowrap"><a title="<?php printf(_("Edit %s"), oTxt($list[$i]['__///__'])) ?>" href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=edit&%PRIMARY_KEY%=' . $list[$i]['%PRIMARY_KEY%']); ?>"><img src="/admin/_widgets/edit.gif" alt="Edit" width="14" height="18" border="0"></a> </td> |
---|
31 | <td class="sc-padleft sc-nowrap"><a title="<?php printf(_("Versions of %s"), oTxt($list[$i]['__///__'])) ?>" href="<?php echo $app->oHREF('/admin/versions.php?record_table=%DB_TBL%&record_key=%PRIMARY_KEY%&boomerang=true&record_val=' . $list[$i]['%PRIMARY_KEY%']); ?>"><img src="/admin/_widgets/subcategory.gif" alt="" width="18" height="14" border="0" /></a> </td> |
---|
32 | %ADM_LIST_ROWS% |
---|
33 | <td class="sc-padleft sc-nowrap" align="right"><a title="<?php printf(_("Delete %s"), oTxt($list[$i]['__///__'])) ?>" href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . "?op=del&%PRIMARY_KEY%=" . $list[$i]['%PRIMARY_KEY%']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to delete the record %s? This action is permanent and cannot be undone."), oTxt($list[$i]['__///__'])) ?>')"><img src="/admin/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> </td> |
---|
34 | </tr> |
---|
35 | <?php } ?> |
---|
36 | </table> |
---|
37 | |
---|
38 | <?php if ($page->total_pages > 1) { ?> |
---|
39 | <div class="sc-nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> |
---|
40 | <?php } ?> |
---|
41 | <?php if ($page->total_items > 0) { ?> |
---|
42 | <div class="commanditem"><input type="submit" name="op" value="<?php echo _("Save rank"); ?>" /></div> |
---|
43 | <?php } ?> |
---|
44 | </form> |
---|