您的位置:首页 > 编程语言 > PHP开发

example_PHP流程管理

2016-05-01 20:42 525 查看
login.html

<?php

$ids = $_GET['ids'];

include('../../Public/Connect.class.php');

$con = new Connect();

$s1 = "update userflow set ToWhere = ToWhere+1 where Ids = '{$ids}'";

$con->Query_string($s1,0);

//找到流程代号
$s2 = "select Code,ToWhere from userflow where Ids = '{$ids}'";

$arr = $con->Query_array($s2);

$code = $arr[0][0];

$where = $arr[0][1];

//根据流程代号查节点个数
$s3 = "select count(*) from flowpath where Code = '{$code}'";

$num = $con->Query_string($s3);

if($where>=$num)
{
$s4 = "update userflow set IsOK = true where Ids = '{$ids}'";

$con->Query_string($s4,0);

}

header("location:ChuLi.php");
?>


View Code
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: