📄 dept.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
function clickMenu(ID)
{
targetelement=document.all(ID);
if (targetelement.style.display=="none")
{
targetelement.style.display='';
if(ID=="1")
ID="0";
else
ID="1";
targetelement=document.all(ID);
targetelement.style.display="none";
}
else
targetelement.style.display="none";
}
</script>
</head>
<body class="bodycolor" topmargin="1" leftmargin="0">
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableHeader" onclick="clickMenu('1')" style="cursor:hand" title="点击伸缩列表">
<td nowrap align="center"><b>按部门选择</b></td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" cellpadding="3" id="1">
<tr class="TableControl">
<td>
<?
$PARA_URL="user.php";
$PARA_TARGET="user";
$PARA_ID="ID";
$PARA_VALUE=$ID;
$PRIV_NO_FLAG=0;
include_once("inc/dept_list/index.php");
?>
</td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableHeader" onclick="clickMenu('0')" style="cursor:hand" title="点击伸缩列表">
<td nowrap align="center"><b>按角色选择</b></td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" id="0" style="display:none">
<?
//============================ 显示角色信息 =======================================
$query = "SELECT * from USER_PRIV order by PRIV_NO ";
$cursor= exequery($connection,$query);
$PRIV_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$PRIV_COUNT++;
$USER_PRIV =$ROW["USER_PRIV"];
$PRIV_NAME=$ROW["PRIV_NAME"];
?>
<tr class="TableControl">
<td align="center" onclick="javascript:parent.user.location='user.php?USER_PRIV=<?=$USER_PRIV?>&POST_PRIV=<?=$POST_PRIV?>&POST_DEPT=<?=$POST_DEPT?>&MANAGE_FLAG=<?=$MANAGE_FLAG?>';" style="cursor:hand"><?=$PRIV_NAME?></td>
</tr>
<?
}
if($PRIV_COUNT==0)
Message("","没有定义角色");
?>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -