vr_order_index.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_vrorder}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="fixed-empty"></div>
  13. <form method="get" action="" name="formSearch" id="formSearch">
  14. <div class="ds-search-form">
  15. <dl>
  16. <dt>{$Think.lang.ds_order_sn}</dt>
  17. <dd><input class="txt2" type="text" name="order_sn" value="{$Request.param.order_sn}" /></dd>
  18. </dl>
  19. <dl>
  20. <dt>{$Think.lang.ds_store_name}</dt>
  21. <dd><input class="txt-short" type="text" name="store_name" value="{$Request.param.store_name}" /></dd>
  22. </dl>
  23. <dl>
  24. <dt>{$Think.lang.order_state}</dt>
  25. <dd><select name="order_state" class="querySelect">
  26. <option value="">{$Think.lang.ds_please_choose}</option>
  27. <option value="10" {if condition="$Request.param.order_state eq '10'"}selected{/if}>{$Think.lang.order_state_new|raw}</option>
  28. <option value="20" {if condition="$Request.param.order_state eq '20'"}selected{/if}>{$Think.lang.order_state_paid|raw}</option>
  29. <option value="40" {if condition="$Request.param.order_state eq '40'"}selected{/if}>{$Think.lang.order_state_success|raw}</option>
  30. <option value="0" {if condition="$Request.param.order_state eq '0'"}selected{/if}>{$Think.lang.order_state_cancel|raw}</option>
  31. </select>
  32. </dd>
  33. </dl>
  34. <dl>
  35. <dt>{$Think.lang.order_time_from}</dt>
  36. <dd><input class="txt date" type="text" value="{$Request.param.query_start_time}" id="query_start_time" name="query_start_time">
  37. ~
  38. <input class="txt date" type="text" value="{$Request.param.query_end_time}" id="query_end_time" name="query_end_time"/>
  39. </dd>
  40. </dl>
  41. <dl>
  42. <dt>{$Think.lang.ds_buyer_name}</dt>
  43. <dd><input class="txt-short" type="text" name="buyer_name" value="{$Request.param.buyer_name}" /></dd>
  44. </dl>
  45. <dl>
  46. <dt>{$Think.lang.ds_payment_code}</dt>
  47. <dd>
  48. <select name="payment_code" class="w100">
  49. <option value="">{$Think.lang.ds_please_choose}</option>
  50. <?php foreach($payment_list as $val) { ?>
  51. <?php if ($val['payment_code'] == 'offline') continue;?>
  52. <option {if condition="$Request.param.payment_code eq $val.payment_code"}selected{/if} value="{$val.payment_code}">{$val.payment_name}</option>
  53. <?php } ?>
  54. </select>
  55. </dd>
  56. </dl>
  57. <div class="btn_group">
  58. <input type="submit" class="btn" value="{$Think.lang.ds_query}">
  59. {if $filtered}
  60. <a href="{:url('Vrorder/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  61. {/if}
  62. <a class="btn btn-mini" href="javascript:export_xls('{:url('Vrorder/export_step1')}')"><span>{$Think.lang.ds_export}Excel</span></a>
  63. </div>
  64. </div>
  65. </form>
  66. <div class="explanation" id="explanation">
  67. <div class="title" id="checkZoom">
  68. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  69. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  70. </div>
  71. <ul>
  72. <li>{$Think.lang.vrorder_index_help1}</li>
  73. <li>{$Think.lang.vrorder_index_help2}</li>
  74. <li>{$Think.lang.vrorder_index_help3}</li>
  75. </ul>
  76. </div>
  77. <table class="ds-default-table">
  78. <colgroup>
  79. <col width="200">
  80. <col width="100">
  81. <col width="100">
  82. <col width="200">
  83. <col width="100">
  84. <col width="100">
  85. <col width="100">
  86. <col>
  87. </colgroup>
  88. <thead>
  89. <tr class="thead">
  90. <th>{$Think.lang.ds_order_sn}</th>
  91. <th>{$Think.lang.ds_store_name}</th>
  92. <th>{$Think.lang.ds_buyer_name}</th>
  93. <th class="align-center">{$Think.lang.order_time}</th>
  94. <th class="align-center">{$Think.lang.order_total_price}</th>
  95. <th class="align-center">{$Think.lang.ds_payment_code}</th>
  96. <th class="align-center">{$Think.lang.order_state}</th>
  97. <th class="align-center">{$Think.lang.ds_handle}</th>
  98. </tr>
  99. </thead>
  100. <tbody>
  101. {notempty name="order_list"}
  102. {foreach name="order_list" item="order"}
  103. <tr class="hover">
  104. <td>{$order.order_sn}</td>
  105. <td>{$order.store_name}</td>
  106. <td>{$order.buyer_name}</td>
  107. <td class="nowrap align-center">{$order.add_time|date="Y-m-d H:i:s"}</td>
  108. <td class="align-center">{$order.order_amount}</td>
  109. <td class="align-center">{:get_order_payment_name($order['payment_code'])}</td>
  110. <td class="align-center">{$order.state_desc|raw}</td>
  111. <td class="w144 align-center">
  112. <a href="javascript:dsLayerOpen('{:url('Vrorder/show_order',['order_id'=>$order.order_id])}','{$Think.lang.ds_view}-{$order.order_sn}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
  113. <!-- 取消订单 -->
  114. {if $order.if_cancel}
  115. <a href="javascript:dsLayerConfirm('{:url('Vrorder/change_state',['state_type'=>'cancel','order_id'=>$order.order_id])}','{$Think.lang.order_confirm_cancel}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.order_change_cancel}</a>
  116. {/if}
  117. <!-- 收款 -->
  118. {if $order.if_system_receive_pay}
  119. <a href="javascript:dsLayerOpen('{:url('Vrorder/change_state',['state_type'=>'receive_pay','order_id'=>$order.order_id])}','{$Think.lang.order_change_received}-{$order.order_sn}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.order_change_received}</a>
  120. {/if}
  121. </td>
  122. </tr>
  123. {/foreach}
  124. {else /}
  125. <tr class="no_data">
  126. <td colspan="15">{$Think.lang.ds_no_record}</td>
  127. </tr>
  128. {/notempty}
  129. </tbody>
  130. </table>
  131. {$show_page|raw}
  132. </div>
  133. <script type="text/javascript">
  134. $(function () {
  135. $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
  136. $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
  137. });
  138. </script>