📄 dept.php
字号:
<?php
include_once( "inc/auth.php" );
if ( $_REQUEST['inputID'] != "" )
{
$TO_ID = $_REQUEST['inputID'];
$TO_NAME = $_REQUEST['inputName'];
}
else
{
$TO_ID = "TO_ID";
$TO_NAME = "TO_NAME";
}
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 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\" cell";
echo "padding=\"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=\"TableLine2\">\r\n <td>\r\n";
$PARA_URL = "user.php";
$PARA_TARGET = "user";
$PARA_ID = "ID";
$PARA_VALUE = $ID;
$PARA_VALUE .= "&inputID=".$TO_ID."&inputName=".$TO_NAME;
$PARA_STR_URL = "&inputID=".$TO_ID."&inputName=".$TO_NAME;
if ( $e == "" )
{
$e = 0;
}
$PRIV_NO_FLAG = 0;
$dept = 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('2')\" 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%\" bgcolor=\"#000000\" cellpadding=\"5\" ";
echo "id=\"2\">\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=\"TableLine2\">\r\n <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 "&ID=";
echo $_REQUEST['ID'];
echo "&inputID=";
echo $TO_ID;
echo "&inputName=";
echo $TO_NAME;
echo "';\" style=\"cursor:hand\">";
echo $PRIV_NAME;
echo "</td>\r\n</tr>\r\n";
}
if ( $PRIV_COUNT == 0 )
{
message( "", "没有定义角色" );
}
echo "</table>\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\" cellpadding=\"5\" id=\"0\" >\r\n <table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n <tr class=\"TableHeader\" style=\"cursor:hand\" onClick=\"javascript:parent.user.location='user_online.php?ID=";
echo $ID;
echo "&inputID=";
echo $_REQUEST['inputID'];
echo "&inputName=";
echo $_REQUEST['inputName'];
echo "';\">\r\n <td nowrap align=\"center\"><b>在线人员</b></td>\r\n </tr>\r\n </table>\r\n \r\n <table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n <tr class=\"TableHeader\" style=\"cursor:hand\" title=\"点击伸缩列表\" onClick=\"jvascript:parent.user.location='user_leave.php?ID=";
echo $ID;
echo "&inputID=";
echo $_REQUEST['inputID'];
echo "&inputName=";
echo $_REQUEST['inputName'];
echo "';\">\r\n <td nowrap align=\"center\"><b>离职人员</b></td>\r\n </tr>\r\n </table>\r\n <table border=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\" cellpadding=\"5\" >\r\n \r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n <tr class=\"TableHeader\" onClick=\"clickMenu('3')\" style=\"cursor:hand\" title=\"点击伸缩列表\">\r\n <td nowrap align=\"";
echo "center\"><b>按组选择</b></td>\r\n </tr>\r\n </table>\r\n <table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" id=\"3\">\r\n ";
$connection = openconnection( );
$query = "SELECT GROUP_ID,GROUP_NAME FROM user_group WHERE USER_ID='".$_SESSION['LOGIN_USER_ID']."' ORDER BY GROUP_ID ASC";
$cursor = exequery( $connection, $query );
$GROUP_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
++$GROUP_COUNT;
$group_id = $ROW['GROUP_ID'];
$group_name = $ROW['GROUP_NAME'];
echo "<tr class=\"TableLine2\">\r\n <td align=\"center\" onClick=\"javascript:parent.user.location='user_group.php?groupid=";
echo $group_id;
echo "&ID=";
echo $_REQUEST['ID'];
echo "&inputID=";
echo $_REQUEST['inputID'];
echo "&inputName=";
echo $_REQUEST['inputName'];
echo "';\" style=\"cursor:hand\">";
echo $group_name;
echo "</td>\r\n</tr>\r\n";
}
if ( $GROUP_COUNT == 0 )
{
echo "<tr class=\"TableLine2\">\r\n <td align=\"center\" onClick=\"javascript:window.close();\" style=\"cursor:hand\">请先自定义组</td>\r\n</tr>\r\n";
}
echo "</table> \r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -