Subversion Repositories taios

Rev

Rev 75 | Rev 79 | 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>');

    $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->email . '</td>');
        write('</tr>');
    }
   
    write('</table>');
}
else
{
    drawError('You do not have permission to access this page.');
}

$page->drawFooter();

?>