Commit eef1ec08 authored by User expired's avatar User expired
Browse files

added sequential numbers to user lists

parent e3a2fd6e
......@@ -133,6 +133,7 @@ function F_show_select_user($order_field, $orderdir, $firstrow, $rowsperpage, $g
if (strlen($searchterms) > 0) {
$filter .= '&searchterms='.urlencode($searchterms);
}
echo '<th>'.'#'.'</th>'.K_NEWLINE; //ESM 150317
echo F_select_table_header_element('user_name', $nextorderdir, $l['h_login_name'], $l['w_user'], $order_field, $filter);
echo F_select_table_header_element('user_lastname', $nextorderdir, $l['h_lastname'], $l['w_lastname'], $order_field, $filter);
echo F_select_table_header_element('user_firstname', $nextorderdir, $l['h_firstname'], $l['w_firstname'], $order_field, $filter);
......@@ -143,6 +144,7 @@ function F_show_select_user($order_field, $orderdir, $firstrow, $rowsperpage, $g
echo '<th title="'.$l['t_all_results_user'].'">'.$l['w_tests'].'</th>'.K_NEWLINE;
echo '</tr>'.K_NEWLINE;
$itemcount = 0;
$i=$firstrow; //ESM 150317
do {
$itemcount++;
echo '<tr>'.K_NEWLINE;
......@@ -153,6 +155,7 @@ function F_show_select_user($order_field, $orderdir, $firstrow, $rowsperpage, $g
}
echo ' />';
echo '</td>'.K_NEWLINE;
$i++; echo "<td>$i</td>"; //ESM 150317
echo '<td style="text-align:'.$txtalign.';">&nbsp;<a href="tce_edit_user.php?user_id='.$m['user_id'].'" title="'.$l['w_edit'].'">'.htmlspecialchars($m['user_name'], ENT_NOQUOTES, $l['a_meta_charset']).'</a></td>'.K_NEWLINE;
echo '<td style="text-align:'.$txtalign.';">&nbsp;'.htmlspecialchars($m['user_lastname'], ENT_NOQUOTES, $l['a_meta_charset']).'</td>'.K_NEWLINE;
echo '<td style="text-align:'.$txtalign.';">&nbsp;'.htmlspecialchars($m['user_firstname'], ENT_NOQUOTES, $l['a_meta_charset']).'</td>'.K_NEWLINE;
......@@ -348,6 +351,7 @@ function F_show_select_user_popup($order_field, $orderdir, $firstrow, $rowsperpa
if (strlen($searchterms) > 0) {
$filter .= '&amp;searchterms='.urlencode($searchterms);
}
echo '<th>'.'#'.'</th>'.K_NEWLINE; //ESM 150317
echo F_select_table_header_element('user_name', $nextorderdir, $l['h_login_name'], $l['w_user'], $order_field, $filter);
echo F_select_table_header_element('user_lastname', $nextorderdir, $l['h_lastname'], $l['w_lastname'], $order_field, $filter);
echo F_select_table_header_element('user_firstname', $nextorderdir, $l['h_firstname'], $l['w_firstname'], $order_field, $filter);
......@@ -358,6 +362,7 @@ function F_show_select_user_popup($order_field, $orderdir, $firstrow, $rowsperpa
//echo '<th title="'.$l['h_group_name'].'">'.$l['w_groups'].'</th>'.K_NEWLINE;
echo '</tr>'.K_NEWLINE;
$itemcount = 0;
$i=$firstrow; //ESM 150317
do {
$itemcount++;
// on click the user ID will be returned on the calling form field
......@@ -365,6 +370,7 @@ function F_show_select_user_popup($order_field, $orderdir, $firstrow, $rowsperpa
$jsaction .= 'window.opener.document.getElementById(\''.$cid.'\').onchange();';
$jsaction .= 'window.close();';
echo '<tr>'.K_NEWLINE;
$i++; echo "<td>$i</td>"; //ESM 150317
echo '<td style="text-align:'.$txtalign.';">&nbsp;<a href="#" onclick="'.$jsaction.'" title="['.$l['w_select'].']">'.htmlspecialchars($m['user_name'], ENT_NOQUOTES, $l['a_meta_charset']).'</a></td>'.K_NEWLINE;
echo '<td style="text-align:'.$txtalign.';">&nbsp;'.htmlspecialchars($m['user_lastname'], ENT_NOQUOTES, $l['a_meta_charset']).'</td>'.K_NEWLINE;
echo '<td style="text-align:'.$txtalign.';">&nbsp;'.htmlspecialchars($m['user_firstname'], ENT_NOQUOTES, $l['a_meta_charset']).'</td>'.K_NEWLINE;
......
......@@ -99,16 +99,18 @@ function F_list_online_users($wherequery, $order_field, $orderdir, $firstrow, $r
echo '<div class="container">'.K_NEWLINE;
echo '<table class="userselect">'.K_NEWLINE;
echo '<tr>'.K_NEWLINE;
echo '<th>'.'#'.'</th>'.K_NEWLINE; //ESM 150317
echo '<th>'.$l['w_user'].'</th>'.K_NEWLINE;
echo '<th>'.$l['w_level'].'</th>'.K_NEWLINE;
echo '<th>'.$l['w_ip'].'</th>'.K_NEWLINE;
echo '</tr>'.K_NEWLINE;
$i=$firstrow; //ESM 150317
if($r = F_db_query($sql, $db)) {
while($m = F_db_fetch_array($r)) {
$this_session = F_session_string_to_array($m['cpsession_data']);
echo '<tr>';
$i++; echo "<td>$i</td>"; //ESM 150317
echo '<td align="left">';
$user_str = '';
if ($this_session['session_user_lastname']) {
......@@ -133,6 +135,7 @@ function F_list_online_users($wherequery, $order_field, $orderdir, $firstrow, $r
}
echo '</table>'.K_NEWLINE;
// --- ------------------------------------------------------
// --- page jump
if ($rowsperpage > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment