diff --git a/application/kaoshi/view/index/create.html b/application/kaoshi/view/index/create.html
index bab9a306..c309e56f 100644
--- a/application/kaoshi/view/index/create.html
+++ b/application/kaoshi/view/index/create.html
@@ -1,149 +1,111 @@
{extend name="common@create" /}
-{block name="formaa"}
-
-
-
-
-
- 批量删除
-
-
-
-
- 添加考试
-
-
-
- 共有数据:{$list.count} 条
-
+{block name="nav"}
+
+ 考试管理
+ 考试列表
+
+{/block}
+{block name="search"}
+
{/block}
-{block name="tables"}
-
-
-
+{block name="table"}
+
{/block}
{block name="myjs"}
-
+
+
+
+
{/block}
\ No newline at end of file
diff --git a/application/renshi/controller/Student.php b/application/renshi/controller/Student.php
index 5d409894..8528d1b1 100644
--- a/application/renshi/controller/Student.php
+++ b/application/renshi/controller/Student.php
@@ -39,11 +39,24 @@ class Student extends Base
'field'=>'update_time',
'order'=>'asc',
'school'=>array(),
- 'nianji'=>array(),
- 'banji'=>array(),
+ 'ruxuenian'=>array(),
+ 'paixu'=>array(),
'searchval'=>''
],'POST');
+ $ruxuenian = $src['ruxuenian'];
+ $paixu = $src['paixu'];
+
+ // 实例化班级数据模型
+ $banji = new \app\teach\model\Banji;
+ $src['banji'] = $banji->where('status',1)
+ ->when(count($ruxuenian)>0,function($query) use($ruxuenian){
+ $query->where('ruxuenian','in',$ruxuenian);
+ })
+ ->when(count($paixu)>0,function($query) use($paixu){
+ $query->where('paixu','in',$paixu);
+ })
+ ->column('id');
// 实例化
$stu = new STU;
diff --git a/application/renshi/model/Student.php b/application/renshi/model/Student.php
index 740df35e..52518c33 100644
--- a/application/renshi/model/Student.php
+++ b/application/renshi/model/Student.php
@@ -62,12 +62,13 @@ class Student extends Base
->when(count($school)>0,function($query) use($school){
$query->where('school','in',$school);
})
- ->when(count($banji)>0,function($query) use($banji){
- $query->where('banji','in',$banji);
- })
+ // ->when(count($banji)>0,function($query) use($banji){
+ // $query->where('banji','in',$banji);
+ // })
->when(strlen($searchval)>0,function($query) use($searchval){
$query->where('xingming','like','%'.$searchval.'%')->field('id');
})
+ ->where('banji','in',$banji)
->with([
'stuSchool'=>function($query){
$query->field('id,title');
diff --git a/application/renshi/view/index/index.html b/application/renshi/view/index/index.html
index d805687c..55a6f44a 100644
--- a/application/renshi/view/index/index.html
+++ b/application/renshi/view/index/index.html
@@ -21,16 +21,16 @@
autocomplete="off" class="layui-input">
-