From 043818eafa15f7a4045e91c78a0f268ed2b5a262 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Fri, 24 May 2024 11:00:58 +0800 Subject: [PATCH] YS --- application/controllers/Admin/Remind.php | 25 +++ application/controllers/Admin/Strains.php | 22 ++ application/controllers/Api/Sysset.php | 3 +- application/views/admin/gene/index.phtml | 219 ++++++++++++++++++++ application/views/admin/index/index.phtml | 6 +- application/views/admin/remind/index.phtml | 219 ++++++++++++++++++++ application/views/admin/strains/index.phtml | 219 ++++++++++++++++++++ application/views/admin/user/index.phtml | 2 +- 8 files changed, 709 insertions(+), 6 deletions(-) create mode 100644 application/controllers/Admin/Remind.php create mode 100644 application/controllers/Admin/Strains.php create mode 100644 application/views/admin/gene/index.phtml create mode 100644 application/views/admin/remind/index.phtml create mode 100644 application/views/admin/strains/index.phtml diff --git a/application/controllers/Admin/Remind.php b/application/controllers/Admin/Remind.php new file mode 100644 index 0000000..38a0df8 --- /dev/null +++ b/application/controllers/Admin/Remind.php @@ -0,0 +1,25 @@ +table} where is_delete=0"; + $count = $RemindModel->query($sql); + $sql = "select * from {$RemindModel->table} where is_delete=0 order by id desc limit {$offset},{$limit} "; + $data = $RemindModel->query($sql); + foreach($data as $key => &$val){ + $val['sex'] = $val['sex']==1?'公':'母'; + } + $return['code'] = 0; + $return['count'] = count($count); + $return['data'] = $data; + $return['msg'] = "成功"; + echo json_encode($return);die; + } +} \ No newline at end of file diff --git a/application/controllers/Admin/Strains.php b/application/controllers/Admin/Strains.php new file mode 100644 index 0000000..de3c2ec --- /dev/null +++ b/application/controllers/Admin/Strains.php @@ -0,0 +1,22 @@ +table} where is_delete=0"; + $count = $StrainsModel->query($sql); + $sql = "select * from {$StrainsModel->table} where is_delete=0 order by id desc limit {$offset},{$limit} "; + $data = $StrainsModel->query($sql); + $return['code'] = 0; + $return['count'] = count($count); + $return['data'] = $data; + $return['msg'] = "成功"; + echo json_encode($return);die; + } +} \ No newline at end of file diff --git a/application/controllers/Api/Sysset.php b/application/controllers/Api/Sysset.php index d90c03c..812a3b0 100644 --- a/application/controllers/Api/Sysset.php +++ b/application/controllers/Api/Sysset.php @@ -99,8 +99,7 @@ class Api_SyssetController extends Ctrl_Api{ $excel = iconv('utf-8','gbk',$excel); $fileName = 'EXCEL导出鼠信息'.time(). '.csv'; file_put_contents($path.$fileName, $excel); - $data['url']=Yaf_Registry::get("config")->web->url->img."/public/upload/excel/".$fileName; - echo $data['url'];die; + $data=Yaf_Registry::get("config")->web->url->img."/public/upload/excel/".$fileName; Tool_Fnc::apiMsg('获取成功', '200',$data); } diff --git a/application/views/admin/gene/index.phtml b/application/views/admin/gene/index.phtml new file mode 100644 index 0000000..340a686 --- /dev/null +++ b/application/views/admin/gene/index.phtml @@ -0,0 +1,219 @@ + + +
+ +