📄 set_user.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\r\n<script>\r\n\r\nfunction mysubmit()\r\n{\r\n document.form1.submit();\r\n}\r\n\r\n";
if ( $VIEW_TYPE == "" )
{
$VIEW_TYPE = 0;
}
echo "function set_view_type()\r\n{\r\n location=\"set_user.php?FLOW_ID=";
echo $FLOW_ID;
echo "&ID=";
echo $ID;
echo "&VIEW_TYPE=";
echo 1 - $VIEW_TYPE;
echo "\";\r\n}\r\nfunction clear_dept()\r\n{\r\n document.form1.TO_NAME.value=\"\";\r\n document.form1.TO_ID.value=\"\";\r\n}\r\n\r\nfunction LoadWindow()\r\n{\r\n URL=\"./dept_select\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:400px;dialogHeight:330px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\nfunction clear_user2()\r\n{\r\n document.form1.COPY_TO_NAME.value=\"\";\r\n document.form1.COPY_TO_ID.value=\"\";\r\n}\r\nfunction LoadWindow2()\r\n{\r\n URL=\"/module/user_select?ID=2\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n //window.open(URL,\"read_notify\",\"height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=150,resizable=yes\");\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:300px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\nfunction clear_priv()\r\n{\r\n document.form1.PRIV_ID.value=\"\";\r\n document.form1.PRIV_NAME.value=\"\";\r\n}\r\n\r\nfunction LoadPrivWindow()\r\n{\r\n URL=\"/module/priv_select\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+200;\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:400px;dialogHeight:330px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$query = "select * from FLOW_PROCESS where ID=".$ID;
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$PRCS_USER = $ROW['PRCS_USER'];
$PRCS_ROLE = $ROW['PRCS_PRIV'];
$PRCS_DEPT = $ROW['PRCS_DEPT'];
$PRCS_RELATION = $ROW['PRCS_RELATION'];
$PRCS_ID = $ROW['PRCS_ID'];
if ( $PRIV_DEPT == "ALL_DEPT" )
{
$PRIV_DEPT_NAME = "全体部门";
}
else
{
$query1 = "SELECT * from DEPARTMENT where find_in_set(DEPT_ID,'".$PRCS_DEPT."')";
$cursor1 = exequery( $connection, $query1 );
while ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$PRCS_DEPT_NAME .= $ROW['DEPT_NAME'].",";
}
}
$query1 = "SELECT * from USER_PRIV where find_in_set(USER_PRIV,'".$PRCS_ROLE."')";
$cursor1 = exequery( $connection, $query1 );
while ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$PRCS_ROLE_NAME .= $ROW['PRIV_NAME'].",";
}
$query1 = "SELECT * from USER where find_in_set(USER_ID,'".$PRCS_USER."')";
$cursor1 = exequery( $connection, $query1 );
while ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$PRCS_USER_NAME .= $ROW['USER_NAME'].",";
}
}
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\"> 步骤";
echo $PRCS_ID;
echo " - 编辑经办人员</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n<table width=\"500\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\" bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\" class=\"small\">\r\n <form action=\"submit1.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 $PRCS_DEPT;
echo "\">\r\n <textarea cols=40 name=TO_NAME rows=8 class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $PRCS_DEPT_NAME;
echo "</textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"添加部门\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_dept()\" title=\"清空部门\" name=\"button\">\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 $PRCS_ROLE;
echo "\">\r\n <textarea cols=40 name=\"PRIV_NAME\" rows=8 class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $PRCS_ROLE_NAME;
echo "</textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadPrivWindow()\" title=\"选择角色\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_priv()\" title=\"清空角色\" name=\"button\">\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 $PRCS_USER;
echo "\">\r\n <textarea cols=40 name=\"COPY_TO_NAME\" rows=8 class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $PRCS_USER_NAME;
echo "</textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow2()\" title=\"选择人员\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user2()\" title=\"清空人员\" name=\"button\">\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=\"PRCS_RELATION\" id=\"PRCS_RELATION\" value=1 ";
if ( $PRCS_RELATION == 1 )
{
echo " checked";
}
echo "><label for=\"PRCS_RELATION\">此经办权限是经办人员、经办部门、经办角色的交集</label><br>\r\n </td>\r\n </tr>\r\n\r\n <tr bgcolor=\"#CCCCCC\">\r\n <td nowrap class=\"TableControl\" align=\"center\" colspan=\"2\">\r\n <input type=\"button\" class=\"BigButton\" value=\"保 存\" onclick=\"mysubmit();\"> \r\n";
if ( $GRAPH == 1 )
{
echo " <input type=\"button\" value=\"关 闭\" class=\"BigButton\" name=\"back\" onClick=\"window.close();\">\r\n";
}
else
{
echo " <input type=\"button\" class=\"BigButton\" value=\"返 回\" onclick=\"location='index.php?FLOW_ID=";
echo $FLOW_ID;
echo "'\">\r\n";
}
echo " <input type='hidden' value=\"";
echo $GRAPH;
echo "\" name=\"GRAPH\">\r\n <input type=\"hidden\" name=\"FLOW_ID\" value=\"";
echo $FLOW_ID;
echo "\">\r\n <input type=\"hidden\" name=\"ID\" value=\"";
echo $ID;
echo "\">\r\n <input type=\"hidden\" name=\"FLD_STR\" value=\"\">\r\n </td>\r\n </tr>\r\n </form>\r\n\r\n</table>\r\n\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -