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

📄 call_back.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility.php" );
include_once( "../prcs_role.php" );
ob_clean( );
$RUN_ROLE = run_role( $RUN_ID, $PRCS_ID );
if ( !find_id( $RUN_ROLE, 1 ) || !find_id( $RUN_ROLE, 2 ) )
{
	echo 1;
	exit( );
}
$PRCS_ID_NEXT = $PRCS_ID + 1;
$query = "SELECT * from FLOW_RUN_PRCS WHERE RUN_ID=".$RUN_ID." and PRCS_ID={$PRCS_ID_NEXT} and PRCS_FLAG in('2','3','4') and (PARENT='' OR FIND_IN_SET('{$FLOW_PRCS}',PARENT))";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	echo 2;
	exit( );
}
$query = "SELECT * from FLOW_RUN_PRCS WHERE RUN_ID=".$RUN_ID." and PRCS_ID>='{$PRCS_ID_NEXT}' and PRCS_FLAG=5";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$query = "update FLOW_RUN_PRCS set PRCS_FLAG='5' WHERE RUN_ID=".$RUN_ID." and PRCS_ID>='{$PRCS_ID_NEXT}'";
	exequery( $connection, $query );
}
else
{
	$query = "SELECT FLOW_PRCS,PARENT from FLOW_RUN_PRCS WHERE RUN_ID='".$RUN_ID."' and PRCS_ID>='{$PRCS_ID_NEXT}' and FIND_IN_SET('{$FLOW_PRCS}',PARENT)";
	$cursor = exequery( $connection, $query );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$PARENT = $ROW['PARENT'];
		$FLOW_PRCS_NEXT = $ROW['FLOW_PRCS'];
		$PARENT_ARRAY = explode( ",", $PARENT );
		$PARENT_ARRAY_LEN = sizeof( $PARENT_ARRAY );
		if ( $PARENT_ARRAY_LEN == 1 )
		{
			$query = "delete from FLOW_RUN_PRCS WHERE RUN_ID='".$RUN_ID."' and PRCS_ID>='{$PRCS_ID_NEXT}' and FIND_IN_SET('{$FLOW_PRCS}',PARENT)";
			exequery( $connection, $query );
		}
		else
		{
			if ( each( &$PARENT_ARRAY ) && $VALUE == $FLOW_PRCS )
			{
				array_splice( &$PARENT_ARRAY, $KEY, 1 );
			}
			$PARENT = "";
			while ( list( , $VALUE ) = each( &$PARENT_ARRAY ) )
			{
				$PARENT .= $VALUE.",";
			}
			$PARENT = substr( $PARENT, 0, -1 );
			$query = "update FLOW_RUN_PRCS set PARENT='".$PARENT."' WHERE RUN_ID='{$RUN_ID}' and PRCS_ID>='{$PRCS_ID_NEXT}' and FLOW_PRCS='{$FLOW_PRCS_NEXT}' AND FIND_IN_SET('{$FLOW_PRCS}',PARENT)";
			exequery( $connection, $query );
		}
	}
	else
	{
		$query = "delete from FLOW_RUN_PRCS WHERE RUN_ID='".$RUN_ID."' and PRCS_ID='{$PRCS_ID_NEXT}'";
		exequery( $connection, $query );
	}
}
$CONTENT = "收回工作";
run_log( $RUN_ID, $PRCS_ID, $FLOW_PRCS, $LOGIN_USER_ID, 1, $CONTENT );
$query = "update FLOW_RUN_PRCS set PRCS_FLAG='2' WHERE RUN_ID=".$RUN_ID." and PRCS_ID='{$PRCS_ID}' and FLOW_PRCS='{$FLOW_PRCS}' and USER_ID='{$LOGIN_USER_ID}' and OP_FLAG=1";
exequery( $connection, $query );
echo 0;
?>

⌨️ 快捷键说明

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