db = $db; $this->project_status = array( 0 => "计划未提交", 1 => "计划未审核", 2 => "跟踪专家审核", 3 => "跟踪专家通过", 4 => "数据委员会通过" ); } //获取汇交状态 public function getStatus($code){ $status = $this->project_status; if(isset($status[$code])) { return $status[$code]; } } //改变状态 public function ChangeStatus($p,$s){ $sql = "UPDATE ".$this->tbl_heiheproject." SET status=? WHERE id=?"; $sth = $this->db->prepare($sql); $rs = $sth->execute(array($s,$p)); return $rs; } }