diff --git a/application/admin/view/auth_group/index.html b/application/admin/view/auth_group/index.html index 94af09e9..0d948d77 100644 --- a/application/admin/view/auth_group/index.html +++ b/application/admin/view/auth_group/index.html @@ -31,10 +31,10 @@ diff --git a/application/admin/view/auth_rule/index.html b/application/admin/view/auth_rule/index.html index d10c6449..a29e3cf3 100644 --- a/application/admin/view/auth_rule/index.html +++ b/application/admin/view/auth_rule/index.html @@ -31,10 +31,10 @@ diff --git a/application/admin/view/index/index.html b/application/admin/view/index/index.html index 773e75c4..e01f44ce 100644 --- a/application/admin/view/index/index.html +++ b/application/admin/view/index/index.html @@ -31,10 +31,10 @@ diff --git a/application/renshi/controller/Index.php b/application/renshi/controller/Index.php index bfd1855a..b72766db 100644 --- a/application/renshi/controller/Index.php +++ b/application/renshi/controller/Index.php @@ -45,7 +45,6 @@ class Index extends Base 'zhiwu'=>array(), 'danwei'=>array(), 'xueli'=>array(), - 'subject'=>array(), 'searchval'=>'' ],'POST'); @@ -80,13 +79,17 @@ class Index extends Base public function create() { // 设置页面标题 - $list['title'] = '添加教师'; + $list['set'] = array( + 'webtitle'=>'添加老师', + 'butname'=>'添加', + 'formpost'=>'POST', + 'url'=>'/teacher', + ); // 模板赋值 $this->assign('list',$list); - // 渲染 - return $this->fetch(); + return $this->fetch('create'); } diff --git a/application/renshi/model/Teacher.php b/application/renshi/model/Teacher.php index ce0588d4..77b3b3e3 100644 --- a/application/renshi/model/Teacher.php +++ b/application/renshi/model/Teacher.php @@ -16,7 +16,6 @@ class Teacher extends Base $zhiwu = $src['zhiwu']; $danwei = $src['danwei']; $xueli = $src['xueli']; - $subject = $src['subject']; $searchval = $src['searchval']; @@ -30,9 +29,6 @@ class Teacher extends Base ->when(count($xueli)>0,function($query) use($xueli){ $query->where('xueli','in',$xueli); }) - ->when(count($subject)>0,function($query) use($subject){ - $query->where('subject','in',$subject); - }) ->when(strlen($searchval)>0,function($query) use($searchval){ $query->where('xingming|quanpin|shoupin','like','%'.$searchval.'%'); }) diff --git a/application/renshi/view/index/create.html b/application/renshi/view/index/create.html index c309e56f..8d82c5c9 100644 --- a/application/renshi/view/index/create.html +++ b/application/renshi/view/index/create.html @@ -1,63 +1,75 @@ {extend name="common@create" /} {block name="form"} + +