From b3aef86a16d055f180450279ac1b8b9da29c3ec6 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Sat, 12 Oct 2024 16:28:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=A1=E6=A0=B8=E4=B8=8D?= =?UTF-8?q?=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control/admin.php | 6 ++--- view/templates/admin/formula_add.html | 44 ++++++++++++++++++++++++++++++---- view/templates/admin/formula_list.html | 22 +++++++++++++---- 3 files changed, 60 insertions(+), 12 deletions(-) diff --git a/control/admin.php b/control/admin.php index 47983c5..ce38146 100644 --- a/control/admin.php +++ b/control/admin.php @@ -103,7 +103,7 @@ class admin extends publicBase { $condition['uid'] = 0; } if ($status == 0) { - $condition['is_delete'] = array(0, 2); + $condition['is_delete'] = array(0, 2, 3); } elseif ($status == 1) { $condition['is_delete'] = 2; } elseif ($status == 2) { @@ -153,7 +153,7 @@ class admin extends publicBase { $id = $mformula->saveFormula(0, $id, $name, $source, $method, $herbs); if (!$id) $this->ajax_json(false, $mformula->getError()); - $this->ajax_json(true, '请求成功', array('id' => $id)); + $this->ajax_json(true, '操作成功', array('id' => $id)); } public function ajax_delete_formula() { @@ -164,6 +164,6 @@ class admin extends publicBase { $id = $mformula->deleteFormula(0, $id, $is_delete); if (!$id) $this->ajax_json(false, $mformula->getError()); - $this->ajax_json(true, '请求成功'); + $this->ajax_json(true, '操作成功'); } } diff --git a/view/templates/admin/formula_add.html b/view/templates/admin/formula_add.html index 5502187..8a7e8c2 100644 --- a/view/templates/admin/formula_add.html +++ b/view/templates/admin/formula_add.html @@ -16,13 +16,16 @@
-
+
- 添加药方 -
 
-
+
@@ -111,6 +114,39 @@ {literal}