⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flow_others.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
$FLOW_ID = $_REQUEST['FLOW_ID'];
$sql = "SELECT COUNT(*) AS cnt FROM flow_others WHERE FLOW_ID=".$FLOW_ID;
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
if ( $row['cnt'] == 0 )
{
	$sql = "INSERT INTO flow_others VALUES (".$FLOW_ID.",0,1,1,1,1,0,0)";
	exequery( $connection, $sql );
}
$sql = "SELECT * FROM flow_others WHERE FLOW_ID=".$FLOW_ID."";
$rs = exequery( $connection, $sql );
$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'];
echo "<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 src=\"/inc/prototype.js\"></script>\r\n";
echo "<s";
echo "cript src=\"/inc/common.js\"></script>\r\n";
echo "<s";
echo "cript src=\"/inc/follow.js\"></script>\r\n";
echo "<s";
echo "cript>\r\n\r\nfunction submitForm(){\r\n\r\n\r\n}\r\n\r\nfunction saveSetOthers(){\r\n\r\n\tvar formName = \"form1\";\r\n\tvar subObj = document.getElementById('savebutton');\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\tobjOtext.innerHTML = \"数据保存中...\";\r\n\r\n\tvar saveGimg = {\r\n\t\tonCreate: functio";
echo "n(){\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);\r\n\r\n\tvar FLOW_SHOW_GRAPH\t\t= document.getElementById('FLOW_SHOW_GRAPH').checked?1:0;\r\n\tvar FLOW_SHOW_TEXT\t\t= document.getElementById('FLOW_SHOW_TEXT').checked?1:0;\r\n\tvar FLOW_SHOW_STEP\t\t= document.getElementById(";
echo "'FLOW_SHOW_STEP').checked?1:0;\r\n\tvar FLOW_SHOW_ATTACH\t= document.getElementById('FLOW_SHOW_ATTACH').checked?1:0;\r\n\tvar FLOW_SHOW_FEEDBACK\t= document.getElementById('FLOW_SHOW_FEEDBACK').checked?1:0;\r\n\tvar FLOW_AUTOSAVE\t\t= document.getElementById('FLOW_AUTOSAVE').checked?1:0;\r\n\tvar FLOW_AUTOSAVE_TIME\t= document.getElementById('FLOW_AUTOSAVE_TIME').value;\r\n\tvar FLOW_ID\t\t\t\t= document.getElementById('";
echo "FLOW_ID').value;\r\n\t\r\n\turl=\"flow_others_do.php\";\r\n\tqueryString = \"FLOW_SHOW_GRAPH=\" + FLOW_SHOW_GRAPH + \"&FLOW_SHOW_TEXT=\"+FLOW_SHOW_TEXT+\"&FLOW_SHOW_STEP=\"+FLOW_SHOW_STEP+\"&FLOW_SHOW_ATTACH=\"+FLOW_SHOW_ATTACH+\"&FLOW_SHOW_FEEDBACK=\"+FLOW_SHOW_FEEDBACK+\"&FLOW_AUTOSAVE=\"+FLOW_AUTOSAVE+\"&FLOW_AUTOSAVE_TIME=\"+FLOW_AUTOSAVE_TIME+\"&FLOW_ID=\"+FLOW_ID+\"&f=save\";\r\n\tnew Ajax.Request\r\n\t(\r\n\t\turl,\r\n\t\t{\r\n\t\t\tmeth";
echo "od: \"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\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\r\n";
echo "<s";
echo "tyle>\r\nbody{\r\n\tmargin-left: 0px;\r\n\tmargin-top: 0px;\r\n\tmargin-right: 0px;\r\n\tmargin-bottom: 0px;\r\n\tpadding-left:10px\r\n}\r\n</style>\r\n</head>\r\n<body onload=\"setVariables(); checkLocation('divsave',120,20,1);\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" >\r\n  <tr class=\"tablehead2\">\r\n    <td >\r\n\t<BUTTON id=\"savebutton\" class=btn onclick=\"saveSetOthers();\"><table><tr valign=middle ><td><img src=";
echo "\"/images/workflow/save.gif\" align=\"center\" id=\"saveimg\"></td> <td> &nbsp;保 &nbsp;&nbsp;存</td></tr></table></BUTTON></BUTTON> \r\n    </td>\r\n  </tr>\r\n</table>\r\n<hr width=\"95%\" height=\"1\" align=\"left\" color=\"#ffffff\">\r\n<table border=\"0\" cellspacing=\"1\" cellpadding=\"5\" width=\"100%\">\r\n<form action=\"report_do.php\" name=\"form1\" method=\"post\">\r\n\t<tr>\r\n\t\t<td nowrap width=\"15%\" class=\"tableline2\">默认显示流程图</td>\r\n\t\t<td";
echo " class=\"tableline1\"><INPUT TYPE=\"checkbox\" NAME=\"FLOW_SHOW_GRAPH\" value=\"1\" ";
if ( $FLOW_SHOW_GRAPH == 1 )
{
	echo "checked";
}
echo "></td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"tableline2\">默认显示流程正文</td>\r\n\t\t<td class=\"tableline1\"><INPUT TYPE=\"checkbox\" NAME=\"FLOW_SHOW_TEXT\" value=\"1\" ";
if ( $FLOW_SHOW_TEXT == 1 )
{
	echo "checked";
}
echo "></td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"tableline2\">默认显示步骤选择</td>\r\n\t\t<td class=\"tableline1\"><INPUT TYPE=\"checkbox\" NAME=\"FLOW_SHOW_STEP\" value=\"1\" ";
if ( $FLOW_SHOW_STEP == 1 )
{
	echo "checked";
}
echo "></td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"tableline2\">默认显示公共附件</td>\r\n\t\t<td class=\"tableline1\"><INPUT TYPE=\"checkbox\" NAME=\"FLOW_SHOW_ATTACH\" value=\"1\" ";
if ( $FLOW_SHOW_ATTACH == 1 )
{
	echo "checked";
}
echo "></td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"tableline2\">默认显示签办反馈</td>\r\n\t\t<td class=\"tableline1\"><INPUT TYPE=\"checkbox\" NAME=\"FLOW_SHOW_FEEDBACK\" value=\"1\" ";
if ( $FLOW_SHOW_FEEDBACK == 1 )
{
	echo "checked";
}
echo "></td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"tableline2\">开启自动保存</td>\r\n\t\t<td class=\"tableline1\"><INPUT TYPE=\"checkbox\" NAME=\"FLOW_AUTOSAVE\" value=\"1\" ";
if ( $FLOW_AUTOSAVE == 1 )
{
	echo "checked";
}
echo " onclick=\"isShowAu();\"></td>\r\n\t</tr>\r\n\t<tr id=\"autosavediv\">\r\n\t\t<td class=\"tableline2\">自动保存时间间隔</td>\r\n\t\t<td class=\"tableline1\">\r\n\t\t\t\t\t\t";
echo "<s";
echo "elect name=\"FLOW_AUTOSAVE_TIME\">\r\n\t\t\t\t\t\t\t<option value=\"1\" ";
if ( $FLOW_AUTOSAVE_TIME == 1 )
{
	echo "selected";
}
echo ">1分钟</option>\r\n\t\t\t\t\t\t\t<option value=\"5\" ";
if ( $FLOW_AUTOSAVE_TIME == 5 )
{
	echo "selected";
}
echo ">5分钟</option>\r\n\t\t\t\t\t\t\t<option value=\"10\" ";
if ( $FLOW_AUTOSAVE_TIME == 10 )
{
	echo "selected";
}
echo ">10分钟</option>\r\n\t\t\t\t\t\t\t<option value=\"20\" ";
if ( $FLOW_AUTOSAVE_TIME == 20 )
{
	echo "selected";
}
echo ">20分钟</option>\r\n\t\t\t\t\t\t\t<option value=\"30\" ";
if ( $FLOW_AUTOSAVE_TIME == 30 )
{
	echo "selected";
}
echo ">30分钟</option>\r\n\t\t\t\t\t\t\t<option value=\"60\" ";
if ( $FLOW_AUTOSAVE_TIME == 60 )
{
	echo "selected";
}
echo ">1小时</option>\r\n\t\t\t\t\t\t\t<option value=\"120\" ";
if ( $FLOW_AUTOSAVE_TIME == 120 )
{
	echo "selected";
}
echo ">2小时</option>\r\n\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t</td>\r\n\t</tr>\r\n\t<input type=\"hidden\" name=\"FLOW_ID\" value=\"";
echo $_REQUEST['FLOW_ID'];
echo "\">\r\n</form>\r\n</table>\r\n\r\n\r\n</body>\r\n</html>\r\n";
echo "<s";
echo "cript>\r\nfunction isShowAu(){\r\n\tvar objAut = document.getElementById('FLOW_AUTOSAVE');\r\n\tvar objAutHt = document.getElementById('autosavediv');\r\n\tif (objAut.checked == true){\r\n\t\tobjAutHt.style.display = \"\";\r\n\t}\r\n\telse{\r\n\t\tobjAutHt.style.display = \"none\";\r\n\t}\r\n}\r\nisShowAu();\r\n</script>";
?>

⌨️ 快捷键说明

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