public function doEditAction() { $id = reqnum('id', 0); $station = reqstr('station'); $acfile = reqstr('acfile'); $logfile = reqstr('logfile'); $logip = reqstr('logip'); $ifconf = reqstr('ifconf'); $data = array('stationname' => $station, 'acfile' => $acfile, 'logfile' => $logfile, 'logip' => $logip, 'ifconf' => $ifconf); $model = new Psys_StationModel(); $where = array('id' => $id); $re = $model->UpdateOne($data, $where, "rha_station"); $this->smarty->assign('ck', $re ? 1 : 0); $this->forward = "opration"; }
public function delgonetalarmAction() { $id = reqnum('id'); if (!$id) { return; } $m = new Psys_StationModel(); $data = $m->UpdateOne(array('is_delete' => 1), array('id' => $id), 'rha_gonet_trigger'); if ($data) { return array('code' => 1, 'msg' => ''); } return array('code' => 0, 'msg' => '删除失败'); }