public function auditAction() { $page = $this->_getParam('page', 1); $data = Application_Model_M_Hospital::fetchByStatus(0, $page, 30); $this->view->res = $data; $this->render('detail'); }
public function hospitaladdAction() { $page = $this->_getParam('page', 1); $did = $this->_getParam('id'); $hname = $this->_getParam('hname', NULL); $this->view->did = $did; if ($hname) { $hospitals = Application_Model_M_Hospital::fetchByNamePage($hname, $page, 30); } else { $hospitals = Application_Model_M_Hospital::fetchByStatus('all', $page, 30); } $this->view->hospitals = $hospitals; }