1 | |
---|
2 | <?php $fv->printErrorMessages(); ?> |
---|
3 | |
---|
4 | <div class="commandbox"> |
---|
5 | <span class="sc-nowrap commandtext"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add %ITEM_TITLE%"); ?></a></span> |
---|
6 | <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get" class="sc-form"> |
---|
7 | <?php $app->printHiddenSession(false); ?> |
---|
8 | <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%.")); ?>" /> |
---|
9 | <select name="filter___///__" class="sc-small"> |
---|
10 | <?php // HTML::printSelectOptions(HTML::getSelectOptions('__///___tbl', '__///___title', '__///___id', getFormData('filter___///__'), array('' => 'Any __///__'), 'ORDER BY __///__ ASC')); ?> |
---|
11 | </select> |
---|
12 | <select name="filter___///__" class="sc-small"> |
---|
13 | <?php // HTML::printSelectOptions(HTML::getSelectOptionsEnum('__///___tbl', '__///___', getFormData('filter___///__'), array('' => 'Any type'))); ?> |
---|
14 | </select> |
---|
15 | <input type="submit" value="<?php echo _("Filter"); ?>" /> |
---|
16 | <?php if ('' != getFormData('search_query') . getFormData('filter___///__')): ?> |
---|
17 | <a href="<?php echo $app->ohref($_SERVER['PHP_SELF'], false); ?>" class="button"><?php echo _("Show all"); ?></a> |
---|
18 | <?php endif ?> |
---|
19 | </form> |
---|
20 | </div> |
---|
21 | |
---|
22 | <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="post"> |
---|
23 | <?php $app->printHiddenSession(); ?> |
---|
24 | <?php include 'list_info.ihtml'; ?> |
---|
25 | <table class="list"> |
---|
26 | <tr> |
---|
27 | <th> </th> |
---|
28 | <th> </th> |
---|
29 | %ADM_LIST_HEADER_ROWS% |
---|
30 | <th> </th> |
---|
31 | </tr> |
---|
32 | <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items > 0; $i++) { ?> |
---|
33 | <tr> |
---|
34 | <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/i/pen.gif" alt="Edit" width="12" height="12" border="0" /></a></td> |
---|
35 | <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/i/multiple.png" alt="" width="12" height="12" border="0" /></a></td> |
---|
36 | %ADM_LIST_ROWS% |
---|
37 | <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/i/trash.gif" alt="Delete" width="10" height="10" border="0" /></a></td> |
---|
38 | </tr> |
---|
39 | <?php } ?> |
---|
40 | </table> |
---|
41 | |
---|
42 | <?php if ($page->total_pages > 1) { ?> |
---|
43 | <div class="sc-nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> |
---|
44 | <?php } ?> |
---|
45 | <?php if ($page->total_items > 0) { ?> |
---|
46 | <div class="commanditem"><input type="submit" name="op" value="<?php echo _("Save rank"); ?>" /></div> |
---|
47 | <?php } ?> |
---|
48 | </form> |
---|