control.php

来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 153 行

PHP
153
字号
<?
  include_once 'inc/auth.php';
  if (!$EDIT_MODE)
  {
    $query = (((((((''.'SELECT OP_FLAG,FLOW_PRCS 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'];
      $FLOW_PRCS = $ROW['FLOW_PRCS'];
    }
    $query = (((''.'SELECT FLOW_TYPE from FLOW_TYPE WHERE FLOW_ID=\'').$FLOW_ID).'\'');
    $cursor1 = exequery ($connection, $query);
    if ($ROW = mysql_fetch_array ($cursor1))
    {
      $FLOW_TYPE = $ROW['FLOW_TYPE'];
    }
    if (($FLOW_TYPE == 1))
    {
      $query = (((((''.'SELECT PRCS_NAME,FEEDBACK from FLOW_PROCESS WHERE FLOW_ID=').$FLOW_ID).' AND PRCS_ID=\'').$FLOW_PRCS).'\'');
      $cursor1 = exequery ($connection, $query);
      if ($ROW = mysql_fetch_array ($cursor1))
      {
        $PRCS_NAME = $ROW['PRCS_NAME'];
        $FEEDBACK = $ROW['FEEDBACK'];
      }
    }
    else
    {
      $PRCS_NAME = (('第'.$PRCS_ID).'步');
    }
  }
  echo '
<html>
<head>
<title>工作办理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript>
function view_flow()
{
  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=200");
}
function view_form()
{
  myleft=(screen.availWidth-800)/2;
  window.open("../print?RUN_ID=';
  echo $RUN_ID;
  echo '&FLOW_ID=';
  echo $FLOW_ID;
  echo '","FLOW_PRINT","status=0,toolbar=no,menubar=no,width=800,height=600,location=no,scrollbars=yes,resizable=yes,left="+myleft+",top=100");
}
</script>
</head>
<body class="bodycolor" leftmargin="0" topmargin="0">
<center>
';
  if ($EDIT_MODE)
  {
    $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 '  	<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">&nbsp;&nbsp;
  	<input type="button" value="保存表单" class="BigButton" onclick="parent.form_view.CheckForm(1);" title="保存表单">&nbsp;&nbsp;
  	<input type="button" value="关闭" class="BigButton" onclick="parent.close();" title="关闭">
  	</form>
';
    exit ();
  }
  echo '
<table class=small width=100% height=100% border=0 cellpadding="4" cellspacing="0" >
<tr valign=top>
<td class=timebar valign=center align=center width=100 nowrap>
	<b>';
  echo $PRCS_NAME;
  echo '</b>
</td>
<td align=left  nowrap class=small1>
	&nbsp;<b>
	<u style="cursor:hand" onclick="view_flow();" title="查看流程图"><img border=0 src="/images/arrow_down.gif">流程图</u>&nbsp;&nbsp;
	<u style="cursor:hand" onclick="view_form();" title="查看打印表单"><img border=0 src="/images/form/listview.gif" width=21 align=absmiddle>表单</u>&nbsp;&nbsp;
';
  if (($FEEDBACK != 1))
  {
    echo '	<u style="cursor:hand" onclick="parent.form_view.go_sign();" title="填写会签意见"><img border=0 src="/images/edit.gif" align=absmiddle>签署意见</u>
';
  }
  echo '</td>
<td align=right nowrap>
';
  if ($OP_FLAG)
  {
    echo '   <input type="button" value="转交下一步" class="BigButton" onclick="parent.form_view.CheckForm(3);" title="保存表单并转交下一步">&nbsp;
';
  }
  else
  {
    echo '   <input type="button" value="办理完毕" class="BigButton" onclick="parent.form_view.finish_run(';
    echo $RUN_ID;
    echo ',';
    echo $PRCS_ID;
    echo ');" title="办理完毕">&nbsp;
';
  }
  if ((($FLOW_TYPE == '2') AND $OP_FLAG))
  {
    echo '   <input type="button" value="结束流程" class="BigButton" onclick="parent.form_view.stop_run(';
    echo $RUN_ID;
    echo ',';
    echo $PRCS_ID;
    echo ');" title="结束流程">&nbsp;
';
  }
  if ($OP_FLAG)
  {
    echo '   <input type="button" value="保存" class="SmallButton" onclick="parent.form_view.CheckForm(1);" title="保存表单">&nbsp;
   <input type="button" value="保存返回" class="SmallButton" onclick="parent.form_view.CheckForm(2);" title="保存表单并返回待办工作列表">&nbsp;
';
  }
  echo '   <input type="button" value="返回" class="SmallButton" onClick="parent.location=\'../';
  if (($MENU_FLAG == '1'))
  {
    echo ((''.'?FLOW_ID=').$FLOW_ID);
  }
  echo '\';" title="返回待办工作列表">&nbsp;
  </b>
</td>
</tr>
</table>
</center>
</body>
</html>';
?>

⌨️ 快捷键说明

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