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

📄 set_permission_default.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
$TITLE = "编辑流程步骤 - 办理人员";
echo "\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'];
	$PRCS_OPTYPE = $ROW['PRCS_OPTYPE'];
	$PRCS_DEFAULT_USER = $ROW['PRCS_DEFAULT_USER'];
	$PRCS_DEFAULT_TYPE = $ROW['PRCS_DEFAULT_TYPE'];
	$PRCS_DEFAULT_MANAGE = $ROW['PRCS_DEFAULT_MANAGE'];
	if ( $PRCS_DEFAULT_USER != "" )
	{
		$PERMISSION_DEFAULT_USER = getusernamestr( $PRCS_DEFAULT_USER );
	}
	if ( $PRCS_DEFAULT_MANAGE != "" )
	{
		$sql = "SELECT USER_NAME FROM user WHERE USER_ID='".$PRCS_DEFAULT_MANAGE."'";
		$rs = exequery( $connection, $sql );
		$row = mysql_fetch_array( $rs );
		$MANAGE_NAME = $row['USER_NAME'];
	}
}
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\n\r\nfunction LoadWindowUser(inputID,inputName,formName)\r\n{\r\n\t  URL=\"/module/selectuser_flowdefault/?ID=";
echo $_REQUEST['ID'];
echo "&inputID=\"+inputID+\"&inputName=\"+inputName+\"&formName=\"+formName;\r\n\t  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n\t  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n\t  window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:200px;dialogHeight:400px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\n\r\n\r\nfunction clearDefa";
echo "ultuser(){\r\n\tformPermission.PERMISSION_DEFAULT_USER.value=\"\"\r\n\tformPermission.PERMISSION_DEFAULT_USER_ID.value=\"\"\r\n\t";
if ( $PRCS_OPTYPE == 0 )
{
	echo "\tformPermission.MANAGE_NAME.value=\"\"\r\n\tformPermission.MANAGE_ID.value=\"\"\r\n\t";
}
echo "}\r\n\r\nfunction LoadWindowManage(inputID,inputName,formName)\r\n{\r\n\t  URL=\"/module/manage_select_new/?inputID=\"+inputID+\"&inputName=\"+inputName+\"&formName=\"+formName;\r\n\t  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n\t  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n\t  window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:200p";
echo "x;dialogHeight:400px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\n\r\n\r\nfunction modifyManage(){\r\n\tvar deuidvalue = formPermission.PERMISSION_DEFAULT_USER_ID.value\r\n\tif(deuidvalue != \"\"){\r\n\t\t";
if ( $PRCS_OPTYPE == 0 )
{
	echo "\t\tdocument.getElementById('buttonSelectManage').disabled = false\r\n\t\t";
}
echo "\t\tdocument.getElementById('ifCanmodify').disabled = false\r\n\t}\r\n\telse{\r\n\t\t";
if ( $PRCS_OPTYPE == 0 )
{
	echo "\t\tdocument.getElementById('buttonSelectManage').disabled = true\r\n\t\tdocument.getElementById('MANAGE_ID').value = \"\";\r\n\t\tdocument.getElementById('MANAGE_NAME').value = \"\";\r\n\t\t\t\r\n\t\t";
}
echo "\t\tdocument.getElementById('ifCanmodify').disabled = true\r\n\t\tdocument.getElementById('ifCanmodify').checked = false\r\n\t}\r\n}\r\n\r\nonload = function (){\r\n\tvar deuidvalue = formPermission.PERMISSION_DEFAULT_USER_ID.value\r\n\tif(deuidvalue == \"\"){\r\n\t\t";
if ( $PRCS_OPTYPE == 0 )
{
	echo "\t\tdocument.getElementById('buttonSelectManage').disabled = true\r\n\t\t";
}
echo "\t\tdocument.getElementById('ifCanmodify').disabled = true\r\n\t\tdocument.getElementById('ifCanmodify').checked = false\r\n\t}\r\n\r\n}\r\n\r\n</SCRIPT>\r\n</head>\r\n\r\n<body topmargin=\"5\"  onMouseMove=\"modifyManage()\" onload=\"setVariables(); checkLocation('divsave',120,20,1);\">\r\n<form action=\"permission_do.php\" method=\"post\" name=\"formPermission\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" >\r\n  <tr cl";
echo "ass=\"tablehead2\">\r\n    <td >\r\n\t<BUTTON class=btn onclick=\"submitForm();\" id=\"savebutton\"><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\r\n\t<BUTTON class=btn onclick=\"location='set_permission.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/return.gif\" align=\"center\"></td> <td> &nbsp;返 &nbsp;&nbsp;回</td></tr></table></BUTTON> \r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n\r\n\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    <tr>\r\n      <td nowrap class=\"TableLine2\">默认办理人</td>\r\n      <td class=\"TableLine1\"";
echo ">\r\n        <textarea cols=45 name=\"PERMISSION_DEFAULT_USER\" rows=\"3\" class=\"BigStatic\" wrap=\"yes\" readonly >";
echo $PERMISSION_DEFAULT_USER;
echo "</textarea>\r\n\t\t<input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindowUser('PERMISSION_DEFAULT_USER_ID','PERMISSION_DEFAULT_USER','formPermission')\" title=\"添加默认办理人\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clearDefaultuser()\" title=\"清空默认办理人\" name=\"button\">\r\n\t\t<input type='hidden' value=\"";
echo $PRCS_DEFAULT_USER;
echo "\" name=\"PERMISSION_DEFAULT_USER_ID\">\r\n\t\t</td>\r\n    </tr>\r\n";
if ( $PRCS_OPTYPE == 0 )
{
	echo "\r\n    <tr>\r\n      <td nowrap class=\"TableLine2\">主办人</td>\r\n      <td class=\"TableLine1\">\r\n\t\t<input type=\"text\" class=\"smallinput\" name=\"MANAGE_NAME\" id=\"MANAGE_NAME\" value=\"";
	echo $MANAGE_NAME;
	echo "\">\r\n\t\t<input type=\"hidden\" name=\"MANAGE_ID\" id=\"MANAGE_ID\" value=\"";
	echo $PRCS_DEFAULT_MANAGE;
	echo "\">\r\n\t\t<input type=\"button\" value=\"选择\" onClick=\"LoadWindowManage('MANAGE_ID','MANAGE_NAME','formPermission')\" title=\"选择主办人\" name=\"buttonSelectManage\" id=\"buttonSelectManage\" class=\"SmallButton\" >\r\n\r\n\t\t</td>\r\n    </tr>\r\n";
}
echo "\r\n\r\n    <tr>\r\n      <td nowrap class=\"TableLine2\">可修改</td>\r\n      <td class=\"TableLine1\"><INPUT TYPE=\"checkbox\" NAME=\"ifCanmodify\" ";
if ( $PRCS_DEFAULT_TYPE == 1 )
{
	echo "checked";
}
echo " value=\"1\" id=\"ifCanmodify\">(办理流程时,本步骤的办理人员可否修改)\r\n\t\t</td>\r\n    </tr>\r\n\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=\"updatedefault\" name=\"f\">\r\n</table>\r\n</form>\r\n</body>\r\n</html>\r\n";
echo "<s";
echo "cript>\r\nfunction submitForm(){\r\n\t";
if ( $PRCS_OPTYPE == 0 )
{
	echo "\tif (formPermission.MANAGE_ID.value == \"\" && formPermission.PERMISSION_DEFAULT_USER_ID.value != \"\"){\r\n\t\talert(\"默认主办人不能空\") \r\n\t\treturn false\r\n\t}\r\n\t";
}
echo "\tvar subObj = document.getElementById('savebutton');\r\n\tvar simgObj = document.getElementById('saveimg');\r\n\r\n\tsimgObj.style.filter = \"gray()\";\r\n\tsubObj.disabled = true;\r\n\r\n\tdocument.formPermission.submit();\r\n\r\n}\r\n</script>\r\n";
echo "<s";
echo "cript>\r\n\r\n";
if ( $_REQUEST['o'] == 1 )
{
	echo "showOText();\r\n";
}
echo "</script>";
?>

⌨️ 快捷键说明

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