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 @@ + + + + + 待办信息 + + + + + + + + + +
+ +
+
+
+
+ + + + + + + + + + \ No newline at end of file diff --git a/application/views/admin/index/index.phtml b/application/views/admin/index/index.phtml index 561914a..b9ac1b2 100644 --- a/application/views/admin/index/index.phtml +++ b/application/views/admin/index/index.phtml @@ -50,14 +50,14 @@
用户信息
用户设置
-
待办信息
+
待办信息
  • 系统管理
    -
    基因管理
    -
    品系管理
    +
    基因管理
    +
    品系管理
    毛色管理
    修改密码
    diff --git a/application/views/admin/remind/index.phtml b/application/views/admin/remind/index.phtml new file mode 100644 index 0000000..340a686 --- /dev/null +++ b/application/views/admin/remind/index.phtml @@ -0,0 +1,219 @@ + + + + + 待办信息 + + + + + + + + + +
    + +
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/application/views/admin/strains/index.phtml b/application/views/admin/strains/index.phtml new file mode 100644 index 0000000..340a686 --- /dev/null +++ b/application/views/admin/strains/index.phtml @@ -0,0 +1,219 @@ + + + + + 待办信息 + + + + + + + + + +
    + +
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/application/views/admin/user/index.phtml b/application/views/admin/user/index.phtml index fed19a9..11cb109 100644 --- a/application/views/admin/user/index.phtml +++ b/application/views/admin/user/index.phtml @@ -21,7 +21,7 @@