📄 control.php
字号:
<?
include_once 'inc/auth.php';
if (!$EDIT_MODE)
{
$query = '' . 'SELECT * from FLOW_RUN_PRCS WHERE RUN_ID=' . $RUN_ID . ' AND PRCS_ID=' . $PRCS_ID . ' AND USER_ID=\'' . $LOGIN_USER_ID . '\'';
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$OP_FLAG = $ROW['OP_FLAG'];
}
$query = '' . 'SELECT * from FLOW_TYPE WHERE FLOW_ID=' . $FLOW_ID;
$cursor1 = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor1))
{
$FLOW_TYPE = $ROW['FLOW_TYPE'];
}
}
echo '
<html>
<head>
<title>工作办理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript>
function flow_view(RUN_ID,FLOW_ID)
{
myleft=(screen.availWidth-600)/2;
window.open("../flow_view.php?RUN_ID=';
echo $RUN_ID;
echo '&FLOW_ID=';
echo $FLOW_ID;
echo '","flow_view","status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=600,height=400,left="+myleft+",top=100");
}
function stop_run(RUN_ID,PRCS_ID)
{
msg="本流程为自由流程,可以随时结束,确认要结束该工作流程么?";
if(window.confirm(msg))
{
url="../stop.php?FLOW_ID=';
if ($MENU_FLAG == '1')
{
echo $FLOW_ID;
}
echo '&RUN_ID="+RUN_ID+"&PRCS_ID="+PRCS_ID;
parent.location=url;
}
}
function finish_run(RUN_ID,PRCS_ID)
{
msg="确认该工作已经办理完毕么?";
if(window.confirm(msg))
{
url="../stop.php?FLOW_ID=';
if ($MENU_FLAG == '1')
{
echo $FLOW_ID;
}
echo '&RUN_ID="+RUN_ID+"&PRCS_ID="+PRCS_ID;
parent.location=url;
}
}
</script>
</head>
<body class="bodycolor" topmargin="7">
<center>
';
if ($EDIT_MODE)
{
$query = '' . 'SELECT * from FLOW_RUN WHERE RUN_ID=' . $RUN_ID;
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$RUN_NAME = $ROW['RUN_NAME'];
}
echo ' <form action="edit_run_name.php" method="post" target="form_view">
';
echo '<s';
echo 'pan class=big1><b>名称/文号:</b></span>
<input type="text" name="RUN_NAME" class=BigInput" value="';
echo $RUN_NAME;
echo '" size=40>
<input type="hidden" name="RUN_ID" value="';
echo $RUN_ID;
echo '">
<input type="submit" value="修改文号" class="BigButton" name="submit">
<input type="button" value="保存表单" class="BigButton" onclick="parent.form_view.CheckForm(1);" title="保存表单">
<input type="button" value="关闭" class="BigButton" onclick="parent.close();" title="关闭">
</form>
';
exit ();
}
if ($OP_FLAG)
{
echo ' <input type="button" value="保存转交" class="BigButton" onclick="parent.form_view.CheckForm(3);" title="保存表单并转交下一步">
<input type="button" value="保存返回" class="BigButton" onclick="parent.form_view.CheckForm(2);" title="保存表单并返回">
<input type="button" value="保存" class="BigButton" onclick="parent.form_view.CheckForm(1);" title="保存表单"> &nbs';
echo 'p;
';
}
else
{
echo ' <input type="button" value="办理完毕" class="BigButton" onclick="finish_run(';
echo $RUN_ID;
echo ',';
echo $PRCS_ID;
echo ');" title="办理完毕">
';
}
if ($FLOW_TYPE == '2')
{
echo ' <input type="button" value="结束流程" class="BigButton" onclick="stop_run(';
echo $RUN_ID;
echo ',';
echo $PRCS_ID;
echo ');" title="结束流程">
';
}
echo ' <input type="button" value="会签" class="BigButton" onclick="parent.form_view.go_sign();" title="填写会签意见">
<input type="button" value="流程图" class="BigButton" onclick="flow_view();" title="直接打印表单页面">
<input type="button" value="返回" class="BigButton" onClick="parent.location=\'../';
if ($MENU_FLAG == '1')
{
echo '' . '?FLOW_ID=' . $FLOW_ID;
}
echo '\';" title="返回">
</center>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -