业务流 关联数据库 获取流程图
<?php class dealEvent{
private $host;
private $user; //mysql用户名
private $passWord; //mysql密码
private $database; //mysql数据库名
private $tables; //表名
function __construct()
{
$this->host="localhost";
$this->user="root";
$this->passWord="sanyue@";
$this->database="event";
$this->tables="event";
$conn=mysql_connect($this->host,$this->user,$this->passWord) or die("数据库打开出错");
mysql_select_db("event",$conn);
mysql_query('set names utf8');
}
//插入一个流程
function insertProcess($arr,$proID)//将所选人员插入数据库
{
for($m=0;$m<count for function while array_push>getArray($array,"userName");
return $array;
}
function getDealStatus($proID)
{
$sql = 'SELECT * FROM event where proID='.$proID." order by orderNum ASC";
$result=mysql_query($sql);
$array[] =mysql_fetch_assoc($result);
while($row=mysql_fetch_assoc($result))
{
array_push($array,$row);
}
$array=$this->getArray($array,"status");
return $array;
}
//整理流程数组
private function getArray($array,$fieldName)
{
for($i=0;$i<count sort for return function if>0)
{
return true;
}
else
{
return false;
}
}
}
?></count></count>
2. [图片] 业务流.jpg

以上就是业务流 关联数据库 获取流程图的内容,更多相关内容请关注PHP中文网(www.php.cn)!










