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 @@