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 @@ + + +
+ +