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

📄 set_permission.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
$TITLE = "编辑流程步骤 - 可办人员";
$sql = "SELECT * FROM flow_process WHERE ID=".$ID." AND FLOW_ID=".$FLOW_ID."";
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
if ( $row['PRCS_DEFAULT_USER'] != "" )
{
	$ishavede = 1;
}
echo "\r\n<html>\r\n<head>\r\n<title>";
echo $TITLE;
echo "</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
echo "<s";
echo "cript src=\"/inc/prototype.js\"></script>\r\n";
echo "<s";
echo "cript src=\"/inc/common.js\"></script>\r\n";
echo "<s";
echo "cript src=\"/inc/follow.js\"></script>\r\n";
echo "<s";
echo "tyle>\r\nbody {\r\n\tmargin-left: 0px;\r\n\tmargin-top: 0px;\r\n\tmargin-right: 0px;\r\n\tmargin-bottom: 0px;\r\n\tbackground-color:#F5F5F5;\r\n}\r\n</style>\r\n";
echo "<S";
echo "CRIPT language=javascript>\r\nwindow.resizeTo(600,400);\r\nfunction check_form(){\r\n\tif(formPermission.ishavede.value == 1){\r\n\t\treturn window.confirm(\"办理人员更改后,默认办理人也将做相应的更改!\");\r\n\t\r\n\t}else{\r\n\t\treturn 1;\r\n\t}\r\n\t\r\n\r\n}\r\n\r\nfunction clearUser(){\r\n\tformPermission.PERMISSION_NAME.value=\"\"\r\n\tformPermission.PERMISSION_USER_ID.value=\"\"\r\n\r\n}\r\nfunction clearPriv(){\r\n\tformPermission.PERMISSION_P";
echo "RIV.value=\"\"\r\n\tformPermission.PERMISSION_PRIV_ID.value=\"\"\r\n\r\n}\r\nfunction clearDept(){\r\n\tformPermission.PERMISSION_DEPT.value=\"\"\r\n\tformPermission.PERMISSION_DEPT_ID.value=\"\"\r\n\r\n}\r\nfunction submitForm(){\r\n\tif(check_form()){\r\n\t\tvar subObj = document.getElementById('savebutton');\r\n\t\tvar simgObj = document.getElementById('saveimg');\r\n\r\n\t\tsimgObj.style.filter = \"gray()\";\r\n\t\tsubObj.disabled = true;\r\n\t\tdo";
echo "cument.formPermission.submit();\r\n\t}\r\n\telse{\r\n\t}\r\n\r\n}\r\n\r\nfunction selectProcessId(tagContent){\r\n\tvar curSrcIdObj = document.getElementById('selectProcess')\r\n\tif (curSrcIdObj.value != \"\"){\r\n\t\tparent.location = \"processmain.php?FLOW_ID=";
echo $FLOW_ID;
echo "&ID=\"+curSrcIdObj.value+\"&uback=";
echo $_REQUEST['uback'];
echo "&tagContent=\"+tagContent\r\n\t\r\n\t}\r\n}\r\n</SCRIPT>\r\n</head>\r\n\r\n<body topmargin=\"5\" onload=\"setVariables(); checkLocation('divsave',120,20,1);\">\r\n\r\n<form action=\"permission_do.php\" method=\"post\" name=\"formPermission\" onSubmit=\"return check_form();\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" >\r\n  <tr class=\"tablehead2\">\r\n    <td >\r\n\t<BUTTON class=btn onclick=\"submitForm();\" id=\"savebutton\">";
echo "<table><tr valign=middle ><td><img src=\"/images/workflow/save.gif\" align=\"center\" id=\"saveimg\"></td> <td> &nbsp;保 &nbsp;&nbsp;存</td></tr></table></BUTTON> \r\n\t";
if ( $_REQUEST['uback'] == "img" )
{
	$backstr = "parent.location='imgedit.php?FLOW_ID=".$_REQUEST['FLOW_ID']."'";
}
else
{
	$backstr = "parent.location='imgedit.php?FLOW_ID=".$_REQUEST['FLOW_ID']."'";
}
echo "\t<BUTTON class=btn onclick=\"location='set_permission_default.php?FLOW_ID=";
echo $_REQUEST['FLOW_ID'];
echo "&ID=";
echo $_REQUEST['ID'];
echo "&uback=";
echo $_REQUEST['uback'];
echo "'\"><table><tr valign=middle ><td><img src=\"/images/workflow/def.gif\" align=\"center\"></td> <td> &nbsp;默认办理人</td></tr></table></BUTTON> \r\n\t<BUTTON class=btn onclick=\"";
echo $backstr;
echo "\"><table><tr valign=middle ><td><img src=\"/images/workflow/return.gif\" align=\"center\"></td> <td> &nbsp;返 &nbsp;&nbsp;回</td></tr></table></BUTTON> \r\n    </td>\r\n    <td width=\"160\">选择节点 \r\n\t";
echo "<s";
echo "elect name=\"selectProcess\" onChange=\"selectProcessId('tagContent2')\" style=\"background:#E1E1E1\">\r\n\t";
$sqlp = "SELECT ID,PRCS_NAME FROM FLOW_PROCESS WHERE FLOW_ID='".$_REQUEST['FLOW_ID']."' ORDER BY PRCS_ID ASC";
$rsp = exequery( $connection, $sqlp );
while ( $rowp = mysql_fetch_array( $rsp ) )
{
	$LIST_ID = $rowp['ID'];
	$LIST_PRCS_NAME = $rowp['PRCS_NAME'];
	$strSelected = "";
	if ( $LIST_ID == $_REQUEST['ID'] )
	{
		$strSelected = "selected";
	}
	echo "\t\t<option value=\"";
	echo $LIST_ID;
	echo "\" ";
	echo $strSelected;
	echo ">";
	echo $LIST_PRCS_NAME;
	echo "</option>\r\n\t\t\r\n\t";
}
echo "\t</select>\r\n    </td>\r\n\r\n  </tr>\r\n</table>\r\n\r\n";
$connection = openconnection( );
$query = "SELECT * from FLOW_PROCESS where ID={$ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$PRCS_USER = $ROW['PRCS_USER'];
	$PRCS_DEPT = $ROW['PRCS_DEPT'];
	$PRCS_PRIV = $ROW['PRCS_PRIV'];
	if ( $PRCS_USER != "" )
	{
		$PERMISSION_NAME = getusernamestr( $PRCS_USER );
	}
	if ( $PRCS_PRIV != "" )
	{
		$PERMISSION_PRIV = getprivstr( $PRCS_PRIV );
	}
	if ( $PRCS_DEPT != "" )
	{
		$PERMISSION_DEPT = getdeptstr( $PRCS_DEPT );
	}
}
echo "\r\n<hr width=\"95%\" height=\"1\" align=\"left\" color=\"#ffffff\">\r\n\r\n<table border=\"0\" width=\"100%\" cellpadding=\"5\" cellspacing=\"1\" align=\"center\" >\r\n\r\n      <tr>\r\n      <td nowrap class=\"TableLine2\">经办人员</td>\r\n      <td class=\"TableLine1\">\r\n\t\t<textarea cols=45 name=\"PERMISSION_NAME\" rows=\"3\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $PERMISSION_NAME;
echo "</textarea>\r\n\t\t<input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindowUser('PERMISSION_USER_ID','PERMISSION_NAME','formPermission')\" title=\"添加经办人员\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clearUser()\" title=\"清空经办人员\" name=\"button\">\r\n\t\t<input type='hidden' value=\"";
echo $PRCS_USER;
echo "\" name=\"PERMISSION_USER_ID\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableLine2\">经办角色</td>\r\n      <td class=\"TableLine1\">\r\n        <textarea cols=45 name=\"PERMISSION_PRIV\" rows=\"3\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $PERMISSION_PRIV;
echo "</textarea>\r\n\t\t<input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindowPriv('PERMISSION_PRIV_ID','PERMISSION_PRIV','formPermission')\" title=\"添加经办角色\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clearPriv()\" title=\"清空经办角色\" name=\"button\">\r\n\t\t<input type='hidden' value=\"";
echo $PRCS_PRIV;
echo "\" name=\"PERMISSION_PRIV_ID\" id=\"PERMISSION_PRIV_ID\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableLine2\">经办部门</td>\r\n      <td class=\"TableLine1\">\r\n        <textarea cols=45 name=\"PERMISSION_DEPT\" rows=\"3\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $PERMISSION_DEPT;
echo "</textarea>\r\n\t\t<input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindowDept('PERMISSION_DEPT_ID','PERMISSION_DEPT','formPermission')\" title=\"添加经办部门\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clearDept()\" title=\"清空经办部门\" name=\"button\">\r\n\t\t<input type='hidden' value=\"";
echo $PRCS_DEPT;
echo "\" name=\"PERMISSION_DEPT_ID\">\r\n\t\t\r\n\t\t</td>\r\n    </tr>\r\n        <input type='hidden' value=\"";
echo $FLOW_ID;
echo "\" name=\"FLOW_ID\">\r\n        <input type='hidden' value=\"";
echo $ID;
echo "\" name=\"ID\">\r\n\t\t<input type=\"hidden\" name=\"uback\" value=\"";
echo $_REQUEST['uback'];
echo "\">\r\n\t\t<input type='hidden' value=\"update\" name=\"f\">\r\n\t\t<input type=\"hidden\" value=\"";
echo $ishavede;
echo "\" name=\"ishavede\">\r\n</table>\r\n</form>\r\n</body>\r\n</html>\r\n";
echo "<s";
echo "cript>\r\n\r\n";
if ( $_REQUEST['o'] == 1 )
{
	echo "showOText();\r\n";
}
echo "</script>\r\n";
?>

⌨️ 快捷键说明

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