From 825be37ba092b98b974098110d74f2e736d31d77 Mon Sep 17 00:00:00 2001 From: mxuexxmy Date: Sat, 16 Oct 2021 17:10:12 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=97=B6=E9=97=B4=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/index/index.html | 427 +++++++++--------- public/.htaccess | 8 - 2 files changed, 215 insertions(+), 220 deletions(-) diff --git a/app/studentSearchChengji/view/index/index.html b/app/studentSearchChengji/view/index/index.html index 5e2b8289..728d0773 100755 --- a/app/studentSearchChengji/view/index/index.html +++ b/app/studentSearchChengji/view/index/index.html @@ -25,243 +25,246 @@ + var is_remember = false; + + (function() { + var hm = document.createElement("script"); + hm.src = "https://hm.baidu.com/hm.js?6f65eecea5e089dae94d6b9cffec3623"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + - -
- - +
+{if (session('student.password') == 123) } +
+ 您现在使用的是默认密码,为了您的信息不被漏,请及时修改密码。 +
+{/if} +
+
+
+
+

筛选

+
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ -
- +
+ +
+
+
-
- -
- -
-
-
- -
- -
-
-
-
- -
- -
-
- -
-
-
- -
- -
- -
+
+ +
+ +
+
-
-
- {volist name="$list.sbj" id="vo"} -
- {/volist} -
-
-
-
-
- 感谢{$list.thinks}提供技术支持。
- 本系统由{$list.danwei}负责管理 -
-
+
+
+
+ {volist name="$list.sbj" id="vo"} +
+ {/volist} +
+
+
+
+
+ 感谢{$list.thinks}提供技术支持。
+ 本系统由{$list.danwei}负责管理 +
+
+ diff --git a/public/.htaccess b/public/.htaccess index 3916a08b..e69de29b 100755 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,8 +0,0 @@ - -Options +FollowSymlinks -Multiviews -RewriteEngine On - -RewriteCond %{REQUEST_FILENAME} !-d -RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] - \ No newline at end of file From 870254fad9aae3c9bf5cb772ed08c9f083b2e2f3 Mon Sep 17 00:00:00 2001 From: mxuexxmy Date: Sun, 17 Oct 2021 14:44:51 +0800 Subject: [PATCH 2/5] =?UTF-8?q?welcome=20=E9=A1=B5=E9=9D=A2=20=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/view/index/welcome.html | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/app/index/view/index/welcome.html b/app/index/view/index/welcome.html index e1756b6b..802f7e16 100755 --- a/app/index/view/index/welcome.html +++ b/app/index/view/index/welcome.html @@ -171,18 +171,20 @@
- + }; + From 0a6899d2b425b4839ecbf2e75f342199788451f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=93=9C=E5=93=A5?= Date: Sun, 17 Oct 2021 17:43:29 +0800 Subject: [PATCH 3/5] htaccess --- app/.htaccess | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/.htaccess b/app/.htaccess index 3418e55a..108778be 100644 --- a/app/.htaccess +++ b/app/.htaccess @@ -1 +1,8 @@ -deny from all \ No newline at end of file + +Options +FollowSymlinks -Multiviews +RewriteEngine On + +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] + From 293e4944cce71f126bc516043a9a9fa8cbebd7a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=93=9C=E5=93=A5?= Date: Sun, 17 Oct 2021 18:31:01 +0800 Subject: [PATCH 4/5] htaccess --- public/.htaccess | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index e69de29b..3916a08b 100755 --- a/public/.htaccess +++ b/public/.htaccess @@ -0,0 +1,8 @@ + +Options +FollowSymlinks -Multiviews +RewriteEngine On + +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] + \ No newline at end of file From 64327a18595f0f8b767effa85e92d4b404a9c635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=BA=E5=93=A5?= Date: Mon, 18 Oct 2021 11:55:41 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AD=A6=E7=94=9F?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=88=90=E7=BB=A9parsererror=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/kaohao/model/SearchOne.php | 2 +- app/studentSearchChengji/controller/Index.php | 1 - app/studentSearchChengji/view/index/index.html | 12 +++++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/kaohao/model/SearchOne.php b/app/kaohao/model/SearchOne.php index db7122db..45304a77 100755 --- a/app/kaohao/model/SearchOne.php +++ b/app/kaohao/model/SearchOne.php @@ -45,7 +45,7 @@ class SearchOne extends BaseModel ->where('kaoshi_id', 'in', function($query) use($src){ $query->name('kaoshi') ->whereTime('bfdate|enddate', 'between', [$src['bfdate'], $src['enddate']]) - ->where('luru&status', '0') + ->where('luru&status', '1') ->when(count($src['kaoshi_id'])>0, function($w) use($src){ $w->where('id', 'in', $src['kaoshi_id']); }) diff --git a/app/studentSearchChengji/controller/Index.php b/app/studentSearchChengji/controller/Index.php index b775cc16..78638ef6 100755 --- a/app/studentSearchChengji/controller/Index.php +++ b/app/studentSearchChengji/controller/Index.php @@ -43,7 +43,6 @@ class Index extends StudentSearchBase $list['sbj'] = $subject->search(['kaoshi' => 1]); $list['tjxm'] = srcTjxm(12207); - // 模板赋值 $this->view->assign('list', $list); diff --git a/app/studentSearchChengji/view/index/index.html b/app/studentSearchChengji/view/index/index.html index 5e2b8289..9aba23f4 100755 --- a/app/studentSearchChengji/view/index/index.html +++ b/app/studentSearchChengji/view/index/index.html @@ -116,7 +116,7 @@
- +
@@ -242,7 +242,6 @@ layui.use(['element', 'table', 'form', 'laydate', 'myEchart', 'createInput'], fu form.val("search", { "bfdate": value, }); - $("#srcsubmit").click(); } }); //结束时间 @@ -257,10 +256,17 @@ layui.use(['element', 'table', 'form', 'laydate', 'myEchart', 'createInput'], fu form.val("search", { "enddate": value, }); - $("#srcsubmit").click(); } }); + // 监听筛选 + form.on('submit(searchSubmit)', function(data) { + options.where = form.val("search"); + $('#srcmianban').removeClass("layui-show"); + table.render(options); //获取数据并渲染 + return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。 + }); + });