- Timestamp:
- Jul 27, 2023 10:21:51 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/templates/admin_list.ihtml
r797 r798 37 37 <th><?php echo $so->printSortHeader('admin_tbl.username', _("Username"), 'ASC'); ?></th> 38 38 <th><?php echo $so->printSortHeader('admin_tbl.first_name', _("First"), 'ASC'); ?> <?php echo $so->printSortHeader('admin_tbl.last_name', _("Last name"), 'ASC'); ?></th> 39 <th><?php echo $so->printSortHeader('admin_tbl.seconds_online', _("Min online"), 'ASC'); ?></th> 40 <th><?php echo $so->printSortHeader('admin_tbl.last_login_datetime', _("Last login"), 'ASC'); ?></th> 41 <th><?php echo $so->printSortHeader('admin_tbl.last_login_ip', _("Remote host"), 'ASC'); ?></th> 39 <th><?php echo $so->printSortHeader('admin_tbl.last_access_datetime', _("Last access"), 'ASC'); ?></th> 42 40 <th><?php echo $so->printSortHeader('admin_tbl.added_datetime', _("Added"), 'ASC'); ?></th> 43 41 <th><?php echo $so->printSortHeader('admin_tbl.added_by_user_id', _("by"), 'ASC'); ?></th> … … 60 58 <td class="sc-nowrap"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=edit&admin_id=' . $list[$i]['admin_id']); ?>"><?php echo oTxt($list[$i]['username'], true); ?></a></td> 61 59 <td class="sc-nowrap"><?php echo oTxt($list[$i]['first_name'], true); ?> <?php echo oTxt($list[$i]['last_name'], true); ?></td> 62 <td class="sc-nowrap"><?php echo humanTime($list[$i]['seconds_online'], null, '%01.0f'); ?></td>63 60 <td class="sc-nowrap"><?php 64 $last_login_datetime_formatted = strtotime($list[$i]['last_login_datetime']) > 0 ? date($app->getParam('date_format'), strtotime($list[$i]['last_login_datetime'])) : ''; 65 echo $auth->isLoggedIn($list[$i]['admin_id']) ? sprintf('<strong>%s</strong>', $last_login_datetime_formatted) : $last_login_datetime_formatted; 61 printf('<span title="Cumulative time connected: %s">', humanTime($list[$i]['seconds_online'], null, '%01.0f')); 62 $last_access_datetime_formatted = strtotime($list[$i]['last_access_datetime']) > 0 ? date($app->getParam('date_format'), strtotime($list[$i]['last_access_datetime'])) : ''; 63 echo $auth->isLoggedIn($list[$i]['admin_id']) ? sprintf('<strong>%s</strong>', $last_access_datetime_formatted) : $last_access_datetime_formatted; 64 echo '</span>'; 66 65 ?></td> 67 <td class="sc-nowrap"><?php echo ipInRange($list[$i]['last_login_ip'], ['0.0.0.0/8', '10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16']) ? '' : sprintf('<a href="https://ip.me/ip/%1$s">%1$s</a>', $list[$i]['last_login_ip']); ?></td>68 66 <td class="sc-nowrap"><?php echo strtotime($list[$i]['added_datetime']) > 0 ? date($app->getParam('date_format'), strtotime($list[$i]['added_datetime'])) : ''; ?></td> 69 67 <td class="sc-nowrap"><?php echo oTxt($list[$i]['added_admin_username'], true); ?></td>
Note: See TracChangeset
for help on using the changeset viewer.