From 2e4f3bf880d1e900664e6a51efdafcca2aa3cdae Mon Sep 17 00:00:00 2001 From: win10 Date: Thu, 10 Sep 2020 08:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=80=E5=A4=A7=E7=8F=AD?= =?UTF-8?q?=E7=BA=A7=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/keti/controller/Tongji.php | 22 ++++++++++++++++++++++ app/system/controller/School.php | 1 - app/teach/controller/Banji.php | 3 +++ app/teach/view/banji/create.html | 2 +- database/seeds/Rule.php | 8 ++++++++ 5 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 app/keti/controller/Tongji.php diff --git a/app/keti/controller/Tongji.php b/app/keti/controller/Tongji.php new file mode 100644 index 00000000..64d07021 --- /dev/null +++ b/app/keti/controller/Tongji.php @@ -0,0 +1,22 @@ +delete('id'); $id = explode(',', $id); - $data = sch::destroy($id); // 根据更新结果设置返回提示信息 diff --git a/app/teach/controller/Banji.php b/app/teach/controller/Banji.php index 28b23ee8..67957de2 100644 --- a/app/teach/controller/Banji.php +++ b/app/teach/controller/Banji.php @@ -74,12 +74,15 @@ class Banji extends AdminBase */ public function create() { + $alias = \app\facade\System::sysClass(); + // 设置页面标题 $list['set'] = array( 'webtitle' => '添加班级' ,'butname' => '添加' ,'formpost' => 'POST' ,'url' => 'save' + ,'classmax' =>$alias->classmax ); // 模板赋值 diff --git a/app/teach/view/banji/create.html b/app/teach/view/banji/create.html index 3397fdbb..1421006a 100644 --- a/app/teach/view/banji/create.html +++ b/app/teach/view/banji/create.html @@ -38,7 +38,7 @@
+ autocomplete="off" class="layui-input" value="" placeholder="最多可填{$list.set.classmax}个班级">
diff --git a/database/seeds/Rule.php b/database/seeds/Rule.php index 6c917e80..5eb44994 100644 --- a/database/seeds/Rule.php +++ b/database/seeds/Rule.php @@ -1527,6 +1527,14 @@ class Rule extends Seeder ,'pid' => 902 ,'status' => 0 ], + ['id' => 903 + ,'title' => '课题统计' + ,'name' => 'keti/ketiinfo/tongji' + ,'paixu' => 3 + ,'ismenu' => 1 + ,'pid' => 9 + ,'url' => '/keti/ketiinfo/tongji' + ], // 教师管理 ['id' => 10