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