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

📄 index1.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "../prcs_role.php" );
if ( $TYPE == 1 || $TYPE == 2 )
{
	$query = "SELECT count(*) from FLOW_RUN_PRCS AS a,  FLOW_RUN AS b WHERE a.RUN_ID=b.RUN_ID and b.DEL_FLAG='0' and CHILD_RUN=0 and a.USER_ID='".$LOGIN_USER_ID."' and a.PRCS_FLAG={$TYPE}";
}
else if ( $TYPE == "OVER" )
{
	$query = "SELECT count(distinct(a.RUN_ID)) from FLOW_RUN_PRCS AS a, FLOW_RUN AS b WHERE a.RUN_ID=b.RUN_ID and b.DEL_FLAG='0' and CHILD_RUN=0 and a.USER_ID='".$LOGIN_USER_ID."' and a.PRCS_FLAG IN (3,4)";
}
else
{
	$query = "SELECT count(*) from FLOW_RUN_PRCS AS a, FLOW_RUN AS b WHERE a.RUN_ID=b.RUN_ID and b.DEL_FLAG='0' and CHILD_RUN=0 and a.USER_ID='".$LOGIN_USER_ID."'";
	$TYPE = 0;
}
if ( $OP_FLAG != "" )
{
	$query .= " and OP_FLAG='".$OP_FLAG."'";
}
if ( $FLOW_ID != "" )
{
	$query .= " and b.FLOW_ID='".$FLOW_ID."'";
	$FLOW_ID_GLOBAL = $FLOW_ID;
}
else
{
	$FLOW_ID = 0;
}
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$FLOW_COUNT = $ROW[0];
}
$totalRecord = intval( $FLOW_COUNT );
$perPage = $_COOKIE['flow_list'] ? $_COOKIE['flow_list'] : 10;
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\r\n<style>\r\n.TableRed{background:#FFDCD9;}\r\n.tip {position:absolute;display:none;text-align:center;font-size:9pt;font-weight:bold;z-index:65535;background-color:#DE7293;color:white;padding:10px}\r\n#tooltip {position:absolute;border:1px solid #333;background:#f7f5d1;padding:2px 5px;color:#333;display:none;}\r\n</style>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/inc/js/jquery/page/css/page.css\"/>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/theme/";
echo $LOGIN_THEME;
echo "/dialog.css\">\r\n<script language=\"javascript\" src=\"/inc/js/jquery/jquery.js\"></script>\r\n<script language=\"javascript\" src=\"/inc/js/jquery/page/page.js\"></script>\r\n<script language=\"javascript\" src=\"/inc/js/jquery/utility.js\"></script>\r\n<script src=\"/inc/js/dialog.js\"></script>\r\n<script>\r\nwindow.setTimeout('this.location.reload();',600000);\r\nvar param = {\r\n\tTYPE:'";
echo $TYPE == "OVER" ? "3,4" : $TYPE;
echo "',\r\n  FLOW_ID:'";
echo $FLOW_ID;
echo "',\r\n  MENU_FLAG:'";
echo $MENU_FLAG;
echo "',\r\n  OP_FLAG:'";
echo $OP_FLAG;
echo "'\r\n};\r\njQuery(document).ready(\r\n  function(){\r\n  \tjQuery(\"#pagebar\").jpage({dataBody:\"dataBody\",totalRecord:";
echo $totalRecord;
echo ",perPage:";
echo $perPage;
echo ",ajaxUrl:\"getData.php\",ajaxParam:param,callback:function(){tooltip();},cookieName:\"flow_list\"});\r\n  }\r\n);\r\n\r\nfunction myquery()\r\n{\r\n\tvar RUN_ID=jQuery(\"#RUN_ID\").val();\r\n\tvar RUN_NAME=jQuery(\"#RUN_NAME\").val();\r\n\tif(RUN_ID==\"\" && RUN_NAME==\"\")\r\n\t{\r\n\t\t alert(\"请输入查询条件!\");\r\n\t\t return;\r\n\t}\r\n\tjQuery.get(\"getData.php?RUN_ID=\"+RUN_ID+\"&RUN_NAME=\"+RUN_NAME,param,function(data){\r\n\t\tif(data!=\"\")\r\n\t\t{\r\n\t\t\t jQuery(\"#pagebar\").show();\r\n\t\t\t jQuery(\"#flow_table\").show();\r\n\t\t\t jQuery(\"#nofind\").hide();\r\n\t\t   jQuery(\"#dataBody\").html(data);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t jQuery(\"#pagebar\").hide();\r\n\t\t\t jQuery(\"#flow_table\").hide();\r\n\t\t\t jQuery(\"#nofind\").show();\r\n\t\t}\r\n\t});\r\n  HideDialog('query');\r\n}\r\n\r\nfunction CheckSend()\r\n{\r\n  if(event.keyCode==13)\r\n  {\r\n    myquery();\r\n  }\r\n}\r\n\r\nfunction view_graph(FLOW_ID)\r\n{\r\n  myleft=(screen.availWidth-800)/2;\r\n  window.open(\"view_graph?FLOW_ID=\"+FLOW_ID,\"\",\"status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=800,height=500,left=\"+myleft+\",top=50\");\r\n}\r\n\r\nfunction form_view(RUN_ID,FLOW_ID)\r\n{\r\n  window.open(\"print?RUN_ID=\"+RUN_ID+\"&FLOW_ID=\"+FLOW_ID,\"\",\"status=0,toolbar=no,menubar=no,width=\"+(screen.availWidth-12)+\",height=\"+(screen.availHeight-38)+\",location=no,scrollbars=yes,resizable=yes,left=0,top=0\");\r\n}\r\n\r\nfunction flow_view(RUN_ID,FLOW_ID)\r\n{\r\n  myleft=(screen.availWidth-800)/2;\r\n  window.open(\"flow_view?RUN_ID=\"+RUN_ID+\"&FLOW_ID=\"+FLOW_ID,RUN_ID,\"status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=800,height=400,left=\"+myleft+\",top=100\");\r\n}\r\n\r\nfunction call_back(RUN_ID,PRCS_ID,FLOW_PRCS)\r\n{\r\n  msg=\"下一步骤尚未接收时可收回至本步骤重新办理,确认要收回么?\";\r\n  if(window.confirm(msg))\r\n  {\r\n    var url=\"call_back.php?FLOW_ID=";
echo $FLOW_ID;
echo "&MENU_FLAG=";
echo $MENU_FLAG;
echo "&RUN_ID=\"+RUN_ID+\"&PRCS_ID=\"+PRCS_ID+\"&FLOW_PRCS=\"+FLOW_PRCS;\r\n    jQuery.get(url,{},function(data){\r\n    \tif(data==1)\r\n    \t   showTip('<div class=\"tip\" id=\"loading\">您没有权限!</div>');\r\n    \telse if(data==2)\r\n    \t\t showTip('<div class=\"tip\" id=\"loading\">对方已接收,不能收回</div>');\r\n      else\r\n      {\r\n    \t  showTip('<div class=\"tip\" id=\"loading\">工作已回收</div>');\r\n    \t  jQuery(\"#\"+RUN_ID).remove();\r\n        if(jQuery(\"#flow_table tr\").length==1)\r\n           jQuery(\"#flow_table\").remove();\r\n       }\r\n    });\r\n  }\r\n}\r\n\r\nfunction select_flow(flow_id)\r\n{\r\n   parent.menu_main.location=\"index1.php?TYPE=";
echo $TYPE;
echo "&FLOW_ID=\"+flow_id+\"&MENU_FLAG=1\";\r\n}\r\n\r\nfunction others(FLOW_ID,RUN_ID,PRCS_ID,FLOW_PRCS,FLOW_TYPE)\r\n{\r\n\tvar page;\r\n\tif(FLOW_TYPE==1)\r\n\t   page=\"others\";\r\n\telse\r\n\t\t page=\"others_free\";\r\n  myleft=(screen.availWidth-700)/2;\r\n  mytop=(screen.availHeight-450)/2;\r\n  window.open(\"../list/others/\"+page+\".php?RUN_ID=\"+RUN_ID+\"&FLOW_ID=\"+FLOW_ID+\"&PRCS_ID=\"+PRCS_ID+\"&FLOW_PRCS=\"+FLOW_PRCS,\"others\",\"status=0,toolbar=no,menubar=no,width=700,height=450,location=no,scrollbars=yes,resizable=no,left=\"+myleft+\",top=\"+mytop);\r\n}\r\n\r\nfunction user_view(USER_ID)\r\n{\r\n\tmytop=(screen.availHeight-500)/2-30;\r\n  myleft=(screen.availWidth-780)/2;\r\n  window.open(\"/general/ipanel/user/user_info.php?WINDOW=1&USER_ID=\"+USER_ID,\"user_view\",\"status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=780,height=500,left=\"+myleft+\",top=\"+mytop+\"\\\"\");\r\n}\r\nfunction delete_run(RUN_ID)\r\n{\r\n  msg=\"确认要删除该工作流程么?\";\r\n  if(window.confirm(msg))\r\n  {\r\n    jQuery.get(\"delete.php\",{RUN_ID_STR:RUN_ID},function(data)\r\n      {\r\n      \tif(data==RUN_ID)\r\n      \t\t showTip('<div class=\"tip\" id=\"loading\">所选流程已全部删除</div>');\r\n        else\r\n           showTip('<div class=\"tip\" id=\"loading\">部分未删除</div>');\r\n        if(data!='')\r\n        {\r\n        \tvar tmp=data.split(\",\");\r\n          for(var i=0;i<tmp.length;i++)\r\n            jQuery(\"#\"+tmp[i]).remove();\r\n        }\r\n        if(jQuery(\"#flow_table tr\").length==1)\r\n           jQuery(\"#flow_table\").remove();\r\n      });\r\n   }\r\n}\r\nfunction stop_run(RUN_ID,PRCS_ID)\r\n{\r\n  var msg=\"确认要结束该工作流程么?\";\r\n  if(window.confirm(msg))\r\n  {\r\n  \t jQuery.get(\"stop.php\",{OP_FLAG:1,FLOW_ID:";
echo $FLOW_ID;
echo ",RUN_ID:RUN_ID,PRCS_ID:PRCS_ID,FLAG:1},function(data)\r\n      {\r\n      \tif(data==RUN_ID)\r\n      \t\t showTip('<div class=\"tip\" id=\"loading\">操作已成功</div>');\r\n        else\r\n           showTip('<div class=\"tip\" id=\"loading\">'+data+'</div>');\r\n        if(data==RUN_ID)\r\n            jQuery(\"#\"+data).remove();\r\n        if(jQuery(\"#flow_table tr\").length==1)\r\n           jQuery(\"#flow_table\").remove();\r\n      });\r\n  }\r\n}\r\n\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5px\">\r\n";
if ( 0 < $FLOW_COUNT )
{
	echo "<div id=\"pagebar\"></div>\r\n<div style=\"position:absolute;right:25px;top:8px;\"><a href=\"#\" onclick=\"ShowDialog('query');jQuery('#RUN_ID').focus()\"><img src=\"/images/quicksearch.gif\" align=\"absmiddle\" title=\"快速查询\">查询</a></div>\r\n<table id=\"flow_table\" border=\"0\" width=\"100%\" class=\"TableList\" style=\"clear:both\">\r\n  <tr class=\"TableHeader\">\r\n    <td nowrap align=\"center\"><b>流水号</b></td>\r\n    <td nowrap align=\"center\">\r\n    <select name=\"FLOW_ID_LIST\" class=\"SmallSelect\" style=\"width:150px\" onchange=\"select_flow(this.value)\">\r\n    \t<option value=\"\">所有流程类型</option>\r\n";
	$query1 = "SELECT FLOW_ID,FLOW_NAME from FLOW_TYPE,FLOW_SORT where FLOW_TYPE.FLOW_SORT=FLOW_SORT.SORT_ID order by SORT_NO,FLOW_NO";
	$cursor1 = exequery( $connection, $query1 );
	while ( $ROW = mysql_fetch_array( $cursor1 ) )
	{
		$FLOW_ID1 = $ROW['FLOW_ID'];
		$FLOW_NAME1 = $ROW['FLOW_NAME'];
		if ( !prcs_role( $FLOW_ID1, 0 ) )
		{
		}
		else
		{
			echo "      <option value=\"";
			echo $FLOW_ID1;
			echo "\" ";
			if ( $FLOW_ID1 == $FLOW_ID_GLOBAL )
			{
				echo "selected";
			}
			echo ">";
			echo $FLOW_NAME1;
			echo "</option>\r\n";
		}
	}
	echo "    </select>\r\n      </td>\r\n      <td nowrap align=\"center\"><b>工作名称/文号</b></td>\r\n      <td nowrap align=\"center\"><b>发起人</b></td>\r\n";
	if ( $TYPE == "OVER" )
	{
		echo "  <td nowrap align=\"center\">\r\n\t<select name=\"OP_FLAG\" class=\"SmallSelect\" onchange=\"javascript:location='index1.php?FLOW_ID=";
		if ( $FLOW_ID )
		{
			echo $FLOW_ID;
		}
		echo "&MENU_FLAG=";
		echo $MENU_FLAG;
		echo "&TYPE=OVER&OP_FLAG='+this.value\">\r\n\t\t<option value=\"\" ";
		if ( !isset( $OP_FLAG ) )
		{
			echo "selected";
		}
		echo ">步骤与流程图</option>\r\n\t\t<option value=\"1\" ";
		if ( isset( $OP_FLAG ) && $OP_FLAG == 1 )
		{
			echo "selected";
		}
		echo ">我主办的</option>\r\n\t\t<option value=\"0\" ";
		if ( isset( $OP_FLAG ) && $OP_FLAG == 0 )
		{
			echo "selected";
		}
		echo ">我经办的</option>\r\n\t</select>\r\n  </td>\r\n";
	}
	else
	{
		echo "  <td nowrap align=\"center\"><b>步骤与流程图</b>\r\n";
	}
	echo "      </td>\r\n";
	if ( $TYPE == "OVER" )
	{
		echo "      <td nowrap align=\"center\"><b>状态</b></td>\r\n";
	}
	echo "      <td nowrap align=\"center\"><b>流程操作</b></td>\r\n    </tr>\r\n    <tbody id=\"dataBody\">\r\n    </tbody>\r\n </table>\r\n";
}
else if ( $FLOW_ID_GLOBAL == "" )
{
	message( "提示", "暂无待办工作" );
}
else
{
	message( "提示", "所选流程暂无待办工作" );
	button_back( );
}
echo "<div id=\"nofind\" style=\"display:none;align:center\">\r\n";
echo message( "提示", "没有所搜到结果!" );
echo "</div>\r\n<br><div align=right>";
echo iask( "workflow_list" );
echo "</div><div id=\"overlay\"></div>\r\n<div id=\"query\" class=\"ModalDialog\" style=\"width:300px;\">\r\n  <div class=\"header\"><span id=\"title\" class=\"title\">快速查询</span><a class=\"operation\" href=\"javascript:HideDialog('query');\"><img src=\"/images/close.png\"/></a></div>\r\n  <div id=\"body\" class=\"body\">\r\n    流水号  <input type=\"text\" id=\"RUN_ID\" size=\"10\" class=\"SmallInput\" onkeypress=\"CheckSend()\"><br>\r\n    名称/文号<input type=\"text\" id=\"RUN_NAME\" size=\"20\" class=\"SmallInput\" onkeypress=\"CheckSend()\">\r\n  </div>\r\n  <div id=\"footer\" class=\"footer\">\r\n  \t<input class=\"BigButton\" onclick=\"myquery();\" type=\"button\" value=\"查询\"/>\r\n    <input class=\"BigButton\" onclick=\"HideDialog('query')\" type=\"button\" value=\"关闭\"/>\r\n  </div>\r\n</div>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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