[1] | 1 | <?php include 'form_error_header.ihtml'; ?> |
---|
[289] | 2 | <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get"> |
---|
[1] | 3 | <?php $carry_queries = array('search_query', 'filter_admin_priv'); ?> |
---|
| 4 | <?php printHiddenSession(false); ?> |
---|
| 5 | <div id="commandbox"> |
---|
| 6 | <span class="nowrap commandtext"><a href="<?php echo ohref($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add administrator"); ?></a></span> |
---|
| 7 | <br /> |
---|
| 8 | |
---|
| 9 | <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.")); ?>" /> |
---|
| 10 | <input type="submit" name="list" value="<?php echo _("Search"); ?>" class="formsubmitbutton" /> |
---|
| 11 | </div> |
---|
| 12 | |
---|
[30] | 13 | <?php include 'adm_list_info.ihtml'; ?> |
---|
[1] | 14 | |
---|
| 15 | <table class="list" border="0" cellpadding="2" cellspacing="0"> |
---|
| 16 | <tr> |
---|
| 17 | <th class="padleft"> </th> |
---|
| 18 | <th class="padleft"><?php $so->printSortHeader('admin_id', _("ID"), 'ASC'); ?></th> |
---|
| 19 | <th class="padleft"><?php $so->printSortHeader('username', _("Username"), 'ASC'); ?></th> |
---|
| 20 | <th class="padleft"><?php $so->printSortHeader('first_name', _("First"), 'ASC'); ?> |
---|
| 21 | <?php $so->printSortHeader('last_name', _("Last name"), 'ASC'); ?></th> |
---|
| 22 | <th class="padleft"><?php $so->printSortHeader('last_access_datetime', _("Logged-in"), 'DESC'); ?></th> |
---|
| 23 | <th class="padleft"><?php $so->printSortHeader('seconds_online', _("Total min logged-in"), 'DESC'); ?></th> |
---|
| 24 | <th class="padleft"><?php $so->printSortHeader('last_login_ip', _("Last remote addr"), 'ASC'); ?></th> |
---|
| 25 | <th class="padleft"> </th> |
---|
| 26 | </tr> |
---|
| 27 | <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items; $i++) { ?> |
---|
| 28 | <tr> |
---|
| 29 | <td class="padleft nowrap"> |
---|
| 30 | <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> |
---|
| 31 | </td> |
---|
| 32 | <td class="padleft nowrap"><?php echo $list[$i]['admin_id']; ?> </td> |
---|
| 33 | <td class="padleft nowrap"><?php echo oTxt($list[$i]['username']); ?> </td> |
---|
| 34 | <td class="padleft nowrap"><a href="mailto:<?php echo oTxt($list[$i]['email']); ?>"><?php echo oTxt($list[$i]['first_name']); ?> |
---|
| 35 | <?php echo oTxt($list[$i]['last_name']); ?></a> </td> |
---|
| 36 | <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> |
---|
| 37 | <td class="padleft nowrap"><?php echo round($list[$i]['seconds_online'] / 60); ?> </td> |
---|
| 38 | <td class="padleft nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> </td> |
---|
| 39 | <td class="padleft right nowrap"> |
---|
[289] | 40 | <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> |
---|
[1] | 41 | </td> |
---|
| 42 | </tr> |
---|
| 43 | <?php } ?> |
---|
| 44 | </table> |
---|
| 45 | |
---|
| 46 | <?php if ($page->total_pages > 1) { ?> |
---|
| 47 | <div class="nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> |
---|
| 48 | <?php } ?> |
---|
| 49 | </form> |
---|