forked from timschofield/webERP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoggedInUsers.php
57 lines (48 loc) · 1.44 KB
/
LoggedInUsers.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
include('includes/session.php');
$Title = _('Users currently logged in');
$ViewTopic = 'Setup';// Filename in ManualContents.php's TOC.
$BookMark = '';// Anchor's id in the manual's html document.
include('includes/header.php');
echo '<p class="page_title_text">
<img src="'.$RootPath.'/css/'.$Theme.'/images/user.png" title="' . _('Logged In Users') . '" alt="" />' . ' ' . $Title .
'</p>';
$SQL = "SELECT sessionid,
login_data.userid,
realname,
email,
phone,
login,
script
FROM login_data
INNER JOIN www_users
ON www_users.userid=login_data.userid";
$Result = DB_query($SQL);
echo '<table>
<thead>
<tr>
<th class="SortedColumn">', _('Session'), '</th>
<th class="SortedColumn">', _('User'), '</th>
<th class="SortedColumn">', _('Name'), '</th>
<th class="SortedColumn">', _('Email'), '</th>
<th class="SortedColumn">', _('Phone'), '</th>
<th class="SortedColumn">', _('Logged in'), '</th>
<th class="SortedColumn">', _('Script'), '</th>
</tr>
</thead>';
echo '<tbody>';
while ($MyRow = DB_fetch_array($Result)) {
echo '<tr class="striped_row">
<td>', $MyRow['sessionid'], '</td>
<td>', $MyRow['userid'], '</td>
<td>', $MyRow['realname'], '</td>
<td>', $MyRow['email'], '</td>
<td>', $MyRow['phone'], '</td>
<td>', ConvertSQLDateTime($MyRow['login']), '</td>
<td>', $MyRow['script'], '</td>
</tr>';
}
echo '</tbody>
</table>';
include('includes/footer.php');
?>