[1] | 1 | |
---|
| 2 | <?php $fv->printErrorMessages(); ?> |
---|
[295] | 3 | |
---|
[1] | 4 | <div id="commandbox"> |
---|
[295] | 5 | <span class="sc-nowrap commanditem"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add Administrator"); ?></a></span> |
---|
| 6 | <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get" class="sc-form"> |
---|
| 7 | <?php $app->printHiddenSession(false); ?> |
---|
[270] | 8 | <input type="text" class="sc-small" size="20" name="search_query" value="<?php echo getFormData('search_query'); ?>" title="<?php echo oTxt(_("Fields searched: Admin id, Username, Userpass, First name, Last name, Email.")); ?>" /> |
---|
| 9 | <input type="submit" value="<?php echo _("Search"); ?>" /> |
---|
[295] | 10 | </form> |
---|
[1] | 11 | </div> |
---|
| 12 | |
---|
| 13 | <?php include 'list_info.ihtml'; ?> |
---|
| 14 | |
---|
[295] | 15 | <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get" class="sc-form"> |
---|
[19] | 16 | <table class="list"> |
---|
[1] | 17 | <tr> |
---|
[19] | 18 | <th> </th> |
---|
| 19 | <th> </th> |
---|
| 20 | <th><?php echo $so->printSortHeader('admin_tbl.admin_id', _("ID"), 'ASC'); ?></th> |
---|
| 21 | <th><?php echo $so->printSortHeader('admin_tbl.username', _("Username"), 'ASC'); ?></th> |
---|
| 22 | <th><?php echo $so->printSortHeader('admin_tbl.first_name', _("First"), 'ASC'); ?> <?php echo $so->printSortHeader('admin_tbl.last_name', _("Last name"), 'ASC'); ?></th> |
---|
| 23 | <th><?php echo $so->printSortHeader('admin_tbl.user_type', _("User type"), 'ASC'); ?></th> |
---|
| 24 | <th><?php echo $so->printSortHeader('admin_tbl.seconds_online', _("Min online"), 'ASC'); ?></th> |
---|
| 25 | <th><?php echo $so->printSortHeader('admin_tbl.last_login_datetime', _("Last login"), 'ASC'); ?></th> |
---|
| 26 | <th><?php echo $so->printSortHeader('admin_tbl.last_login_ip', _("Remote host"), 'ASC'); ?></th> |
---|
| 27 | <th><?php echo $so->printSortHeader('admin_tbl.added_datetime', _("Added"), 'ASC'); ?></th> |
---|
| 28 | <th><?php echo $so->printSortHeader('admin_tbl.added_by_user_id', _("by admin"), 'ASC'); ?></th> |
---|
| 29 | <th><?php echo $so->printSortHeader('admin_tbl.modified_datetime', _("Last modified"), 'ASC'); ?></th> |
---|
| 30 | <th> </th> |
---|
[1] | 31 | </tr> |
---|
[19] | 32 | <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items > 0; $i++) { ?> |
---|
[1] | 33 | <tr> |
---|
[270] | 34 | <td class="sc-padleft sc-nowrap"><a title="<?php printf(_("Edit %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=edit&admin_id=' . $list[$i]['admin_id']); ?>"><img src="/admin/_widgets/edit.gif" alt="Edit" width="14" height="18" border="0" /></a> </td> |
---|
[295] | 35 | <td class="sc-padleft sc-nowrap"><a title="<?php printf(_("Versions of %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo $app->oHREF(sprintf('/admin/versions.php?record_table=%s&record_key=%s&record_val=%s&boomerang=true', $auth->getParam('db_table'), $auth->getParam('db_primary_key'), $list[$i]['admin_id'])); ?>"><img src="/admin/_widgets/subcategory.gif" alt="" width="18" height="14" border="0" /></a> </td> |
---|
[121] | 36 | <td class="sc-nowrap"><?php echo oTxt($list[$i]['admin_id'], true); ?> </td> |
---|
| 37 | <td class="sc-nowrap"><?php echo oTxt($list[$i]['username'], true); ?> </td> |
---|
| 38 | <td class="sc-nowrap"><?php echo oTxt($list[$i]['first_name'], true); ?> <?php echo oTxt($list[$i]['last_name'], true); ?> </td> |
---|
| 39 | <td class="sc-nowrap"><?php echo oTxt($list[$i]['user_type'], true); ?> </td> |
---|
| 40 | <td class="sc-nowrap"><?php echo round($list[$i]['seconds_online'] / 60); ?> </td> |
---|
| 41 | <td class="sc-nowrap"><?php |
---|
[54] | 42 | if ($auth->isLoggedIn($list[$i]['admin_id'])) { |
---|
[136] | 43 | ?><strong><?php echo date($app->getParam('date_format'), strtotime($list[$i]['last_login_datetime'])) ?></strong><?php |
---|
[54] | 44 | } else { |
---|
[136] | 45 | echo '0000-00-00 00:00:00' == $list[$i]['last_login_datetime'] ? '' : date($app->getParam('date_format'), strtotime($list[$i]['last_login_datetime'])); |
---|
[54] | 46 | } |
---|
| 47 | ?> </td> |
---|
[121] | 48 | <td class="sc-nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> </td> |
---|
[136] | 49 | <td class="sc-nowrap"><?php echo '0000-00-00 00:00:00' == $list[$i]['added_datetime'] ? '' : date($app->getParam('date_format'), strtotime($list[$i]['added_datetime'])); ?> </td> |
---|
[121] | 50 | <td class="sc-nowrap"><?php echo oTxt($list[$i]['added_admin_username'], true); ?> </td> |
---|
[136] | 51 | <td class="sc-nowrap"><?php echo '0000-00-00 00:00:00' == $list[$i]['modified_datetime'] ? '' : date($app->getParam('date_format'), strtotime($list[$i]['modified_datetime'])); ?> </td> |
---|
[270] | 52 | <td class="sc-padleft sc-nowrap" align="right"><a title="<?php printf(_("Delete %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . "?op=del&admin_id=" . $list[$i]['admin_id']); ?>" 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]['username'])) ?>')"><img src="/admin/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0" /></a> </td> |
---|
[1] | 53 | </tr> |
---|
| 54 | <?php } ?> |
---|
| 55 | </table> |
---|
| 56 | |
---|
| 57 | <?php if ($page->total_pages > 1) { ?> |
---|
[270] | 58 | <div class="sc-nowrap commanditem" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> |
---|
[1] | 59 | <?php } ?> |
---|
| 60 | </form> |
---|