⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dept.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 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=\"TableLine2\">\r\n      <td>\r\n";
$PARA_URL = "user.php";
$PARA_TARGET = "user";
$PARA_ID = "ID";
$PARA_VALUE = $ID;
$PARA_STR_URL = "&inputID=".$_REQUEST['inputID']."&inputName=".$_REQUEST['inputName'];
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('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=\"TableLine2\">\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 "&inputID=";
	echo $_REQUEST['inputID'];
	echo "&inputName=";
	echo $_REQUEST['inputName'];
	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%\" 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<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=\"center\"><b>按组选择</b></td>\r\n     </tr>\r\n  </table>\r\n  <table border=\"0\" cellspacing=\"1\" width=";
echo "\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" id=\"3\">\r\n\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  \r\n  \r\n  \r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -