public function actionDelete() { if ($this->M_timeinfo->removeByIds($_POST['serial'])) { $this->M_chninfo->removeByConditions("dev_no='{$_POST['serial']}'"); $this->_G->show(2003, "time", "Index"); } else { $this->_G->show(2013, "time", "Index"); } }
public function actionDelete() { if ($this->M_devinfo->removeByIds($_POST['serial'])) { $this->M_chninfo->removeByConditions("dev_no='{$_POST['serial']}'"); $this->_G->customshow("删除成功", "socket", "Index", 3, 1); } else { $this->_G->customshow("删除失败", "socket", "Index", 3, 0); } }