Subversion Repositories taios

Rev

Rev 78 | Rev 83 | 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>');
79 tom 21
    write('<td class="bold">Challenge ID</td>');
78 tom 22
    write('</tr>');
75 tom 23
 
24
    $ids = $page->findIDs('Users');
25
    for ($i = 0; $i < count($ids); $i++)
26
    {
27
        $user = $page->getUserByID($ids[$i]);
28
        write('<tr>');
29
        write('<td>' . $user->ID . '</td>');
30
        write('<td>' . $user->accessID . '</td>');
31
        write('<td>' . $user->username . '</td>');
32
        write('<td>' . $user->password . '</td>');
33
        write('<td>' . $user->name . '</td>');
79 tom 34
        write('<td>' . $user->emailAddress . '</td>');
35
        write('<td>' . $user->challengeID . '</td>');
75 tom 36
        write('</tr>');
37
    }
38
 
39
    write('</table>');
40
}
41
else
42
{
43
    drawError('You do not have permission to access this page.');
44
}
45
 
46
$page->drawFooter();
47
 
48
?>
49