44bf0e3f977008748bcf3f9a8e3c98dc.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php /*a:3:{s:59:"/data/web/mall.valimart.net/app/admin/view/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_order')); ?></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. <form method="get">
  48. <div class="ds-search-form">
  49. <dl>
  50. <dt><?php echo htmlentities(lang('ds_order_sn')); ?></dt>
  51. <dd><input type="text" class="text w150" name="order_sn" value="<?php echo htmlentities(app('request')->param('order_sn')); ?>"></dd>
  52. </dl>
  53. <dl>
  54. <dt><?php echo htmlentities(lang('ds_store_name')); ?></dt>
  55. <dd><input type="text" class="text w150" name="store_name" value="<?php echo htmlentities(app('request')->param('store_name')); ?>"></dd>
  56. </dl>
  57. <dl>
  58. <dt><?php echo htmlentities(lang('order_state')); ?></dt>
  59. <dd>
  60. <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_pay'); ?></option>
  64. <option value="30" <?php if(app('request')->param('order_state') == '30'): ?>selected<?php endif; ?>><?php echo lang('order_state_send'); ?></option>
  65. <option value="40" <?php if(app('request')->param('order_state') == '40'): ?>selected<?php endif; ?>><?php echo lang('order_state_success'); ?></option>
  66. <option value="0" <?php if(app('request')->param('order_state') == '0'): ?>selected<?php endif; ?>><?php echo lang('order_state_cancel'); ?></option>
  67. </select>
  68. </dd>
  69. </dl>
  70. <dl>
  71. <dt><?php echo htmlentities(lang('order_time_from')); ?></dt>
  72. <dd>
  73. <input type="text" class="txt date" name="query_start_time" id="query_start_time" value="<?php echo htmlentities(app('request')->param('query_start_time')); ?>">
  74. &nbsp;–&nbsp;
  75. <input id="query_end_time" class="txt date" type="text" name="query_end_time" value="<?php echo htmlentities(app('request')->param('query_end_time')); ?>">
  76. </dd>
  77. </dl>
  78. <dl>
  79. <dt><?php echo htmlentities(lang('ds_buyer_name')); ?></dt>
  80. <dd>
  81. <input type="text" class="text w80" name="buyer_name" value="<?php echo htmlentities(app('request')->param('buyer_name')); ?>">
  82. </dd>
  83. <dd>
  84. <select name="payment_code">
  85. <option value=""><?php echo htmlentities(lang('ds_please_choose')); ?></option>
  86. <?php foreach($payment_list as $val): ?>
  87. <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>
  88. <?php endforeach; ?>
  89. </select>
  90. </dd>
  91. </dl>
  92. <div class="btn_group">
  93. <input type="submit" class="btn" value="<?php echo htmlentities(lang('ds_search')); ?>">
  94. <?php if($filtered): ?>
  95. <a href="<?php echo url('Order/index'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
  96. <?php endif; ?>
  97. <a class="btn btn-mini" href="javascript:export_xls('<?php echo url('Order/export_step1'); ?>')"><span><?php echo htmlentities(lang('ds_export')); ?>Excel</span></a>
  98. </div>
  99. </div>
  100. </form>
  101. <table class="ds-default-table">
  102. <thead>
  103. <tr>
  104. <th><?php echo htmlentities(lang('ds_order_sn')); ?></th>
  105. <th><?php echo htmlentities(lang('ds_store_name')); ?></th>
  106. <th><?php echo htmlentities(lang('ds_buyer_name')); ?></th>
  107. <th><?php echo htmlentities(lang('order_time')); ?></th>
  108. <th><?php echo htmlentities(lang('order_total_price')); ?></th>
  109. <th><?php echo htmlentities(lang('ds_payment_code')); ?></th>
  110. <th><?php echo htmlentities(lang('order_state')); ?></th>
  111. <th><?php echo htmlentities(lang('ds_handle')); ?></th>
  112. </tr>
  113. </thead>
  114. <?php if(empty($order_group_list) || (($order_group_list instanceof \think\Collection || $order_group_list instanceof \think\Paginator ) && $order_group_list->isEmpty())): ?>
  115. <tbody>
  116. <tr class="no_data">
  117. <td colspan="20"><?php echo htmlentities(lang('no_record')); ?></td>
  118. </tr>
  119. </tbody>
  120. <?php else: ?>
  121. <tbody>
  122. <?php if(is_array($order_group_list) || $order_group_list instanceof \think\Collection || $order_group_list instanceof \think\Paginator): if( count($order_group_list)==0 ) : echo "" ;else: foreach($order_group_list as $pay_sn=>$order_list): if($order_list['pay_amount']>0): ?>
  123. <tr>
  124. <td colspan="7"><?php echo htmlentities(lang('ds_order_amount')); ?><?php echo htmlentities(lang('ds_colon')); ?><?php echo htmlentities(lang('currency')); ?><?php echo htmlentities($order_list['pay_amount']); ?></td>
  125. <td><a href="javascript:dsLayerOpen('<?php echo url('Order/change_state',['state_type'=>'receive_pay','pay_sn'=>$pay_sn]); ?>','<?php echo htmlentities(lang('ds_order')); ?>-<?php echo htmlentities($pay_sn); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('order_change_received')); ?></a></td>
  126. </tr>
  127. <?php endif; if(is_array($order_list['order_list']) || $order_list['order_list'] instanceof \think\Collection || $order_list['order_list'] instanceof \think\Paginator): if( count($order_list['order_list'])==0 ) : echo "" ;else: foreach($order_list['order_list'] as $key=>$order): ?>
  128. <tr>
  129. <td><?php echo htmlentities($order['order_sn']); ?></td>
  130. <td><?php echo htmlentities($order['store_name']); ?></td>
  131. <td><?php echo htmlentities($order['buyer_name']); ?></td>
  132. <td><?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($order['add_time'])? strtotime($order['add_time']) : $order['add_time'])); ?></td>
  133. <td><?php echo htmlentities($order['order_amount']); ?></td>
  134. <td><?php echo get_order_payment_name($order['payment_code']); ?></td>
  135. <td><?php echo get_order_state($order); ?></td>
  136. <td>
  137. <a href="javascript:dsLayerOpen('<?php echo url('Order/show_order',['order_id'=>$order['order_id']]); ?>','<?php echo htmlentities(lang('ds_view')); ?><?php echo htmlentities(lang('ds_order')); ?>-<?php echo htmlentities($order['order_sn']); ?>')" class="dsui-btn-view"><i class="iconfont"></i><?php echo htmlentities(lang('ds_view')); ?></a>
  138. <?php if($order['if_cancel']): ?>
  139. <a href="javascript:dsLayerConfirm('<?php echo url('Order/change_state',['state_type'=>'cancel','order_id'=>$order['order_id']]); ?>','<?php echo htmlentities(lang('order_confirm_cancel')); ?>')" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('order_change_cancel')); ?></a>
  140. <?php endif; ?>
  141. </td>
  142. </tr>
  143. <?php endforeach; endif; else: echo "" ;endif; ?>
  144. <?php endforeach; endif; else: echo "" ;endif; ?>
  145. </tbody>
  146. <?php endif; ?>
  147. </table>
  148. <?php echo $show_page; ?>
  149. </div>
  150. <script type="text/javascript">
  151. $(function(){
  152. $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
  153. $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
  154. });
  155. </script>