📄 turn_next_free.php
字号:
<?
include_once 'inc/auth.php';
include_once '../../prcs_role.php';
if (!run_role ($RUN_ID, $PRCS_ID))
{
exit ();
}
echo '
<html>
<head>
<title>工作办结</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript Language="JavaScript">
function LoadWindow()
{
URL="user_select?FLOW_ID=';
echo $FLOW_ID;
echo '&RUN_ID=';
echo $RUN_ID;
echo '&PRCS_ID=';
echo $PRCS_ID;
echo '";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX;
loc_y=document.body.scrollTop+event.clientY-event.offsetY;
window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:380px;dialogHeight:350px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function clear_user()
{
document.form1.PRCS_USER_NAME.value="";
document.form1.PRCS_USER.';
echo 'value="";
document.form1.PRCS_OP_USER.value="";
document.form1.PRCS_OP_USER_NAME.value="";
}
</script>
</head>
<body class="bodycolor" topmargin="5">
';
$query = ((''.'SELECT FLOW_NAME from FLOW_TYPE WHERE FLOW_ID=').$FLOW_ID);
$cursor1 = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor1))
{
$FLOW_NAME = $ROW['FLOW_NAME'];
}
$query = ((''.'SELECT RUN_NAME from FLOW_RUN WHERE RUN_ID=').$RUN_ID);
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$RUN_NAME = $ROW['RUN_NAME'];
}
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/green_arrow.gif" align="absmiddle">';
echo '<s';
echo 'pan class="big3"> 请指定下一步骤的经办人</span><br>
</td>
</tr>
</table>
<table border="0" cellspacing="1" class="small" bgcolor="#000000" cellpadding="3" width="90%">
<form action="turn_submit_free.php" method="post" name="form1" onsubmit="return CheckForm();">
<tr class="TableHeader">
<td nowrap align="center" class="Big" colspan="2"><b>';
echo $FLOW_NAME;
echo '</b></td>
</tr>
';
for ($PRCS_ID_I = 1; ($PRCS_ID_I <= $PRCS_ID); ++$PRCS_ID_I)
{
$query = ((((''.'SELECT * from FLOW_RUN_PRCS where RUN_ID=').$RUN_ID).' and PRCS_ID=').$PRCS_ID_I);
$cursor = exequery ($connection, $query);
$USER_NAME_STR = '';
while ($ROW = mysql_fetch_array ($cursor))
{
$USER_ID = $ROW['USER_ID'];
$PRCS_FLAG = $ROW['PRCS_FLAG'];
$query1 = (((''.'SELECT USER_NAME from USER where USER_ID=\'').$USER_ID).'\'');
$cursor1 = exequery ($connection, $query1);
if ($ROW = mysql_fetch_array ($cursor1))
{
if (($PRCS_FLAG == 1))
{
($USER_NAME_STR .= (('<font color=red title=未接收办理>'.$ROW['USER_NAME']).'(未接收)</font>,'));
}
else
{
if (($PRCS_FLAG == 2))
{
($USER_NAME_STR .= (('<font color=red title=正在办理>'.$ROW['USER_NAME']).'(办理中)</font>,'));
}
else
{
if (($PRCS_FLAG == 4))
{
($USER_NAME_STR .= (('<font color=green title=已办理完毕>'.$ROW['USER_NAME']).'(已办结)</font>,'));
}
else
{
($USER_NAME_STR .= ($ROW['USER_NAME'].','));
}
}
}
}
if (((($PRCS_ID_I == $PRCS_ID) AND ($PRCS_FLAG != 4)) AND ($USER_ID != $LOGIN_USER_ID)))
{
($NOT_ALL_FINISH .= ($ROW['USER_NAME'].','));
continue;
}
}
$USER_NAME_STR = substr ($USER_NAME_STR, 0, (strlen ($USER_NAME_STR) - 1));
echo ' <tr class="TableData">
<td nowrap width="30%">第<b>';
echo '<s';
echo 'pan class=big4>';
echo $PRCS_ID_I;
echo '</span></b>步:';
if (($PRCS_ID_I == $PRCS_ID))
{
echo '(当前步骤)';
}
echo '</td>
<td>';
echo $USER_NAME_STR;
echo '</td>
</tr>
';
}
echo ' <tr class="TableData">
<td nowrap width="30%">第<b>';
echo '<s';
echo 'pan class=big4>';
echo $PRCS_ID_I;
echo '</span></b>步:(下一步骤)</td>
<td nowrap>请指定下一步骤的经办人:<br>
<b>主办人:</b>
<input type="text" name="PRCS_OP_USER_NAME" value="';
echo $PRCS_OP_USER_NAME;
echo '" size="10" class="SmallStatic" readonly>
<input type="hidden" name="PRCS_OP_USER">
<font color=red>主办人是某步骤的负责人,只允许主办人编辑表单、公共附件和转交流程</font><br>
<b>经办人:</b>
<textarea cols=40 name="PRCS_USER_NAME" rows="4" class="BigStatic" wrap="yes" readonly>';
echo $PRCS_USER_NAME;
echo '</textarea>
<input type="hidden" name="PRCS_USER">
<input type="button" value="选择经办/主办人" class="SmallButton" onClick="LoadWindow()" title="选择经办人和主办人" name="button">
<input type="button" value="清空" class="SmallButton" onClick="clear_user()" title="清空经办人和主办人" name="button">
<br><br>
<input type="checkbox" name="TOP_FLAG" id="TOP_FL';
echo 'AG"><label for="TOP_FLAG">仅由首先接收办理的经办人办理,可以不指定主办人</label>
</td>
</tr>
<tr class="TableHeader">
<td colspan="2"><b>短信提醒</b></td>
</tr>
';
$query = 'select PARA_VALUE from SYS_PARA where PARA_NAME=\'SMS_REMIND\'';
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$PARA_VALUE = $ROW['PARA_VALUE'];
}
$SMS_REMIND = substr ($PARA_VALUE, 0, strpos ($PARA_VALUE, '|'));
$SMS2_REMIND = substr ($PARA_VALUE, (strpos ($PARA_VALUE, '|') + 1));
echo ' <tr class="TableData">
<td colspan="2">
<input type="checkbox" name="SMS_REMIND" id="SMS_REMIND" ';
if (find_id ($SMS_REMIND, '7'))
{
echo 'checked';
}
echo '><label for="SMS_REMIND">使用内部短信提醒经办人</label>
';
$query = 'select TYPE_PRIV from SMS2_PRIV';
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$TYPE_PRIV = $ROW['TYPE_PRIV'];
}
if (find_id ($TYPE_PRIV, 7))
{
echo ' <input type="checkbox" name="SMS2_REMIND" id="SMS2_REMIND" ';
if (find_id ($SMS_REMIND, '7'))
{
echo 'checked';
}
echo '><label for="SMS2_REMIND">使用手机短信提醒经办人</label>
';
}
$SMS_CONTENT = ('工作流提醒:'.$RUN_NAME);
echo '<br>
短信内容:<input type="text" name="SMS_CONTENT" value="';
echo $SMS_CONTENT;
echo '" size="62" maxlength="100" class="SmallInput">
</td>
</tr>
<tr class="TableControl">
<td nowrap align="center" colspan="2">
<input type="hidden" name="RUN_ID" value="';
echo $RUN_ID;
echo '">
<input type="hidden" name="OP" value="';
echo $OP;
echo '">
<input type="hidden" name="PRCS_ID" value="';
echo $PRCS_ID;
echo '">
<input type="hidden" name="MENU_FLAG" value="';
echo $MENU_FLAG;
echo '">
<input type="hidden" name="FLOW_ID" value="';
echo $FLOW_ID;
echo '">
<input type="submit" value="确认转交" class="BigButton" name="mybutton">
<input type="button" value="取消" class="BigButton" name="back" onClick="history.back();">
</td>
</tr>
</table>
</form>
';
echo '<s';
echo 'cript>
function CheckForm()
{
if(document.form1.SMS_CONTENT.value=="" && (document.form1.SMS_REMIND.checked || document.form1.SMS2_REMIND.checked))
{
alert("短信内容不能为空!");
return(false);
}
if(document.form1.PRCS_USER.value=="")
{
alert("请至少选择一个经办人!");
return (false);
}
if(document.form1.PRCS_OP_USER.value=="")
{
';
echo ' alert("请指定主办人!");
return(false);
}
';
if (($NOT_ALL_FINISH != ''))
{
$NOT_ALL_FINISH = substr ($NOT_ALL_FINISH, 0, -1);
$MSG = (('经办人 ['.$NOT_ALL_FINISH).'] 尚未办理完毕,确认要转交下一步骤么?');
echo ' msg="';
echo $MSG;
echo '";
if(!window.confirm(msg))
return (false);
';
}
echo ' document.form1.mybutton.disabled=true;
return (true);
}
</script>
</body>
</html>
';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -