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

📄 set_user.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "\r\n<html>\r\n<head>\r\n<title>指定可访问人员</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><script src=\"/inc/js/module.js\"></script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$query = "select ".$FIELD_NAME.",OWNER from FILE_SORT where SORT_ID='{$SORT_ID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$$FIELD_NAME = $ROW[$FIELD_NAME];
	$OWNER = $ROW['OWNER'];
	if ( !check_priv( $OWNER ) )
	{
		exit( );
	}
	$PRIV_ARRAY = explode( "|", $$FIELD_NAME );
	$PRIV_DEPT = $PRIV_ARRAY[0];
	$PRIV_ROLE = $PRIV_ARRAY[1];
	$PRIV_USER = $PRIV_ARRAY[2];
	if ( $PRIV_DEPT == "ALL_DEPT" )
	{
		$PRIV_DEPT_NAME = "全体部门";
	}
	else
	{
		$query1 = "SELECT DEPT_NAME from DEPARTMENT where find_in_set(DEPT_ID,'".$PRIV_DEPT."')";
		$cursor1 = exequery( $connection, $query1 );
		while ( $ROW = mysql_fetch_array( $cursor1 ) )
		{
			$PRIV_DEPT_NAME .= $ROW['DEPT_NAME'].",";
		}
	}
	$query1 = "SELECT PRIV_NAME from USER_PRIV where find_in_set(USER_PRIV,'".$PRIV_ROLE."')";
	$cursor1 = exequery( $connection, $query1 );
	while ( $ROW = mysql_fetch_array( $cursor1 ) )
	{
		$PRIV_ROLE_NAME .= $ROW['PRIV_NAME'].",";
	}
	$query1 = "SELECT USER_NAME from USER where find_in_set(USER_ID,'".$PRIV_USER."')";
	$cursor1 = exequery( $connection, $query1 );
	while ( $ROW = mysql_fetch_array( $cursor1 ) )
	{
		$PRIV_USER_NAME .= $ROW['USER_NAME'].",";
	}
}
else
{
	exit( );
}
echo "\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/edit.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 指定权限</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<table class=\"TableBlock\" width=\"100%\" align=\"center\">\r\n  <form action=\"user_submit.php\"  method=\"post\" name=\"form1\">\r\n   <tr>\r\n      <td nowrap class=\"TableContent\"\" align=\"center\">授权范围:<br>(部门)</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"hidden\" name=\"TO_ID\" value=\"";
echo $PRIV_DEPT;
echo "\">\r\n        <textarea cols=40 name=TO_NAME rows=6 class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $PRIV_DEPT_NAME;
echo "</textarea>\r\n        <a href=\"javascript:;\" class=\"orgAdd\" onClick=\"SelectDept()\">添加</a>\r\n       <a href=\"javascript:;\" class=\"orgClear\" onClick=\"ClearUser()\">清空</a>\r\n      </td>\r\n   </tr>\r\n   <tr>\r\n      <td nowrap class=\"TableContent\"\" align=\"center\">授权范围:<br>(角色)</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"hidden\" name=\"PRIV_ID\" value=\"";
echo $PRIV_ROLE;
echo "\">\r\n        <textarea cols=40 name=\"PRIV_NAME\" rows=6 class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $PRIV_ROLE_NAME;
echo "</textarea>\r\n        <a href=\"javascript:;\" class=\"orgAdd\" onClick=\"SelectPriv()\">添加</a>\r\n        <a href=\"javascript:;\" class=\"orgClear\" onClick=\"ClearUser('PRIV_ID', 'PRIV_NAME')\">清空</a>\r\n      </td>\r\n   </tr>\r\n   <tr>\r\n      <td nowrap class=\"TableContent\"\" align=\"center\">授权范围:<br>(人员)</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"hidden\" name=\"COPY_TO_ID\" value=\"";
echo $PRIV_USER;
echo "\">\r\n        <textarea cols=40 name=\"COPY_TO_NAME\" rows=6 class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $PRIV_USER_NAME;
echo "</textarea>\r\n        <a href=\"javascript:;\" class=\"orgAdd\" onClick=\"SelectUser('','COPY_TO_ID', 'COPY_TO_NAME')\">添加</a>\r\n        <a href=\"javascript:;\" class=\"orgClear\" onClick=\"ClearUser('COPY_TO_ID', 'COPY_TO_NAME')\">清空</a>\r\n      </td>\r\n   </tr>\r\n   <tr>\r\n      <td nowrap class=\"TableContent\"\" align=\"center\">选项:</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"checkbox\" name=\"OVERRIDE\" id=\"OVERRIDE\"><label for=\"OVERRIDE\">重置所有下级子文件夹的权限</label><br>\r\n      </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap  class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n      <input type=\"hidden\" name=\"SORT_ID\" value=\"";
echo $SORT_ID;
echo "\">\r\n      <input type=\"hidden\" name=\"FIELD_NAME\" value=\"";
echo $FIELD_NAME;
echo "\">\r\n      <input type=\"hidden\" name=\"FILE_SORT\" value=\"";
echo $FILE_SORT;
echo "\">\r\n      <input type=\"hidden\" name=\"TOP_SORT\" value=\"";
echo $TOP_SORT;
echo "\">\r\n        <input type=\"submit\" value=\"确定\" class=\"BigButton\">&nbsp;&nbsp;\r\n        <input type=\"button\" value=\"返回\" class=\"BigButton\" onclick=\"parent.parent.location='../folder.php?FILE_SORT=";
echo $FILE_SORT;
echo "&SORT_ID=";
echo $TOP_SORT;
echo "'\">\r\n    </td>\r\n  </form>\r\n</table>\r\n\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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