source: trunk/bin/module_maker/skel/adm_list.ihtml @ 295

Last change on this file since 295 was 295, checked in by quinn, 16 years ago

Updated example config file. Added admin2.inc.css and minor corrections into HTML. Module maker fixes.

File size: 2.9 KB
Line 
1
2<?php $fv->printErrorMessages(); ?>
3
4<div id="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 // printSelectForm('__///___tbl', "CONCAT(__///___id, '&mdash;', city, '&mdash;', title)", '__///___id', getFormData('filter___///__'), array('Any __///__'), 'ORDER BY __///__ ASC'); ?>
11        </select>
12        <input type="submit" value="<?php echo _("Filter"); ?>" />
13    </form>
14</div>
15
16<form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="post">
17<?php $app->printHiddenSession(); ?>
18<?php include 'list_info.ihtml'; ?>
19<table class="list">
20    <tr>
21        <th>&nbsp;</th>
22        <th>&nbsp;</th>
23%ADM_LIST_HEADER_ROWS%
24        <th>&nbsp;</th>
25    </tr>
26    <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items > 0; $i++) { ?>
27    <tr>
28        <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> &nbsp;</td>
29        <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> &nbsp;</td>
30%ADM_LIST_ROWS%
31        <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> &nbsp;</td>
32    </tr>
33    <?php } ?>
34</table>
35
36<?php if ($page->total_pages > 1) { ?>
37<div class="sc-nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?>&nbsp;<?php $page->printPageNumbers() ?></div>
38<?php } ?>
39<?php if ($page->total_items > 0) { ?>
40<div class="commanditem"><input type="submit" name="op" value="<?php echo _("Save rank"); ?>" /></div>
41<?php } ?>
42</form>
Note: See TracBrowser for help on using the repository browser.