Пример #1
0
        $content .= Reports::DisplayUsers($result);
        break;
    case "admin":
        $result = DBAccess::getAllUsers(2);
        $content .= "<h1>Administrator List</h1>";
        $content .= Reports::DisplayUsers($result);
        break;
    case "active":
        $result = DBAccess::allUsersByActive(true);
        $content .= "<h1>Active User List</h1>";
        $content .= Reports::DisplayUsers($result);
        break;
    case "inactive":
        $result = DBAccess::allUsersByActive(false);
        $content .= "<h1>Inactive User List</h1>";
        $content .= Reports::DisplayUsers($result);
        break;
    default:
        $result = DBAccess::getAllUsers(1);
        $content .= "<h1>Administrators</h1>";
        $content .= Reports::DisplayUsers($result);
        $result = DBAccess::getAllUsers(2);
        $content .= "<br /><h1>Users</h1>";
        $content .= Reports::DisplayUsers($result);
}
$content .= "<span style=\"clear: left; display: block;\"></span></div><!--End info div -->";
require '../template/adminTemplate.php';
?>