📄 turn_next.php
字号:
if($PRCS_IN!="")
{
?>
<a href="javascript:alert('符合条件:<?=$PRCS_IN_DESC?>')" title="符合条件:<?=$PRCS_IN_DESC?>"><span style="font-size:8pt">条件符合</span></a>
<?
}
}
else //不符合条件的
{
if($I==0 && $PRCS_TO_CHOOSE=="")
$NOT_PASS_FIRST=1;
?>
<input type="radio" disabled><img src="/images/<?=$IMAGE_NAME?>.gif" align="absmiddle">
<font color=gray><?=$PRCS_NAME?></font>
<a href="javascript:alert('<?=$NOT_PASS?>')" title="<?=$NOT_PASS?>"><span style="font-size:8pt">条件不符</span></a>
<?
}
echo " ";
}
}//else 非结束流程
}//for
if($PRCS_ENABLE_COUNT=="0")
{
if($NOT_PASS=="")
Message("提示","流程定义存在问题,管理员尚未定义下一步骤,请与管理员联系!");
else
Message("提示","无符合条件的下一步骤!");
Button_Back();
exit;
}
if($NOT_PASS_FIRST)
{
Message("提示","请选择条件符合的步骤!");
exit;
}
?>
</td>
</tr>
<?
//------------------------------------------ 非结束流程,选择人员 -----------------------------------
if($FLOW_STOP!=1) //非选择结束流程
{
if($PRCS_USER!="" && $PRCS_DEPT=="" && $PRCS_PRIV=="")
{
$PRCS_USER_ARRAY=explode(",",$PRCS_USER);
$PRCS_USER_COUNT=sizeof($PRCS_USER_ARRAY)-1;
if($PRCS_USER_COUNT==1)
{
$PRCS_USER_AUTO=$PRCS_USER;
if(substr($PRCS_USER_AUTO,-1)==",")
$PRCS_USER_AUTO1 = substr($PRCS_USER_AUTO,0,-1);
else
$PRCS_USER_AUTO1 = $PRCS_USER_AUTO;
$query3 = "SELECT * from USER where USER_ID='".$PRCS_USER_ARRAY[0]."'";
$cursor3= exequery($connection,$query3);
if($ROW=mysql_fetch_array($cursor3))
{
$PRCS_USER_NAME=$ROW["USER_NAME"].",";
$PRCS_OP_USER_NAME=$ROW["USER_NAME"];
}
}
}
?>
<tr class="TableHeader">
<td colspan="2"><img src="/images/node_user.gif" align="absmiddle"> <b>选择人员</b>
</td>
</tr>
<tr class="TableData">
<td colspan="2">
<?
if($PRCS_USER==""&& $PRCS_DEPT=="" && $PRCS_PRIV=="")
{
Message("提示","管理员尚未指定下一步骤的经办权限,请与管理员联系!");
Button_Back();
exit;
}
else // ----智能选择经办人
{
?>
<b>主办人:</b>
<input type="text" name="PRCS_OP_USER_NAME" value="<?=$PRCS_OP_USER_NAME?>" size="10" class="SmallStatic" readonly>
<input type="hidden" name="PRCS_OP_USER" value="<?=$PRCS_USER_AUTO1?>">
<font color=red>主办人是某步骤的负责人,只允许主办人编辑表单、公共附件和转交流程</font><br>
<b>经办人:</b>
<textarea cols=40 name="PRCS_USER_NAME" rows="4" class="BigStatic" wrap="yes" readonly><?=$PRCS_USER_NAME?></textarea>
<input type="hidden" name="PRCS_USER" value="<?=$PRCS_USER_AUTO?>">
<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_FLAG"><label for="TOP_FLAG">仅由首先接收办理的经办人办理,可以不指定主办人</label>
<?
}
?>
</td>
</tr>
<?
}//非选择结束流程
?>
<tr class="TableHeader">
<td colspan="2"><img src="/images/menu/sms.gif" align="absmiddle"> <b>短信提醒</b></td>
</tr>
<tr class="TableData">
<td colspan="2">
<input type="checkbox" name="SMS_REMIND" id="SMS_REMIND" <?if($SMS_REMIND=="1" or $SMS_REMIND=="") echo "checked";?>><label for="SMS_REMIND">使用内部短信提醒<?if($FLOW_STOP==1)echo "本流程所有";?>经办人</label>
<?
$query = "select * from SMS2_PRIV";
$cursor=exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
$TYPE_PRIV=$ROW["TYPE_PRIV"];
if(find_id($TYPE_PRIV,7)) //检查该模块是否允许手机提醒
{
?>
<input type="checkbox" name="SMS2_REMIND" id="SMS2_REMIND"><label for="SMS2_REMIND">使用手机短信提醒<?if($FLOW_STOP==1)echo "本流程所有";?>经办人</label>
<?
}
if($FLOW_STOP==1)
$SMS_CONTENT="工作流已结束:".$RUN_NAME;
else
$SMS_CONTENT="工作流提醒:".$RUN_NAME;
?>
<br>
短信内容:<input type="text" name="SMS_CONTENT" value="<?=$SMS_CONTENT?>" size="50" maxlength="100" class="SmallInput">
</td>
</tr>
<tr class="TableControl">
<td nowrap align="center" colspan="2">
<input type="hidden" name="RUN_ID" value="<?=$RUN_ID?>">
<input type="hidden" name="FLOW_ID" value="<?=$FLOW_ID?>">
<input type="hidden" name="OP" value="<?=$OP?>">
<input type="hidden" name="MENU_FLAG" value="<?=$MENU_FLAG?>">
<input type="hidden" name="PRCS_ID" value="<?=$PRCS_ID?>">
<input type="button" name="mybutton" value="<?if($FLOW_STOP==1)echo "结束流程";else echo"转交下一步骤";?>" class="BigButton" onClick="CheckForm();">
<input type="button" value="返回" class="BigButton" name="back" onClick="location='<?if($OP=="MANAGE")echo "../../manage";else echo"../index.php";if($MENU_FLAG=="1")echo "?FLOW_ID=$FLOW_ID";?>'">
</td>
</tr>
</table>
</form>
<script>
function LoadWindow()
{
URL="user_select?FLOW_ID=<?=$FLOW_ID?>&RUN_ID=<?=$RUN_ID?>&PRCS_ID=<?=$PRCS_ID?>&PRCS_ID_NEXT=<?=$PRCS_ID_NEXT?>";
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.value="";
document.form1.PRCS_OP_USER.value="";
document.form1.PRCS_OP_USER_NAME.value="";
}
function CheckForm()
{
<?
if($FLOW_STOP==1)
{
if($NOT_ALL_FINISH!="")
{
$NOT_ALL_FINISH=SUBSTR($NOT_ALL_FINISH,0,-1);
$MSG="经办人 [".$NOT_ALL_FINISH."] 尚未办理完毕,";
}
?>
msg="<?=$MSG?>确认要结束流程么?";
if(window.confirm(msg))
{
document.form1.mybutton.disabled=true;
document.form1.submit();
return (true);
}
<?
}
else
{
?>
if(document.form1.SMS_CONTENT.value=="" && (document.form1.SMS_REMIND.checked || document.form1.SMS2_REMIND.checked))
{
alert("短信内容不能为空!");
return(false);
}
else if(document.form1.PRCS_USER.value=="")
{
alert("请至少选择一个经办人!");
return(false);
}
else if(document.form1.PRCS_OP_USER.value=="" && !document.form1.TOP_FLAG.checked)
{
alert("请指定主办人!");
return(false);
}
else
{
<?
if($NOT_ALL_FINISH!="")
{
$NOT_ALL_FINISH=SUBSTR($NOT_ALL_FINISH,0,-1);
$MSG="经办人 [".$NOT_ALL_FINISH."] 尚未办理完毕,确认要转交下一步骤么?";
?>
msg="<?=$MSG?>";
if(!window.confirm(msg))
return (false);
<?
}
?>
document.form1.mybutton.disabled=true;
document.form1.submit();
return (true);
}
<?
}
?>
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -