コード例 #1
0
<?php

session_start();
require_once 'includes/RoleManager.php';
require_once 'includes/ADAO.php';
require_once 'includes/UserFunctions.php';
$roleAssigned = new RoleManager($_SESSION['role']);
$roleAssigned->getAvailableMenu();
$menuName = $roleAssigned->getMenuName();
$menuUrl = $roleAssigned->getMenuUrl();
$res = ADAO::getUsersList();
//include('authen.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin-Home</title>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen" />
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle.css" />
<script type="text/javascript" src="js/chrome.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
	$(".edit_link").click(function(){
	
		var id=$(this).attr("id");

		$("#name_"+id).hide();
        $("#username_"+id).hide();