80237e634f098631966442bccf7acd65.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?php /*a:3:{s:70:"/data/web/mall.valimart.net/app/admin/view/vrorder/vr_order_index.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:66:"/data/web/mall.valimart.net/app/admin/view/public/admin_items.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <div class="fixed-bar">
  33. <div class="item-title">
  34. <div class="subject">
  35. <h3><?php echo htmlentities(lang('ds_vrorder')); ?></h3>
  36. <h5></h5>
  37. </div>
  38. <?php if($admin_item): ?>
  39. <ul class="tab-base ds-row">
  40. <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
  41. <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
  42. <?php endforeach; endif; else: echo "" ;endif; ?>
  43. </ul>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. <div class="fixed-empty"></div>
  48. <form method="get" action="" name="formSearch" id="formSearch">
  49. <div class="ds-search-form">
  50. <dl>
  51. <dt><?php echo htmlentities(lang('ds_order_sn')); ?></dt>
  52. <dd><input class="txt2" type="text" name="order_sn" value="<?php echo htmlentities(app('request')->param('order_sn')); ?>" /></dd>
  53. </dl>
  54. <dl>
  55. <dt><?php echo htmlentities(lang('ds_store_name')); ?></dt>
  56. <dd><input class="txt-short" type="text" name="store_name" value="<?php echo htmlentities(app('request')->param('store_name')); ?>" /></dd>
  57. </dl>
  58. <dl>
  59. <dt><?php echo htmlentities(lang('order_state')); ?></dt>
  60. <dd><select name="order_state" class="querySelect">
  61. <option value=""><?php echo htmlentities(lang('ds_please_choose')); ?></option>
  62. <option value="10" <?php if(app('request')->param('order_state') == '10'): ?>selected<?php endif; ?>><?php echo lang('order_state_new'); ?></option>
  63. <option value="20" <?php if(app('request')->param('order_state') == '20'): ?>selected<?php endif; ?>><?php echo lang('order_state_paid'); ?></option>
  64. <option value="40" <?php if(app('request')->param('order_state') == '40'): ?>selected<?php endif; ?>><?php echo lang('order_state_success'); ?></option>
  65. <option value="0" <?php if(app('request')->param('order_state') == '0'): ?>selected<?php endif; ?>><?php echo lang('order_state_cancel'); ?></option>
  66. </select>
  67. </dd>
  68. </dl>
  69. <dl>
  70. <dt><?php echo htmlentities(lang('order_time_from')); ?></dt>
  71. <dd><input class="txt date" type="text" value="<?php echo htmlentities(app('request')->param('query_start_time')); ?>" id="query_start_time" name="query_start_time">
  72. ~
  73. <input class="txt date" type="text" value="<?php echo htmlentities(app('request')->param('query_end_time')); ?>" id="query_end_time" name="query_end_time"/>
  74. </dd>
  75. </dl>
  76. <dl>
  77. <dt><?php echo htmlentities(lang('ds_buyer_name')); ?></dt>
  78. <dd><input class="txt-short" type="text" name="buyer_name" value="<?php echo htmlentities(app('request')->param('buyer_name')); ?>" /></dd>
  79. </dl>
  80. <dl>
  81. <dt><?php echo htmlentities(lang('ds_payment_code')); ?></dt>
  82. <dd>
  83. <select name="payment_code" class="w100">
  84. <option value=""><?php echo htmlentities(lang('ds_please_choose')); ?></option>
  85. <?php foreach($payment_list as $val) { if ($val['payment_code'] == 'offline') continue;?>
  86. <option <?php if(app('request')->param('payment_code') == $val['payment_code']): ?>selected<?php endif; ?> value="<?php echo htmlentities($val['payment_code']); ?>"><?php echo htmlentities($val['payment_name']); ?></option>
  87. <?php } ?>
  88. </select>
  89. </dd>
  90. </dl>
  91. <div class="btn_group">
  92. <input type="submit" class="btn" value="<?php echo htmlentities(lang('ds_query')); ?>">
  93. <?php if($filtered): ?>
  94. <a href="<?php echo url('Vrorder/index'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
  95. <?php endif; ?>
  96. <a class="btn btn-mini" href="javascript:export_xls('<?php echo url('Vrorder/export_step1'); ?>')"><span><?php echo htmlentities(lang('ds_export')); ?>Excel</span></a>
  97. </div>
  98. </div>
  99. </form>
  100. <div class="explanation" id="explanation">
  101. <div class="title" id="checkZoom">
  102. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  103. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  104. </div>
  105. <ul>
  106. <li><?php echo htmlentities(lang('vrorder_index_help1')); ?></li>
  107. <li><?php echo htmlentities(lang('vrorder_index_help2')); ?></li>
  108. <li><?php echo htmlentities(lang('vrorder_index_help3')); ?></li>
  109. </ul>
  110. </div>
  111. <table class="ds-default-table">
  112. <colgroup>
  113. <col width="200">
  114. <col width="100">
  115. <col width="100">
  116. <col width="200">
  117. <col width="100">
  118. <col width="100">
  119. <col width="100">
  120. <col>
  121. </colgroup>
  122. <thead>
  123. <tr class="thead">
  124. <th><?php echo htmlentities(lang('ds_order_sn')); ?></th>
  125. <th><?php echo htmlentities(lang('ds_store_name')); ?></th>
  126. <th><?php echo htmlentities(lang('ds_buyer_name')); ?></th>
  127. <th class="align-center"><?php echo htmlentities(lang('order_time')); ?></th>
  128. <th class="align-center"><?php echo htmlentities(lang('order_total_price')); ?></th>
  129. <th class="align-center"><?php echo htmlentities(lang('ds_payment_code')); ?></th>
  130. <th class="align-center"><?php echo htmlentities(lang('order_state')); ?></th>
  131. <th class="align-center"><?php echo htmlentities(lang('ds_handle')); ?></th>
  132. </tr>
  133. </thead>
  134. <tbody>
  135. <?php if(!(empty($order_list) || (($order_list instanceof \think\Collection || $order_list instanceof \think\Paginator ) && $order_list->isEmpty()))): if(is_array($order_list) || $order_list instanceof \think\Collection || $order_list instanceof \think\Paginator): if( count($order_list)==0 ) : echo "" ;else: foreach($order_list as $key=>$order): ?>
  136. <tr class="hover">
  137. <td><?php echo htmlentities($order['order_sn']); ?></td>
  138. <td><?php echo htmlentities($order['store_name']); ?></td>
  139. <td><?php echo htmlentities($order['buyer_name']); ?></td>
  140. <td class="nowrap align-center"><?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($order['add_time'])? strtotime($order['add_time']) : $order['add_time'])); ?></td>
  141. <td class="align-center"><?php echo htmlentities($order['order_amount']); ?></td>
  142. <td class="align-center"><?php echo get_order_payment_name($order['payment_code']); ?></td>
  143. <td class="align-center"><?php echo $order['state_desc']; ?></td>
  144. <td class="w144 align-center">
  145. <a href="javascript:dsLayerOpen('<?php echo url('Vrorder/show_order',['order_id'=>$order['order_id']]); ?>','<?php echo htmlentities(lang('ds_view')); ?>-<?php echo htmlentities($order['order_sn']); ?>')" class="dsui-btn-view"><i class="iconfont"></i><?php echo htmlentities(lang('ds_view')); ?></a>
  146. <!-- 取消订单 -->
  147. <?php if($order['if_cancel']): ?>
  148. <a href="javascript:dsLayerConfirm('<?php echo url('Vrorder/change_state',['state_type'=>'cancel','order_id'=>$order['order_id']]); ?>','<?php echo htmlentities(lang('order_confirm_cancel')); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('order_change_cancel')); ?></a>
  149. <?php endif; ?>
  150. <!-- 收款 -->
  151. <?php if($order['if_system_receive_pay']): ?>
  152. <a href="javascript:dsLayerOpen('<?php echo url('Vrorder/change_state',['state_type'=>'receive_pay','order_id'=>$order['order_id']]); ?>','<?php echo htmlentities(lang('order_change_received')); ?>-<?php echo htmlentities($order['order_sn']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('order_change_received')); ?></a>
  153. <?php endif; ?>
  154. </td>
  155. </tr>
  156. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  157. <tr class="no_data">
  158. <td colspan="15"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  159. </tr>
  160. <?php endif; ?>
  161. </tbody>
  162. </table>
  163. <?php echo $show_page; ?>
  164. </div>
  165. <script type="text/javascript">
  166. $(function () {
  167. $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
  168. $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
  169. });
  170. </script>