form_data.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 41 行

PHP
41
字号
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
';
if (!((is_numeric ($ITEM_ID) AND is_numeric ($ITEM_NUM))))
{
	message ('错误', '必须输入整数');
	button_back ();
	exit ();
}
$ITEM_ID_LAST = $ITEM_ID + $ITEM_NUM;
$ITEM_NUM *= $ITEM_OP;
$query = 'SELECT * from FLOW_RUN where FLOW_ID=' . $FLOW_ID;
$COUNT = 0;
$cursor = exequery ($connection, $query);
while ($ROW = mysql_fetch_array ($cursor))
{
	++$COUNT;
	$RUN_ID = $ROW['RUN_ID'];
	if ($ITEM_OP < 0)
	{
		$query = 'delete from FLOW_RUN_DATA where RUN_ID=' . $RUN_ID . ' and ITEM_ID>' . $ITEM_ID . ' and ITEM_ID<=' . $ITEM_ID_LAST;
		exequery ($connection, $query);
	}
	$query = 'update FLOW_RUN_DATA set ITEM_ID=ITEM_ID+' . $ITEM_NUM . '  where RUN_ID=' . $RUN_ID . ' ';
	if ($ITEM_ID != 0)
	{
		$query .= ' and ITEM_ID>' . $ITEM_ID;
	}
	exequery ($connection, $query);
}
message ('提示', '共匹配了 ' . $COUNT . ' 项工作的表单数据');
button_back ();
?>

⌨️ 快捷键说明

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