From 4f59072769aafb415e0184e547cdae6012f0ae87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Tue, 13 Nov 2018 16:54:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E5=86=99=E7=94=9F=E6=88=90=E8=80=83?= =?UTF-8?q?=E5=8F=B7?= 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/kaohao.html | 92 +++++++++++++++++++++ application/renshi/view/student/create.html | 2 +- application/renshi/view/student/edit.html | 2 +- application/teach/view/kaoshi/create.html | 2 +- application/teach/view/kaoshi/edit.html | 2 +- database/seeds/Rule.php | 2 +- route/chengji.php | 1 + 8 files changed, 104 insertions(+), 5 deletions(-) create mode 100644 application/chengji/view/index/kaohao.html diff --git a/application/chengji/controller/Index.php b/application/chengji/controller/Index.php index 5f4c4fea..99de00eb 100644 --- a/application/chengji/controller/Index.php +++ b/application/chengji/controller/Index.php @@ -11,4 +11,10 @@ class Index extends Base { return $this->fetch(); } + + // 生成考号 + public function kaohao() + { + return $this->fetch(); + } } diff --git a/application/chengji/view/index/kaohao.html b/application/chengji/view/index/kaohao.html new file mode 100644 index 00000000..0f1180b9 --- /dev/null +++ b/application/chengji/view/index/kaohao.html @@ -0,0 +1,92 @@ +{extend name="common@create" /} +{block name="formaa"} +
+
+ +
+ + {php} + $school = new app\system\model\School; + $school = $school->where('status',1)->field('id,title')->all(); + {/php} + + +
+
+ {php} + $njlist = $njlist = nianjiList(); + {/php} +
+ +
+ {foreach $njlist as $key=>$vo} +
+
+ +
+
+ + + + + +
+
+ {/foreach} +
+
+
+
+ +
+
+
+{/block} +{block name="yanzheng"} + +{/block} \ No newline at end of file diff --git a/application/renshi/view/student/create.html b/application/renshi/view/student/create.html index 208e6758..8a4a6ced 100644 --- a/application/renshi/view/student/create.html +++ b/application/renshi/view/student/create.html @@ -33,7 +33,7 @@
- +
diff --git a/application/renshi/view/student/edit.html b/application/renshi/view/student/edit.html index 03814a8f..bb33be18 100644 --- a/application/renshi/view/student/edit.html +++ b/application/renshi/view/student/edit.html @@ -33,7 +33,7 @@
- +
diff --git a/application/teach/view/kaoshi/create.html b/application/teach/view/kaoshi/create.html index 5d2f0a9c..7f8a41ca 100644 --- a/application/teach/view/kaoshi/create.html +++ b/application/teach/view/kaoshi/create.html @@ -4,7 +4,7 @@
- + {php} $school = new app\system\model\School; $school = $school->where('status',1)->field('id,title')->all(); diff --git a/application/teach/view/kaoshi/edit.html b/application/teach/view/kaoshi/edit.html index 4ee5a767..66ba53c1 100644 --- a/application/teach/view/kaoshi/edit.html +++ b/application/teach/view/kaoshi/edit.html @@ -4,7 +4,7 @@
- + {php} $school = new app\system\model\School; $school = $school->where('status',1)->field('id,title')->all(); diff --git a/database/seeds/Rule.php b/database/seeds/Rule.php index ddc758d6..755a531b 100644 --- a/database/seeds/Rule.php +++ b/database/seeds/Rule.php @@ -42,7 +42,7 @@ class Rule extends Seeder // 成绩采集 ['id'=>51,'title'=>'扫码录入','name'=>'chengji/Index/malu','paixu'=>1,'ismenu' =>true,'pid' =>5,'url'=>'/chengji',], ['id'=>52,'title'=>'表格录入','name'=>'chengji/Student/biaolu','paixu'=>2,'ismenu' =>true,'pid' =>5,'url'=>'/chengji',], - ['id'=>53,'title'=>'生成二维码','name'=>'chengji/Student/erweima','paixu'=>3,'ismenu' =>true,'pid' =>5,'url'=>'/chengji',], + ['id'=>53,'title'=>'生成二维码','name'=>'chengji/Student/erweima','paixu'=>3,'ismenu' =>true,'pid' =>5,'url'=>'/chengji/erweima',], // 教务管理 diff --git a/route/chengji.php b/route/chengji.php index 2ef09ccd..064261dd 100644 --- a/route/chengji.php +++ b/route/chengji.php @@ -11,6 +11,7 @@ //系统设置路由 Route::get('chengji/erweima','chengji/Index/erweima'); +Route::get('chengji/kaohao','chengji/Index/kaohao');