From a79e7bf237f364b03df705c53cbeb3d51a07bacb Mon Sep 17 00:00:00 2001 From: cxdbz Date: Mon, 10 Dec 2018 21:13:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81=E4=B8=AD=E5=AD=97?= =?UTF-8?q?=E6=AF=8D=E8=BD=AC=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/chengji/controller/Index.php | 6 +++++- application/chengji/view/index/chengjilist.html | 2 +- application/chengji/view/tongji/nianji.html | 10 +++++----- application/kaoshi/view/more_action/index.html | 8 ++++++++ application/renshi/controller/Student.php | 2 +- route/chengji.php | 1 + 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/application/chengji/controller/Index.php b/application/chengji/controller/Index.php index 371f9b04..2f771fbf 100644 --- a/application/chengji/controller/Index.php +++ b/application/chengji/controller/Index.php @@ -364,9 +364,13 @@ class Index extends Base // 下载成绩表格 - public function download() + public function download($id) { + $list = request()->get(); + dump($list); + + dump($id); } diff --git a/application/chengji/view/index/chengjilist.html b/application/chengji/view/index/chengjilist.html index 10a8bce9..f1d48ea3 100644 --- a/application/chengji/view/index/chengjilist.html +++ b/application/chengji/view/index/chengjilist.html @@ -21,7 +21,7 @@ 批量删除 - + 下载成绩 diff --git a/application/chengji/view/tongji/nianji.html b/application/chengji/view/tongji/nianji.html index 0740ea4c..b9dc672b 100644 --- a/application/chengji/view/tongji/nianji.html +++ b/application/chengji/view/tongji/nianji.html @@ -103,11 +103,11 @@ }, ruxuenian:function(){ var a = $('input:radio:checked').val(); - if(typeof(a) == "undefined") - { - var date=new Date; - a = date.getFullYear()-1; - } + // if(typeof(a) == "undefined") + // { + // var date=new Date; + // a = date.getFullYear()-1; + // } return a; }, }, diff --git a/application/kaoshi/view/more_action/index.html b/application/kaoshi/view/more_action/index.html index f54a22ab..df13e58d 100644 --- a/application/kaoshi/view/more_action/index.html +++ b/application/kaoshi/view/more_action/index.html @@ -54,6 +54,14 @@ 成绩列表 +
  • +

    + + + +

    + 下载学生成绩 +
  • diff --git a/application/renshi/controller/Student.php b/application/renshi/controller/Student.php index a4201bbe..9aaecb50 100644 --- a/application/renshi/controller/Student.php +++ b/application/renshi/controller/Student.php @@ -309,7 +309,7 @@ class Student extends Base // 各变量赋值 $students[$i]['banji'] = $bj; $students[$i]['xingming'] = $value[1]; - $students[$i]['shenfenzhenghao'] = $value[2]; + $students[$i]['shenfenzhenghao'] = strtolower($value[2]); intval(substr($value[2],16,1) )% 2 ? $students[$i]['sex'] = 1 :$students[$i]['sex'] = 0 ; $students[$i]['shengri'] = substr($value[2],6,4).'-'.substr($value[2],10,2).'-'.substr($value[2],12,2); $students[$i]['school'] = $list['school']; diff --git a/route/chengji.php b/route/chengji.php index 77bde578..acee55e4 100644 --- a/route/chengji.php +++ b/route/chengji.php @@ -18,5 +18,6 @@ Route::post('chengji/read','chengji/Index/read'); Route::get('chengji/biaolu','chengji/Index/biaolu'); Route::post('chengji/biaolu','chengji/Index/saveAll'); Route::get('chengji/:id/chengjilist','chengji/Index/chengjilist'); +Route::get('chengji/:id/download','chengji/Index/download'); Route::get('cjtongji/:id/nianji','chengji/Tongji/nianji'); \ No newline at end of file