[1] | 1 | |
---|
| 2 | <?php include 'form_error_header.ihtml'; ?> |
---|
| 3 | <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> |
---|
| 4 | <?php $carry_queries = array('search_query', 'filter_admin_priv'); ?> |
---|
| 5 | <?php printHiddenSession(false); ?> |
---|
| 6 | <div id="commandbox"> |
---|
| 7 | <span class="nowrap commandtext"><a href="<?php echo ohref($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add administrator"); ?></a></span> |
---|
| 8 | <br /> |
---|
| 9 | |
---|
| 10 | <input type="text" class="forminputtext" size="20" name="search_query" value="<?php echo getFormData('search_query'); ?>" title="<?php echo oTxt(_("Fields searched: username, first & last name, phone, email, county.")); ?>" /> |
---|
| 11 | <input type="submit" name="list" value="<?php echo _("Search"); ?>" class="formsubmitbutton" /> |
---|
| 12 | |
---|
| 13 | <!-- <select name="filter_admin_priv"> --> |
---|
| 14 | <!-- <?php printSetSelectForm('admin_tbl', 'filter_admin_priv', getFormData('filter_admin_priv'), true); ?> --> |
---|
| 15 | <!-- </select> --> |
---|
| 16 | <!-- <input type="submit" name="list" value="Filter by privilege" class="formsubmitbutton"> --> |
---|
| 17 | </div> |
---|
| 18 | |
---|
| 19 | <?php include 'list_info.ihtml'; ?> |
---|
| 20 | |
---|
| 21 | <table class="list" border="0" cellpadding="2" cellspacing="0"> |
---|
| 22 | <tr> |
---|
| 23 | <th class="padleft"> </th> |
---|
| 24 | <th class="padleft"><?php $so->printSortHeader('admin_id', _("ID"), 'ASC'); ?></th> |
---|
| 25 | <th class="padleft"><?php $so->printSortHeader('username', _("Username"), 'ASC'); ?></th> |
---|
| 26 | <th class="padleft"><?php $so->printSortHeader('first_name', _("First"), 'ASC'); ?> |
---|
| 27 | <?php $so->printSortHeader('last_name', _("Last name"), 'ASC'); ?></th> |
---|
| 28 | <th class="padleft"><?php $so->printSortHeader('last_access_datetime', _("Logged-in"), 'DESC'); ?></th> |
---|
| 29 | <th class="padleft"><?php $so->printSortHeader('seconds_online', _("Total min logged-in"), 'DESC'); ?></th> |
---|
| 30 | <th class="padleft"><?php $so->printSortHeader('last_login_ip', _("Last remote addr"), 'ASC'); ?></th> |
---|
| 31 | <th class="padleft"> </th> |
---|
| 32 | </tr> |
---|
| 33 | <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items; $i++) { ?> |
---|
| 34 | <tr> |
---|
| 35 | <td class="padleft nowrap"> |
---|
| 36 | <a title="<?php printf(_("Edit %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo ohref($CFG->admin_url . '/admins.php?op=edit&admin_id=' . $list[$i]['admin_id']); ?>"><img src="<?php echo $CFG->admin_url; ?>/_widgets/edit.gif" alt="Edit" width="14" height="18" border="0"></a> |
---|
| 37 | </td> |
---|
| 38 | <td class="padleft nowrap"><?php echo $list[$i]['admin_id']; ?> </td> |
---|
| 39 | <td class="padleft nowrap"><?php echo oTxt($list[$i]['username']); ?> </td> |
---|
| 40 | <td class="padleft nowrap"><a href="mailto:<?php echo oTxt($list[$i]['email']); ?>"><?php echo oTxt($list[$i]['first_name']); ?> |
---|
| 41 | <?php echo oTxt($list[$i]['last_name']); ?></a> </td> |
---|
| 42 | <td class="padleft nowrap"><a href="#" style="text-decoration:none;" title="<?php printf(_("Last accessed %s"), $list[$i]['last_access_datetime']) ?>"><?php echo $_admin->isLoggedIn($list[$i]['admin_id']) ? '<strong>' . _("yes") . '</strong>' : _("no"); ?></a> </td> |
---|
| 43 | <td class="padleft nowrap"><?php echo round($list[$i]['seconds_online'] / 60); ?> </td> |
---|
| 44 | <td class="padleft nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> </td> |
---|
| 45 | <td class="padleft right nowrap"> |
---|
| 46 | <a title="<?php printf(_("Delete %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo ohref($CFG->admin_url . '/admins.php?op=del&admin_id=' . $list[$i]['admin_id']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to delete %s? This action is permanent and cannot be undone."), oTxt($list[$i]['username'])) ?>')"><img src="<?php echo $CFG->admin_url; ?>/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> |
---|
| 47 | </td> |
---|
| 48 | </tr> |
---|
| 49 | <?php } ?> |
---|
| 50 | </table> |
---|
| 51 | |
---|
| 52 | <?php if ($page->total_pages > 1) { ?> |
---|
| 53 | <div class="nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> |
---|
| 54 | <?php } ?> |
---|
| 55 | </form> |
---|