From 53b9573d7180772acade974dc6363b2eaa2f47c4 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Tue, 11 Feb 2020 17:26:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A2=E5=8D=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/TestOrderController.class.php | 30 +++- Application/Admin/View/TestOrder/lists.html | 128 +++++------------- 2 files changed, 61 insertions(+), 97 deletions(-) diff --git a/Application/Admin/Controller/TestOrderController.class.php b/Application/Admin/Controller/TestOrderController.class.php index ad37f8bbe..f857bf28d 100644 --- a/Application/Admin/Controller/TestOrderController.class.php +++ b/Application/Admin/Controller/TestOrderController.class.php @@ -10,7 +10,35 @@ use Org\WeixinSDK\Weixin; class TestOrderController extends ThinkController { public function lists($p = 0) { - $order_list = M('test_order', 'tab_')->select(); + $page = intval($p); + $page = $page ? $page : 1; //默认显示第一页数据 + $arraypage = $page; + + if (isset($_REQUEST['row'])) { + $row = $_REQUEST['row']; + } else { + $row = 10; + } + + $map['1'] = "1"; + if (!empty($_REQUEST['server_type'])) { + $map['server_type'] = $_REQUEST['server_type']; + } + if (!empty($_REQUEST['order_type'])) { + $map['order_type'] = $_REQUEST['order_type']; + } + if (!empty($_REQUEST['order_no'])) { + $map['order_no'] = $_REQUEST['order_no']; + } + if (!empty($_REQUEST['user_account'])) { + $map['user_account'] = $_REQUEST['user_account']; + } + if (!empty($_REQUEST['pay_way'])) { + $map['pay_way'] = $_REQUEST['pay_way']; + } + + + $order_list = M('test_order', 'tab_')->where($map)->select(); $this->assign('datas', $order_list); $this->display(); } diff --git a/Application/Admin/View/TestOrder/lists.html b/Application/Admin/View/TestOrder/lists.html index aa099e5bb..1e873e577 100644 --- a/Application/Admin/View/TestOrder/lists.html +++ b/Application/Admin/View/TestOrder/lists.html @@ -40,29 +40,33 @@
- - - - - - -
-   +
+ +
+
+
-   +  
 
- + -
- +
@@ -70,23 +74,23 @@