Subversion Repositories taios

Rev

Rev 78 | Rev 83 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

require '../_taios.php';

$page = new Taios_Page('Manage All Accounts', '../');
$page->drawHeader();
$page->drawMiddle();

$page->checkLoggedIn();

if ($page->isUserAdmin($page->getLoggedInUser()))
{
    write('<table>');
    write('<tr>');
    write('<td class="bold">ID</td>');
    write('<td class="bold">AccessID</td>');
    write('<td class="bold">Username</td>');
    write('<td class="bold">Password</td>');
    write('<td class="bold">Name</td>');
    write('<td class="bold">Email Address</td>');
    write('<td class="bold">Challenge ID</td>');
    write('</tr>');

    $ids = $page->findIDs('Users');
    for ($i = 0; $i < count($ids); $i++)
    {
        $user = $page->getUserByID($ids[$i]);
        write('<tr>');
        write('<td>' . $user->ID . '</td>');
        write('<td>' . $user->accessID . '</td>');
        write('<td>' . $user->username . '</td>');
        write('<td>' . $user->password . '</td>');
        write('<td>' . $user->name . '</td>');
        write('<td>' . $user->emailAddress . '</td>');
        write('<td>' . $user->challengeID . '</td>');
        write('</tr>');
    }
   
    write('</table>');
}
else
{
    drawError('You do not have permission to access this page.');
}

$page->drawFooter();

?>