📄 dept.php
字号:
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript 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.displa';
echo 'y="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" cellsp';
echo 'acing="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;
$xname = 'user_select_single';
$showButton = 0;
include_once 'inc/dept_list/index.php';
echo ' </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" cel';
echo 'lpadding="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'];
echo '<tr class="TableControl">
<td align="center" onclick="javascript:parent.user.location=\'user.php?USER_PRIV=';
echo $USER_PRIV;
echo '&POST_PRIV=';
echo $POST_PRIV;
echo '&POST_DEPT=';
echo $POST_DEPT;
echo '&MANAGE_FLAG=';
echo $MANAGE_FLAG;
echo '\';" style="cursor:hand">';
echo $PRIV_NAME;
echo '</td>
</tr>
';
}
if (($PRIV_COUNT == 0))
{
message ('', '没有定义角色');
}
echo '</table>
</body>
</html>
';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -