| Current Path : /var/www/html/mmishra/ilight/ |
| Current File : /var/www/html/mmishra/ilight/elsession.inc |
<h3>Login Sessions</h3>
<center>
<table width='80%' border='1' style='border-collapse: collapse'>
<thead>
<tr><th rowspan='2'>No</th><th rowspan='2'>User</th><th rowspan='2'>SessionID</th>
<th colspan='2'>Date/Time</th><th rowspan='2'>System IP</th></tr>
<tr><th>Login</th><th>Logout</th></tr>
</thead>
<tfoot>
<tr><th colspan='6'>Latest 100 login sessions.</th></tr>
</tfoot>
<tbody>
<?php
$rs = mysql_query("select user,sessionid,datelogin,datelogout,remoteip from el_session order by id desc limit 0,100");
while ($row = mysql_fetch_row($rs)) {
$i++;
echo "<tr><td>$i</td><td>".implode($row, '</td><td>').'</td></tr>';
}
?>
</tbody>
</table>
</center>