From 127a8875ee219e2ea68d870ecef3b33cbe92a31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Mon, 26 Nov 2018 16:48:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=E6=9B=B4=E5=A4=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/chengji/controller/Index.php | 25 +++ .../chengji/view/index/chengjilist.html | 147 ++++++++++++++++++ application/kaoshi/controller/MoreAction.php | 3 + .../view/{index => more_action}/caiji.html | 0 .../kaoshi/view/more_action/index.html | 63 +++++++- .../view/{index => more_action}/kaohao.html | 0 route/chengji.php | 5 +- 7 files changed, 238 insertions(+), 5 deletions(-) create mode 100644 application/chengji/view/index/chengjilist.html rename application/kaoshi/view/{index => more_action}/caiji.html (100%) rename application/kaoshi/view/{index => more_action}/kaohao.html (100%) 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 @@