diff --git a/control/index.php b/control/index.php index 9ad1463..0ac7eac 100644 --- a/control/index.php +++ b/control/index.php @@ -27,7 +27,7 @@ class index extends publicBase { public function home() { $id = $this->get('id'); - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $data = $mformula->getFormulaInfo($id); $this->view['data'] = $data; @@ -40,7 +40,7 @@ class index extends publicBase { $herbs = $this->post('herbs'); //新增药方 - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $id = $mformula->createCase($name, $source, $method, $herbs); if (!$id) $this->ajax_json(false, $mformula->getError()); @@ -55,7 +55,7 @@ class index extends publicBase { $method = trim($this->post('method')); $herbs = $this->post('herbs'); - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $res = $mformula->updateCase($id, $name, $source, $method, $herbs); if (!$res) $this->ajax_json(false, $mformula->getError()); @@ -71,7 +71,7 @@ class index extends publicBase { $page_num = $this->post('page_num') ? $this->post('page_num') : 1; $page_size = $this->post('page_size') ? $this->post('page_size') : 20; - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $list = $mformula->getFormulaList($uinfo['uid'], $page_num, $page_size, $content); $total = $mformula->getFormulaTotal($uinfo['uid'], $content); @@ -92,7 +92,7 @@ class index extends publicBase { $id = $this->post('id') + 0; if (!$id) $this->ajax_json(false, '参数错误'); - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $data = $mformula->getFormulaInfo($id); if (!$data) $this->ajax_json(false, $mformula->getError()); @@ -186,7 +186,7 @@ class index extends publicBase { $page_num = $this->post('page_num') ? $this->post('page_num') : 1; $page_size = $this->post('page_size') ? $this->post('page_size') : 100; - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $data = $mformula->getCollectLog($page_num, $page_size); $total = $mformula->getCollectLogTotal();