📄 input_form.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/utility_html.php" );
include_once( "../prcs_role.php" );
if ( !run_role( $RUN_ID, $PRCS_ID ) )
{
exit( );
}
$sql = "SELECT PRCS_OPTYPE FROM flow_process WHERE FLOW_ID=".$FLOW_ID." AND PRCS_ID=".$FLOW_PRCS;
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
$PRCS_OPTYPE = $row['PRCS_OPTYPE'];
switch ( $PRCS_OPTYPE )
{
case 1 :
$sql = "SELECT COUNT(*) AS cnt FROM flow_run_prcs WHERE RUN_ID=".$_REQUEST['RUN_ID']." AND PRCS_ID=".$_REQUEST['PRCS_ID']." AND FLOW_PRCS=".$_REQUEST['FLOW_PRCS']." AND PRCS_TIME IS NOT NULL";
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
$haveOpTag = $row['cnt'];
if ( !( $haveOpTag == 0 ) )
{
break;
}
$sql = "UPDATE flow_run_prcs SET OP_FLAG=1 WHERE RUN_ID=".$_REQUEST['RUN_ID']." AND PRCS_ID=".$_REQUEST['PRCS_ID']." AND FLOW_PRCS=".$_REQUEST['FLOW_PRCS']." AND USER_ID='".$_SESSION['LOGIN_USER_ID']."'";
exequery( $connection, $sql );
break;
case 2 :
$sql = "SELECT COUNT(*) AS cnt FROM flow_run_prcs WHERE RUN_ID=".$_REQUEST['RUN_ID']." AND PRCS_ID=".$_REQUEST['PRCS_ID']." AND FLOW_PRCS=".$_REQUEST['FLOW_PRCS']." AND PRCS_TIME IS NULL";
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
$haveOpTag = $row['cnt'];
$sql = "SELECT COUNT(*) AS cnt FROM flow_run_prcs WHERE RUN_ID=".$_REQUEST['RUN_ID']." AND PRCS_ID=".$_REQUEST['PRCS_ID']." AND FLOW_PRCS=".$_REQUEST['FLOW_PRCS']." AND PRCS_TIME IS NULL AND USER_ID='".$_SESSION['LOGIN_USER_ID']."'";
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
$haveOpTagSelf = $row['cnt'];
if ( !( $haveOpTag == 1 && $haveOpTagSelf == 1 ) )
{
break;
}
$sql = "UPDATE flow_run_prcs SET OP_FLAG=1 WHERE RUN_ID=".$_REQUEST['RUN_ID']." AND PRCS_ID=".$_REQUEST['PRCS_ID']." AND FLOW_PRCS=".$_REQUEST['FLOW_PRCS']." AND USER_ID='".$_SESSION['LOGIN_USER_ID']."'";
exequery( $connection, $sql );
break;
case 3 :
break;
default :
}
$sql = "SELECT * FROM flow_others WHERE FLOW_ID=".$FLOW_ID;
$rs = exequery( $connection, $sql );
if ( $row = mysql_fetch_array( $rs ) )
{
$FLOW_SHOW_GRAPH = $row['FLOW_SHOW_GRAPH'];
$FLOW_SHOW_TEXT = $row['FLOW_SHOW_TEXT'];
$FLOW_SHOW_STEP = $row['FLOW_SHOW_STEP'];
$FLOW_SHOW_ATTACH = $row['FLOW_SHOW_ATTACH'];
$FLOW_SHOW_FEEDBACK = $row['FLOW_SHOW_FEEDBACK'];
$FLOW_AUTOSAVE = $row['FLOW_AUTOSAVE'];
$FLOW_AUTOSAVE_TIME = $row['FLOW_AUTOSAVE_TIME'];
}
else
{
$FLOW_SHOW_GRAPH = 0;
$FLOW_SHOW_TEXT = 1;
$FLOW_SHOW_STEP = 1;
$FLOW_SHOW_ATTACH = 1;
$FLOW_SHOW_FEEDBACK = 1;
$FLOW_AUTOSAVE = 0;
$FLOW_AUTOSAVE_TIME = 0;
}
$query = "SELECT FLOW_PRCS,OP_FLAG from FLOW_RUN_PRCS where RUN_ID={$RUN_ID} AND USER_ID='".$LOGIN_USER_ID."' ORDER BY PRCS_ID DESC";
$cursor = exequery( $connection, $query );
$ROW = mysql_fetch_array( $cursor );
$OP_FLAG = $ROW['OP_FLAG'];
$query = "SELECT MAX(PRCS_ID) from FLOW_PROCESS WHERE FLOW_ID={$FLOW_ID}";
$PRCS_MAX = 0;
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$PRCS_MAX = $ROW[0];
}
$haveTerm = 0;
$sql = "SELECT COUNT(*) AS cnt FROM flow_term WHERE LEFT(PRC_PRC,INSTR(PRC_PRC,'-'))=".$FLOW_PRCS." AND FLOW_ID=".$FLOW_ID;
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
if ( 0 < $row['cnt'] )
{
$haveTerm = 1;
}
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";
echo "<S";
echo "CRIPT language=javascript src=\"/inc/common.js\"></SCRIPT>\r\n";
echo "<S";
echo "CRIPT language=javascript src=\"/inc/follow.js\"></SCRIPT>\r\n";
echo "<S";
echo "CRIPT language=javascript src=\"/inc/prototype.js\"></SCRIPT>\r\n";
echo "<S";
echo "CRIPT language=javascript src=\"/inc/calendar/calendar.js\"></SCRIPT>\r\n";
echo "<s";
echo "tyle>\r\ninput.BigStatic1 { COLOR: #000066; BACKGROUND: #E0E0E0; border:1 solid black; BORDER-BOTTOM:1px double; FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal}\r\nselect.BigStatic1 { COLOR: #000066; BACKGROUND: #E0E0E0; border:1 solid black; BORDER-BOTTOM:1px double; FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal}\r\ntextarea.B";
echo "igStatic1 { COLOR: #000066; BACKGROUND: #E0E0E0; border:1 solid black; BORDER-BOTTOM:1px double; FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal}\r\n\r\n/*\r\ntable四周的线的组成\r\n*/\r\n.bodtdlfto{\r\n\tbackground-image:url(\"/images/workflow/table/tlefttop.gif\");\r\n\twidth:5px;\r\n\theight:20px;\r\n}\r\n.bodtdlf{\r\n\tbackground-image:url(\"/images/workflow/table/tleft.gif\");\r\n\twidth:";
echo "5px;\r\n}\r\n.bodtdlfbo{\r\n\tbackground-image:url(\"/images/workflow/table/tleftbottom.gif\");\r\n\twidth:5px;\r\n\theight:5px;\r\n}\r\n.bodtdto{\r\n\tbackground-image:url(\"/images/workflow/table/ttop.gif\");\r\n\theight:20px;\r\n}\r\n.bodtdbo{\r\n\tbackground-image:url(\"/images/workflow/table/tbottom.gif\");\r\n\theight:5px;\r\n}\r\n.bodtdrtto{\r\n\tbackground-image:url(\"/images/workflow/table/trighttop.gif\");\r\n\theight:20px;\r\n}\r\n.bodtdrt{";
echo "\r\n\tbackground-image:url(\"/images/workflow/table/tright.gif\");\r\n\twidth:5px;\r\n}\r\n.bodtdrtbo{\r\n\tbackground-image:url(\"/images/workflow/table/trightbottom.gif\");\r\n\theight:5px;\r\n}\r\n.weight{\r\n\tfont-weight:bold;\r\n}\r\n.pubtableride{\r\n\twidth:96%;\r\n\tborder-spacing:0px;\r\n\tempty-cells: hide;\r\n}\r\n.dbbutton{\r\n\tcursor:hand;\r\n\tcolor:#0000FF;\r\n\ttext-decoration:underline;\r\n}\r\n\r\n</style>\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction selectDate(fieldname)\r\n{\r\n\r\n myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n\r\n window.showModalDialog(\"/inc/calendar.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:220px;dialogTop:\"+mytop+\"px;dialogLeft:\"+mylef";
echo "t+\"px\");\r\n}\r\n\r\nfunction copy_form()\r\n{\r\n parent.form_view.document.execCommand('selectall');\r\n parent.form_view.document.execCommand('copy');\r\n alert(\"表单全文已复制到剪贴板!\");\r\n}\r\n\r\nfunction td_calendar(myvalue)\r\n{\r\n var fieldname=\"\";\r\n for (i=0; i<document.all.length; i++)\r\n {\r\n if(document.all(i).title==myvalue && !document.all(i).readOnly)\r\n {\r\n fieldname=document.a";
echo "ll(i).name;\r\n break;\r\n }\r\n }\r\n\r\n if(fieldname!=\"\")\r\n {\r\n popUpCalendar(document.form1,document.all(i),'yyyy-mm-dd');\r\n //myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n // mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n // window.showModalDialog(\"/inc/calendar.php?FIELDNAME=document.form1.\"+fieldname,self,\"edge:raised;scroll:0;status:";
echo "0;help:0;resizable:1;dialogWidth:280px;dialogHeight:220px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n }\r\n}\r\n\r\nfunction SubmitForm()\r\n{\r\n IsTrue = CheckForm();\r\n if(IsTrue == true){\r\n document.form1.submit();\r\n }\r\n else {\r\n //do nothing\r\n }\r\n \r\n}\r\n\r\n\r\nfunction SaveFormValue(){\r\n document.form1.f.value = \"opsaveform\";\r\n document.form1.submit();\r\n}\r\n\r\nfunction Se";
echo "lectFormValue(n,m){\r\n document.form1.PRCS_TO_CHOOSE.value = n;\r\n document.form1.f.value = \"selectsaveform\";\r\n\t if(m !=1 ){\r\n\t\t document.getElementById('PRCS_USER').value = \"\";\r\n\t\t document.getElementById('PRCS_OP_USER').value = \"\";\r\n\t }\r\n\t loadingStep('tflowstepcon','/general/workflow/input_form/flow_step.php','FLOW_ID=";
echo $_REQUEST['FLOW_ID'];
echo "&RUN_ID=";
echo $_REQUEST['RUN_ID'];
echo "&PRCS_ID=";
echo $_REQUEST['PRCS_ID'];
echo "&FLOW_PRCS=";
echo $FLOW_PRCS;
echo "&OP_FLAG=";
echo $OP_FLAG;
echo "&PRCS_TO_CHOOSE='+n);\r\n}\r\n\r\n\r\nfunction loadingImg(divid,url,par){\r\n\tvar formName = \"form1\";\r\n\tvar objDivID = document.getElementById(divid);\r\n\t//alert(objDivID);\r\n\t\r\n\tvar objOtext = document.getElementById('otext');\r\n\tobjOtext.innerHTML = \"图形加载中...\";\r\n\r\n\tvar saveGimg = {\r\n\t\tonCreate: function(){\r\n\t\t\tElement.show('divsave');\r\n\t\t},\r\n\t\tonComplete: function() {\r\n\t\t\tif(Ajax.activeRequestCount == 0";
echo "){\r\n\t\t\t\tElement.hide('divsave');\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tAjax.Responders.register(saveGimg);\t\r\n\t\r\n\tqueryString = par;\r\n\tnew Ajax.Request\r\n\t(\r\n\t\turl,\r\n\t\t{\r\n\t\t\tmethod: \"post\",\t\r\n\t\t\tonSuccess : function(resp)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tobjDivID.innerHTML = resp.responseText;\r\n\t\t\t\t\t\t\t//alert(objDivID.src);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tonFailure : function()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert(url);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tparameters : q";
echo "ueryString\r\n\t\t}\r\n\t);\r\n\r\n}\r\n\r\nfunction loadingStep(divid,url,par){\r\n\tvar formName = \"form1\";\r\n\tvar objDivID = document.getElementById(divid);\r\n\t\r\n\tvar objOtext = document.getElementById('otext');\r\n\tobjOtext.innerHTML = \"步骤加载中...\";\r\n\r\n\tvar saveGimg = {\r\n\t\tonCreate: function(){\r\n\t\t\tElement.show('divsave');\r\n\t\t},\r\n\t\tonComplete: function() {\r\n\t\t\tif(Ajax.activeRequestCount == 0){\r\n\t\t\t\tElement.hide(";
echo "'divsave');\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tAjax.Responders.register(saveGimg);\t\r\n\t\r\n\tqueryString = par;\r\n\tnew Ajax.Request\r\n\t(\r\n\t\turl,\r\n\t\t{\r\n\t\t\tmethod: \"post\",\t\r\n\t\t\tonSuccess : function(resp)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tobjDivID.innerHTML = resp.responseText;\r\n\t\t\t\t\t\t\t//alert(resp.responseText);\r\n\t\t\t\t\t\t\tgetTagStep();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tonFailure : function()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert(url);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tparamete";
echo "rs : queryString\r\n\t\t}\r\n\t);\r\n\r\n}\r\n\r\nfunction loadingAttach(divid,url,par){\r\n\tvar formName = \"form1\";\r\n\tvar objDivID = document.getElementById(divid);\r\n\t\r\n\tvar objOtext = document.getElementById('otext');\r\n\tobjOtext.innerHTML = \"附件加载中...\";\r\n\r\n\tvar saveGimg = {\r\n\t\tonCreate: function(){\r\n\t\t\tElement.show('divsave');\r\n\t\t},\r\n\t\tonComplete: function() {\r\n\t\t\tif(Ajax.activeRequestCount == 0){\r\n\t\t\t\tEleme";
echo "nt.hide('divsave');\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tAjax.Responders.register(saveGimg);\t\r\n\t\r\n\tqueryString = par;\r\n\tnew Ajax.Request\r\n\t(\r\n\t\turl,\r\n\t\t{\r\n\t\t\tmethod: \"post\",\t\r\n\t\t\tonSuccess : function(resp)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tobjDivID.innerHTML = resp.responseText;\r\n\t\t\t\t\t\t\t//alert(objDivID.innerHTML);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tonFailure : function()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert(url);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tparameters : queryStr";
echo "ing\r\n\t\t}\r\n\t);\r\n\r\n}\r\n\r\nfunction loadingFeedback(divid,url,par){\r\n\tvar formName = \"form1\";\r\n\tvar objDivID = document.getElementById(divid);\r\n\t\r\n\tvar objOtext = document.getElementById('otext');\r\n\tobjOtext.innerHTML = \"反馈加载中...\";\r\n\r\n\tvar saveGimg = {\r\n\t\tonCreate: function(){\r\n\t\t\tElement.show('divsave');\r\n\t\t},\r\n\t\tonComplete: function() {\r\n\t\t\tif(Ajax.activeRequestCount == 0){\r\n\t\t\t\tElement.hide('di";
echo "vsave');\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tAjax.Responders.register(saveGimg);\t\r\n\t\r\n\tqueryString = par;\r\n\tnew Ajax.Request\r\n\t(\r\n\t\turl,\r\n\t\t{\r\n\t\t\tmethod: \"post\",\t\r\n\t\t\tonSuccess : function(resp)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tobjDivID.innerHTML = resp.responseText;\r\n\t\t\t\t\t\t\t//alert(objDivID.innerHTML);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tonFailure : function()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert(url);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tparameters : queryString\r\n\t\t}\r\n\t";
echo ");\r\n\r\n}\r\n\r\n\r\n\r\n\r\nfunction saveAttach(divid,url,par,ldivid,lurl,lpar){\r\n\tvar formName = \"form1\";\r\n\tvar objDivID = document.getElementById(divid);\r\n\t\r\n\tif (document.form1.ATTACHMENT.value!=\"\"){\r\n\t\t var file_temp=document.form1.ATTACHMENT.value,file_name;\r\n\t\t var Pos;\r\n\t\t Pos=file_temp.lastIndexOf(\"\\\\\");\r\n\t\t file_name=file_temp.substring(Pos+1,file_temp.length);\r\n\t\t document.form1.ATTACHMENT_NAME.val";
echo "ue=file_name;\r\n\t}\r\n\telse{\r\n\t\t alert(\"请先选择一个附件!\");\r\n\t\t return false;\r\n\t}\r\n\r\n\tvar ATTACHMENT = document.form1.ATTACHMENT.value;\r\n\tvar ATTACHMENT_NAME = document.form1.ATTACHMENT_NAME.value;\r\n\tvar ATTACHMENT_ID_OLD = document.form1.ATTACHMENT_ID_OLD.value;\r\n\tvar ATTACHMENT_NAME_OLD = document.form1.ATTACHMENT_NAME_OLD.value;\r\n\tpar += \"&ATTACHMENT=\" + ATTACHMENT + \"&ATTACHMENT_NAME=\" + ATTACH";
echo "MENT_NAME + \"&ATTACHMENT_ID_OLD=\" + ATTACHMENT_ID_OLD + \"&ATTACHMENT_NAME_OLD=\" + ATTACHMENT_NAME_OLD;\r\n\r\n\r\n\tvar objOtext = document.getElementById('otext');\r\n\tobjOtext.innerHTML = \"附件上传中...\";\r\n\r\n\tvar saveGimg = {\r\n\t\tonCreate: function(){\r\n\t\t\tElement.show('divsave');\r\n\t\t},\r\n\t\tonComplete: function() {\r\n\t\t\tif(Ajax.activeRequestCount == 0){\r\n\t\t\t\tElement.hide('divsave');\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tAjax.Re";
echo "sponders.register(saveGimg);\t\r\n\t\r\n\tqueryString = par;\r\n\tnew Ajax.Request\r\n\t(\r\n\t\turl,\r\n\t\t{\r\n\t\t\tmethod: \"post\",\t\r\n\t\t\tonSuccess : function(resp)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//alert(par);\r\n\t\t\t\t\t\t\t//alert(resp.responseText);\r\n\t\t\t\t\t\t\tloadingAttach(ldivid,lurl,lpar)\r\n\t\t\t\t\t\t\t//alert(objDivID.innerHTML);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tonFailure : function()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert(url);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tparameters : que";
echo "ryString\r\n\t\t}\r\n\t);\r\n\r\n}\r\n\r\nfunction deleteAttach(divid,url,par,ldivid,lurl,lpar){\r\n\tvar formName = \"form1\";\r\n\tvar objDivID = document.getElementById(divid);\r\n\t\r\n\tif (!window.confirm(\"确定删除此附件吗!?\")){\r\n\t\treturn false;\r\n\t}\r\n\tvar objOtext = document.getElementById('otext');\r\n\tobjOtext.innerHTML = \"附件删除中...\";\r\n\r\n\tvar saveGimg = {\r\n\t\tonCreate: function(){\r\n\t\t\tElement.show('divsave');\r\n\t\t},";
echo "\r\n\t\tonComplete: function() {\r\n\t\t\tif(Ajax.activeRequestCount == 0){\r\n\t\t\t\tElement.hide('divsave');\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tAjax.Responders.register(saveGimg);\t\r\n\t\r\n\tqueryString = par;\r\n\tnew Ajax.Request\r\n\t(\r\n\t\turl,\r\n\t\t{\r\n\t\t\tmethod: \"post\",\t\r\n\t\t\tonSuccess : function(resp)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//alert(par);\r\n\t\t\t\t\t\t\t//alert(resp.responseText);\r\n\t\t\t\t\t\t\tloadingAttach(ldivid,lurl,lpar)\r\n\t\t\t\t\t\t\t//alert(objDivID.inne";
echo "rHTML);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tonFailure : function()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert(url);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tparameters : queryString\r\n\t\t}\r\n\t);\r\n\r\n}\r\n\r\nfunction deleteAttachFeed(divid,url,par,ldivid,lurl,lpar){\r\n\tvar formName = \"form1\";\r\n\tvar objDivID = document.getElementById(divid);\r\n\t\r\n\tif (!window.confirm(\"确定删除此附件吗!?\")){\r\n\t\treturn false;\r\n\t}\r\n\r\n\tvar objOtext = document.getElementById('o";
echo "text');\r\n\tobjOtext.innerHTML = \"附件删除中...\";\r\n\r\n\tvar saveGimg = {\r\n\t\tonCreate: function(){\r\n\t\t\tElement.show('divsave');\r\n\t\t},\r\n\t\tonComplete: function() {\r\n\t\t\tif(Ajax.activeRequestCount == 0){\r\n\t\t\t\tElement.hide('divsave');\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tAjax.Responders.register(saveGimg);\t\r\n\t\r\n\tqueryString = par;\r\n\tnew Ajax.Request\r\n\t(\r\n\t\turl,\r\n\t\t{\r\n\t\t\tmethod: \"post\",\t\r\n\t\t\tonSuccess : function(resp)\r\n\t\t\t\t\t\t{";
echo "\r\n\t\t\t\t\t\t\t//alert(par);\r\n\t\t\t\t\t\t\t//alert(resp.responseText);\r\n\t\t\t\t\t\t\tloadingFeedback(ldivid,lurl,lpar)\r\n\t\t\t\t\t\t\t//alert(objDivID.innerHTML);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tonFailure : function()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert(url);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tparameters : queryString\r\n\t\t}\r\n\t);\r\n\r\n}\r\n\r\n</script>\r\n";
echo "<s";
echo "cript language=\"javascript\">\r\n\r\nfunction selecOpU(){\r\n\tvar deuidvalue = form1.PRCS_USER.value\r\n\tif(deuidvalue == \"\"){\r\n\t\tdocument.getElementById('buttonSelectOpUser').disabled = true\r\n\t}\r\n\r\n}\r\n\r\nfunction showflowimg(){\r\n\tif(\$('tflowpic').style.display == 'none'){\r\n\t\tloadingImg('tflowpiccon','/general/workflow/input_form/flow_img.php','FLOW_ID=";
echo $_REQUEST['FLOW_ID'];
echo "&RUN_ID=";
echo $_REQUEST['RUN_ID'];
echo "&PRCS_ID=";
echo $_REQUEST['PRCS_ID'];
echo "');\t\r\n\t}\r\n\r\n\t\r\n\tshowHiddenInfo('tflowpic','imgarrow');\r\n\tresetDisabledFlowform();\r\n\r\n}\r\n\r\n</script>\r\n";
echo "<s";
echo "cript>\r\nfunction getAllPar(){\r\n\tvar maxnum = document.form1.ITEM_ID_MAX.value;\r\n\tvar strall=\"\";\r\n\tfor (var i=1;i<=maxnum;i++){\r\n\t\tvar tmpiptid = \"DATA_\"+i;\r\n\t\tvar valuepar = document.getElementById(tmpiptid).value;\r\n\t\tstrall += tmpiptid + \"=\" + valuepar + \"&\";\r\n\t}\r\n\tvar RUN_ID = document.getElementById('RUN_ID').value;\r\n\tvar FLOW_ID = document.getElementById('FLOW_ID').value;\r\n\tvar PRCS_ID = docume";
echo "nt.getElementById('PRCS_ID').value;\r\n\tvar FLOW_PRCS = document.getElementById('FLOW_PRCS').value;\r\n\tvar ITEM_ID_MAX = document.getElementById('ITEM_ID_MAX').value;\r\n\tvar RUN_NAME = document.getElementById('RUN_NAME').value;\r\n\tstrall += 'RUN_ID='+RUN_ID+\"&\";\r\n\tstrall += 'FLOW_ID='+FLOW_ID+\"&\";\r\n\tstrall += 'PRCS_ID='+PRCS_ID+\"&\";\r\n\tstrall += 'FLOW_PRCS='+FLOW_PRCS+\"&\";\r\n\tstrall += 'ITEM_ID_MAX='+ITE";
echo "M_ID_MAX+\"&\";\r\n\tstrall += 'RUN_NAME='+RUN_NAME+\"&\";\r\n\tstrall += 'f=autosave';\r\n\treturn strall;\r\n}\r\n\r\n\r\nfunction autoSaveForm(type){\r\n\tvar RUN_NAME = document.getElementById('RUN_NAME').value;\r\n\tif (trim(RUN_NAME) == ''){\r\n\t\talert(\"请填写流程说明!\");\r\n\t\tdocument.getElementById('RUN_NAME').focus();\r\n\t\treturn false;\r\n\t}\r\n\r\n\tvar formName = \"form1\";\r\n\tvar subObj = document.getElementById('savebutton')";
echo ";\r\n\tvar simgObj = document.getElementById('saveimg');\r\n\r\n\tsimgObj.style.filter = \"gray()\";\r\n\tsubObj.disabled = true;\r\n\r\n\tvar objOtext = document.getElementById('otext');\r\n\tif(type == 1){\r\n\t\tobjOtext.innerHTML = \"自动保存数据...\";\r\n\t}\r\n\telse{\r\n\t\tobjOtext.innerHTML = \"数据保存中...\";\r\n\t}\r\n\r\n\tvar saveGimg = {\r\n\t\tonCreate: function(){\r\n\t\t\tElement.show('divsave');\r\n\t\t},\r\n\t\tonComplete: function() {\r\n\t\t\t";
echo "if(Ajax.activeRequestCount == 0){\r\n\t\t\t\tElement.hide('divsave');\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tAjax.Responders.register(saveGimg);\r\n\t\r\n\turl=\"do.php\";\r\n\tqueryString = getAllPar();\r\n\tnew Ajax.Request\r\n\t(\r\n\t\turl,\r\n\t\t{\r\n\t\t\tmethod: \"post\",\t\r\n\t\t\tonSuccess : function(resp)\r\n\t\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\t\tshowNText();\r\n\t\t\t\t\t\t\tsimgObj.style.filter = \"\";\r\n\t\t\t\t\t\t\tsubObj.disabled = \"\";\r\n\t\t\t\t\t\t\t//alert(resp.responseText);\r\n\t\t\t\t\t\t\t";
if ( $haveTerm == 1 )
{
echo "\t\t\t\t\t\t\tif(type != 1){\r\n\t\t\t\t\t\t\tdisabledFlowform('divformab');\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tloadingStep('tflowstepcon','/general/workflow/input_form/flow_step.php','FLOW_ID=";
echo $_REQUEST['FLOW_ID'];
echo "&RUN_ID=";
echo $_REQUEST['RUN_ID'];
echo "&PRCS_ID=";
echo $_REQUEST['PRCS_ID'];
echo "&FLOW_PRCS=";
echo $FLOW_PRCS;
echo "&OP_FLAG=";
echo $OP_FLAG;
echo "');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t";
}
echo "\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tonFailure : function()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert(url);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\tparameters : queryString\r\n\t\t}\r\n\t);\r\n\r\n}\r\n\r\nif(";
echo $FLOW_AUTOSAVE;
echo "){\r\n\tsetInterval('autoSaveForm(1)',1000*60*";
echo $FLOW_AUTOSAVE_TIME;
echo ");\r\n\tvar objOtext = document.getElementById('otext');\r\n\tobjOtext.innerHTML = \"自动保存数据...\";\r\n\r\n}\r\n</script>\r\n\r\n";
$CUR_TIME1 = date( "H:i:s", time( ) );
$CUR_DATE = date( "Y-m-d" );
$CUR_TIME = $CUR_DATE." ".$CUR_TIME1;
$query = "SELECT * from USER where USER_ID='{$LOGIN_USER_ID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$USER_NAME = $ROW['USER_NAME'];
}
$query = "SELECT * from FLOW_RUN_PRCS where USER_ID='{$LOGIN_USER_ID}' AND RUN_ID={$RUN_ID} AND PRCS_ID={$PRCS_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$PRCS_FLAG = $ROW['PRCS_FLAG'];
if ( $PRCS_FLAG == 1 )
{
$query = "update FLOW_RUN_PRCS set PRCS_FLAG='2',PRCS_TIME='{$CUR_TIME}' WHERE USER_ID='{$LOGIN_USER_ID}' AND RUN_ID={$RUN_ID} AND PRCS_ID={$PRCS_ID}";
exequery( $connection, $query );
}
}
$PRCS_ID1 = $PRCS_ID - 1;
$query = "update FLOW_RUN_PRCS set PRCS_FLAG='4' WHERE RUN_ID={$RUN_ID} AND PRCS_ID={$PRCS_ID1}";
exequery( $connection, $query );
$query = "SELECT * from FLOW_TYPE WHERE FLOW_ID={$FLOW_ID}";
$cursor1 = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$FLOW_NAME = $ROW['FLOW_NAME'];
$FORM_ID = $ROW['FORM_ID'];
$FLOW_TYPE = $ROW['FLOW_TYPE'];
$FLOW_DOC = $ROW['FLOW_DOC'];
}
if ( $FLOW_TYPE == "1" )
{
$query = "SELECT * from FLOW_PROCESS WHERE FLOW_ID={$FLOW_ID} AND PRCS_ID={$FLOW_PRCS}";
$cursor1 = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$PRCS_ITEM = $ROW['PRCS_ITEM'];
$PRCS_ITEM_CAPACITY = $ROW['PRCS_ITEM_CAPACITY'];
$PRCS_ITEM_AUTO = $ROW['PRCS_ITEM_AUTO'];
}
}
$query = "SELECT * from FLOW_FORM_TYPE WHERE FORM_ID={$FORM_ID}";
$cursor1 = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$FORM_NAME = $ROW['FORM_NAME'];
$PRINT_MODEL = $ROW['PRINT_MODEL'];
}
$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'];
$ATTACHMENT_ID = $ROW['ATTACHMENT_ID'];
$ATTACHMENT_NAME = $ROW['ATTACHMENT_NAME'];
}
$query = "SELECT * from FLOW_RUN_DATA WHERE RUN_ID={$RUN_ID} ORDER BY ITEM_ID";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -