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