Subversion Repositories taios

Rev

Rev 76 | Go to most recent revision | Details | 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
 
11
if ($page->isUserAdmin($page->getLoggedInUser())))
12
{
13
    write('<table>');
14
 
15
    $ids = $page->findIDs('Users');
16
    for ($i = 0; $i < count($ids); $i++)
17
    {
18
        $user = $page->getUserByID($ids[$i]);
19
        write('<tr>');
20
        write('<td>' . $user->ID . '</td>');
21
        write('<td>' . $user->accessID . '</td>');
22
        write('<td>' . $user->username . '</td>');
23
        write('<td>' . $user->password . '</td>');
24
        write('<td>' . $user->name . '</td>');
25
        write('<td>' . $user->email . '</td>');
26
        write('</tr>');
27
    }
28
 
29
    write('</table>');
30
}
31
else
32
{
33
    drawError('You do not have permission to access this page.');
34
}
35
 
36
$page->drawFooter();
37
 
38
?>
39