diff --git a/application/chengji/controller/Index.php b/application/chengji/controller/Index.php index 606113e0..35efd2bd 100644 --- a/application/chengji/controller/Index.php +++ b/application/chengji/controller/Index.php @@ -157,6 +157,31 @@ class Index extends Base } + // 成绩列表 + public function Chengjilist($id) + { + // 设置数据总数 + $list['count'] = Chengji::where('kaoshi',$id)->count(); + // 设置页面标题 + $list['title'] = '成绩列表'; + $list['kaoshi'] = $id; + + // 模板赋值 + $this->assign('list', $list); + + // 渲染模板 + return $this->fetch(); + } + + + // 获取考试信息 + public function ajaxData() + { + $list = request()->post(); + dump($list); + } + + diff --git a/application/chengji/view/index/chengjilist.html b/application/chengji/view/index/chengjilist.html new file mode 100644 index 00000000..65526635 --- /dev/null +++ b/application/chengji/view/index/chengjilist.html @@ -0,0 +1,147 @@ +{extend name="common@list" /} +{block name="topnav"} + +{/block} +{block name="bouttons"} +
+ + + + + 批量删除 + + + + 共有数据:{$list.count} 条 + +
+ +
+ + {php} + $njlist = nianjiList(); + {/php} + + +
+{/block} +{block name="tables"} + + + + + + + + + + + + + + + + + + +
学校年级学生语文数学英语平均总分状态操作
+ + +{/block} +{block name="myjs"} + +{/block} \ No newline at end of file diff --git a/application/kaoshi/controller/MoreAction.php b/application/kaoshi/controller/MoreAction.php index 0a1c556e..ccddbf4c 100644 --- a/application/kaoshi/controller/MoreAction.php +++ b/application/kaoshi/controller/MoreAction.php @@ -25,6 +25,9 @@ class MoreAction extends Base // 设置模板赋值数据 $list['kaoshiid']= $id; $list['title']='考试操作'; + + $list['kstitle'] = KS::where('id',$id)->value('title'); + // 模板赋值 $this->assign('list',$list); diff --git a/application/kaoshi/view/index/caiji.html b/application/kaoshi/view/more_action/caiji.html similarity index 100% rename from application/kaoshi/view/index/caiji.html rename to application/kaoshi/view/more_action/caiji.html diff --git a/application/kaoshi/view/more_action/index.html b/application/kaoshi/view/more_action/index.html index 45c0569e..e527ffdb 100644 --- a/application/kaoshi/view/more_action/index.html +++ b/application/kaoshi/view/more_action/index.html @@ -3,7 +3,7 @@