From a6eabcca9ae9da221ea1621cbf74391498760551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=BE=E6=A0=91?= Date: Wed, 3 Mar 2021 22:57:28 +0800 Subject: [PATCH] 0 --- app/kaoshi/controller/Index.php | 29 +++- app/kaoshi/route/kaoshi.php | 1 + app/kaoshi/view/index/create_setp1.html | 5 +- app/kaoshi/view/index/create_setp2.html | 5 +- app/kaoshi/view/index/create_setp3.html | 16 +- app/kaoshi/view/index/create_setp4.html | 208 ++++++++++++++++++++++++ app/kaoshi/view/luru_fengong/edit.html | 76 --------- 7 files changed, 248 insertions(+), 92 deletions(-) create mode 100644 app/kaoshi/view/index/create_setp4.html delete mode 100644 app/kaoshi/view/luru_fengong/edit.html diff --git a/app/kaoshi/controller/Index.php b/app/kaoshi/controller/Index.php index 03975f11..3e853654 100755 --- a/app/kaoshi/controller/Index.php +++ b/app/kaoshi/controller/Index.php @@ -210,7 +210,7 @@ class Index extends AdminBase } - // 生成考号 + // 生成考号 public function createSetp3($kaoshi_id) { // 获取参考年级 @@ -234,6 +234,33 @@ class Index extends AdminBase } + // 生成考号 + public function createSetp4($kaoshi_id) + { + // 设置页面标题 + $list['set'] = array( + 'webtitle' => '录入成绩分工' + ,'butname' => '分工' + ,'formpost' => 'POST' + ,'url' => '/kaoshi/lrfg/save' + ,'kaoshi_id' => $kaoshi_id + ); + + // 获取考试时间 + $ks = new \app\kaoshi\model\Kaoshi; + $enddate = $ks->kaoshiInfo($kaoshi_id); + $enddate = $enddate->getData('enddate'); + $list['set']['nianji'] = nianJiNameList('str', $enddate); + + // 模板赋值 + $this->view->assign('list', $list); + // 渲染 + return $this->view->fetch(); + + + } + + // 保存信息 public function save() { diff --git a/app/kaoshi/route/kaoshi.php b/app/kaoshi/route/kaoshi.php index ae115ae8..22ee4677 100755 --- a/app/kaoshi/route/kaoshi.php +++ b/app/kaoshi/route/kaoshi.php @@ -26,6 +26,7 @@ Route::group('index', function () { Route::rule('setp1','Index/createSetp1','get'); # 添加信息 Route::rule('setp2/','Index/createSetp2','get'); # 添加信息 Route::rule('setp3/','Index/createSetp3','get'); # 添加信息 + Route::rule('setp4/','Index/createSetp4','get'); # 添加信息 Route::rule('tongji/','Index/tongji','get'); # 添加信息 Route::rule('chengji/','Index/chengji','get'); # 添加信息 Route::rule('editsetp1/','Index/editSetp1','get'); # 更新信息 diff --git a/app/kaoshi/view/index/create_setp1.html b/app/kaoshi/view/index/create_setp1.html index bb917342..e55c8818 100644 --- a/app/kaoshi/view/index/create_setp1.html +++ b/app/kaoshi/view/index/create_setp1.html @@ -27,8 +27,9 @@
开始
考试信息
-
各年级参加考试学科和分数线
-
生成参加考试学生名单
+
各年级参加考试学科和分数线
+
生成参加考试学生名单
+
分配录入成绩任务
完成
diff --git a/app/kaoshi/view/index/create_setp2.html b/app/kaoshi/view/index/create_setp2.html index a0cfa3f4..8354579b 100644 --- a/app/kaoshi/view/index/create_setp2.html +++ b/app/kaoshi/view/index/create_setp2.html @@ -27,8 +27,9 @@
开始
考试信息
-
以年级为单位设置参加考试学科和分数线
-
生成参加考试学生名单
+
以年级为单位设置参加考试学科和分数线
+
生成参加考试学生名单
+
分配录入成绩任务
完成
diff --git a/app/kaoshi/view/index/create_setp3.html b/app/kaoshi/view/index/create_setp3.html index 067a6637..9561495c 100644 --- a/app/kaoshi/view/index/create_setp3.html +++ b/app/kaoshi/view/index/create_setp3.html @@ -29,8 +29,9 @@
开始
考试信息
-
各年级参加考试学科和分数线
-
生成参加考试学生名单
+
各年级参加考试学科和分数线
+
生成参加考试学生名单
+
分配录入成绩任务
完成
@@ -62,7 +63,7 @@ - 完成 + 下一步
{/block} @@ -132,14 +133,7 @@ function nextSet() { - //先得到当前iframe层的索引 - var index = parent.layer.getFrameIndex(window.name); - //再执行关闭 - if(parent.layui.table){ - parent.layui.table.reload('mytable'); - } - parent.layer.close(index); - parent.layer.msg('考试创建完成'); + $(location).attr('href', '/kaoshi/index/setp4/' + "{$list['set']['kaoshi_id']}"); return false; } diff --git a/app/kaoshi/view/index/create_setp4.html b/app/kaoshi/view/index/create_setp4.html new file mode 100644 index 00000000..d6c3f629 --- /dev/null +++ b/app/kaoshi/view/index/create_setp4.html @@ -0,0 +1,208 @@ +{extend name=".././view/create.html" /} + +{block name="jscss"} + +{/block} + +{block name="form"} +
+
开始
+
考试信息
+
各年级参加考试学科和分数线
+
生成参加考试学生名单
+
分配录入成绩任务
+
完成
+
+
+ +
+ +
+
+ +
+ {present name="$list.data.kt_zcr"} + {volist name="$list.data.kt_zcr" id="vo"} +
+
+ {$vo.admin.xingming} +
+
+ {/volist} + {/present} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+{/block} + +{block name="myjs"} + +{/block} + diff --git a/app/kaoshi/view/luru_fengong/edit.html b/app/kaoshi/view/luru_fengong/edit.html deleted file mode 100644 index 126fee1a..00000000 --- a/app/kaoshi/view/luru_fengong/edit.html +++ /dev/null @@ -1,76 +0,0 @@ -{extend name=".././view/create.html" /} - -{block name="form"} -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- - -
- -
-
-{/block} - -{block name="myjs"} - -{/block} -