<?php wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox.css', '/' . WPINC . '/js/thickbox/thickbox.css', null, '1.0'); wp_enqueue_script('jquery-ui-datepicker', XT_CORE_JS_URL . '/datepicker/jquery-ui-datepicker.min.js', array('jquery'), '20121008'); wp_enqueue_style('jquery-ui-core', XT_CORE_JS_URL . '/datepicker/jquery.ui.core.css', false, '20121008'); wp_enqueue_style('jquery-ui-theme', XT_CORE_JS_URL . '/datepicker/jquery.ui.theme.css', false, '20121008'); wp_enqueue_style('jquery-ui-datepicker', XT_CORE_JS_URL . '/datepicker/jquery.ui.datepicker.css', false, '20121008'); $s = isset($_GET['s']) ? urldecode($_GET['s']) : ''; $user_id = isset($_GET['user_id']) ? absint($_GET['user_id']) : ''; $_result = query_orders(array('order_per_page' => 50, 'page' => isset($_GET['paged']) ? intval($_GET['paged']) : 1, 'type' => 'paipai', 's' => $s, 'user_id' => $user_id)); $_orders = $_result['orders']; ?> <div class="clear" style="margin-top:10px;"> <p class="search-box"> <label class="screen-reader-text" for="filter-search-input">搜索拍拍交易:</label> <input type="search" id="filter-search-input" name="s" value="<?php echo $s; ?> "> <input type="button" name="" id="filter-search-submit" class="button" value="搜索拍拍交易"> </p> </div> <div class="tablenav top"> <div class="alignleft actions"> <input id="X_Fanxian-Order-Get" type="button" class="button-primary" value="手动获取订单"> </div> <div class="tablenav-pages"> <span class="displaying-num"> <?php xt_orders_paging_text();
<?php $isUnorder = isset($_POST['type']) && $_POST['type'] == 'unorder' ? true : false; $_params = array('type' => 'paipai', 'page' => absint($_POST['page']), 'order_per_page' => 15, 'sd' => $_POST['sd'], 'ed' => $_POST['ed']); if ($isUnorder) { $_params['isUnorder'] = true; } else { $_params['user_id'] = get_current_user_id(); } $_result = query_orders($_params); $_orders = $_result['orders']; $_total = $_result['total']; ?> <table class="table table-striped table-hover table-bordered"> <colgroup> <col style="width:120px;"/> <col/> <col style="width:80px;"/> <col style="width:50px;"/> <col style="width:80px;"/> <col style="width:90px;"/> <col style="width:140px;"/> </colgroup> <thead> <tr> <th>拍拍交易号</th> <th>商品名称</th> <th>成交价格</th> <th>数量</th> <th>可返现金</th> <th>可返<?php