コード例 #1
0
ファイル: users.php プロジェクト: elecnix/resaccman
<?php

require_once "config.php";
require_once RESACCMAN_BASE . "/classes/SecurityUser.php";
require_once RESACCMAN_BASE . "/classes/Text.php";
require_once RESACCMAN_BASE . "/classes/html/UserList.php";
require_once RESACCMAN_BASE . "/classes/html/UserAddForm.php";
include "header.php";
?>
<h2><?php 
echo Text::getText("Users");
?>
</h2><?

$allUsers = SecurityUser::getAll();
$list = new UserList($allUsers);
$list->printContent();

if (SecurityUSer::havePermission("ADD")) {
    $form = new UserAddForm();
    $form->printContent();
}

include("footer.php");

?>