Subversion Repositories taios

Rev

Rev 76 | Rev 79 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
75 tom 1
<?php
2
 
3
require '../_taios.php';
4
 
5
$page = new Taios_Page('Manage All Accounts', '../');
6
$page->drawHeader();
7
$page->drawMiddle();
8
 
9
$page->checkLoggedIn();
10
 
76 tom 11
if ($page->isUserAdmin($page->getLoggedInUser()))
75 tom 12
{
13
    write('<table>');
78 tom 14
    write('<tr>');
15
    write('<td class="bold">ID</td>');
16
    write('<td class="bold">AccessID</td>');
17
    write('<td class="bold">Username</td>');
18
    write('<td class="bold">Password</td>');
19
    write('<td class="bold">Name</td>');
20
    write('<td class="bold">Email Address</td>');
21
    write('</tr>');
75 tom 22
 
23
    $ids = $page->findIDs('Users');
24
    for ($i = 0; $i < count($ids); $i++)
25
    {
26
        $user = $page->getUserByID($ids[$i]);
27
        write('<tr>');
28
        write('<td>' . $user->ID . '</td>');
29
        write('<td>' . $user->accessID . '</td>');
30
        write('<td>' . $user->username . '</td>');
31
        write('<td>' . $user->password . '</td>');
32
        write('<td>' . $user->name . '</td>');
33
        write('<td>' . $user->email . '</td>');
34
        write('</tr>');
35
    }
36
 
37
    write('</table>');
38
}
39
else
40
{
41
    drawError('You do not have permission to access this page.');
42
}
43
 
44
$page->drawFooter();
45
 
46
?>
47