1.管理员页面RBAC.php
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>权限管理</title>
<script src="bootstrap/js/jquery-1.11.2.min.js"></script>
</head>
<body>
<h2>用户与角色管理</h2>
<div>
请选择用户:
<select id="user">
<?php
require_once "./DBDA.class.php";
db = new DBDA();
sql = "select * from users";
$arr = db-\>query(sql,0);
foreach($arr as v){
echo "\";
}
?\>
\
\
\
请选择角色:
\sql = "select * from roles";
$arr = db-\>query(sql,0);
foreach($arr as v){ echo "\v\[1\]}"; } ?\> \
\$arr = db-\>query(sql,0);
foreach($arr as v){ echo "\v\[1\]}"; } ?\> \
\ \