From b007b733b8eb9f4a61ecd5569d3d87654432066a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Fri, 7 Aug 2020 16:40:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=A6=BB=E6=95=B0=E6=8D=AE=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .example.env | 11 +- app/base/controller/StudentSearchBase.php | 4 +- app/common.php | 6 +- app/kaohao/model/SearchOne.php | 2 +- app/kaohao/view/index/read.html | 12 +- app/kaoshi/view/kaoshi_set/create.html | 3 +- app/student/controller/Chengji.php | 53 +++ app/student/controller/StudentChengji.php | 137 ------ app/student/model/OneStudentChengji1.php | 400 ------------------ app/student/route/student.php | 12 +- .../index.html => chengji/read.html} | 6 +- app/student/view/index/by_list.html | 2 +- app/student/view/index/del_list.html | 2 +- app/student/view/index/index.html | 4 +- app/studentSearchChengji/controller/Index.php | 193 +-------- app/studentSearchChengji/route/student.php | 12 +- .../view/index/index.html | 12 +- app/tools/controller/OneStudentChengji.php | 224 ++++++++++ .../model/OneStudentChengji.php | 23 +- app/tools/route/tools.php | 12 + database/seeds/Rule.php | 4 +- 21 files changed, 353 insertions(+), 781 deletions(-) create mode 100644 app/student/controller/Chengji.php delete mode 100644 app/student/controller/StudentChengji.php delete mode 100644 app/student/model/OneStudentChengji1.php rename app/student/view/{student_chengji/index.html => chengji/read.html} (98%) create mode 100644 app/tools/controller/OneStudentChengji.php rename app/{studentSearchChengji => tools}/model/OneStudentChengji.php (96%) diff --git a/.example.env b/.example.env index 39a5af55..625de91f 100644 --- a/.example.env +++ b/.example.env @@ -6,10 +6,12 @@ DEFAULT_TIMEZONE = Asia/Shanghai [DATABASE] TYPE = mysql HOSTNAME = 127.0.0.1 -DATABASE = mayi -USERNAME = username -PASSWORD = password +DATABASE = dlsm +USERNAME = mayi +PASSWORD = 123456 HOSTPORT = 3306 +CHARSET = utf8 +PREFIX = cj_ DEBUG = false [LANG] @@ -17,3 +19,6 @@ default_lang = zh-cn [SESSION] EXPIRE = 1200 + +[SHANGMA] +CLASSMAX = 30 diff --git a/app/base/controller/StudentSearchBase.php b/app/base/controller/StudentSearchBase.php index c9eea07b..82a4abc5 100644 --- a/app/base/controller/StudentSearchBase.php +++ b/app/base/controller/StudentSearchBase.php @@ -1,5 +1,5 @@ kaoshi(); + return $subject; } diff --git a/app/kaohao/model/SearchOne.php b/app/kaohao/model/SearchOne.php index 6520c591..100820d3 100644 --- a/app/kaohao/model/SearchOne.php +++ b/app/kaohao/model/SearchOne.php @@ -11,7 +11,7 @@ use \app\kaohao\model\Kaohao as kh; class SearchOne extends BaseModel { // 获取某个学生历次考试成绩 - public function srcOneStudentOldChengji($srcfrom) + public function oldChengji($srcfrom) { // 初始化参数 $src = array( diff --git a/app/kaohao/view/index/read.html b/app/kaohao/view/index/read.html index 106fe837..5288f533 100644 --- a/app/kaohao/view/index/read.html +++ b/app/kaohao/view/index/read.html @@ -71,7 +71,7 @@ - +