index.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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_order}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.ds_order_sn}</dt>
  16. <dd><input type="text" class="text w150" name="order_sn" value="{$Request.param.order_sn}"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.ds_store_name}</dt>
  20. <dd><input type="text" class="text w150" name="store_name" value="{$Request.param.store_name}"></dd>
  21. </dl>
  22. <dl>
  23. <dt>{$Think.lang.order_state}</dt>
  24. <dd>
  25. <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_pay|raw}</option>
  29. <option value="30" {if condition="$Request.param.order_state eq '30'"}selected{/if}>{$Think.lang.order_state_send|raw}</option>
  30. <option value="40" {if condition="$Request.param.order_state eq '40'"}selected{/if}>{$Think.lang.order_state_success|raw}</option>
  31. <option value="0" {if condition="$Request.param.order_state eq '0'"}selected{/if}>{$Think.lang.order_state_cancel|raw}</option>
  32. </select>
  33. </dd>
  34. </dl>
  35. <dl>
  36. <dt>{$Think.lang.order_time_from}</dt>
  37. <dd>
  38. <input type="text" class="txt date" name="query_start_time" id="query_start_time" value="{$Request.param.query_start_time}">
  39. &nbsp;–&nbsp;
  40. <input id="query_end_time" class="txt date" type="text" name="query_end_time" value="{$Request.param.query_end_time}">
  41. </dd>
  42. </dl>
  43. <dl>
  44. <dt>{$Think.lang.ds_buyer_name}</dt>
  45. <dd>
  46. <input type="text" class="text w80" name="buyer_name" value="{$Request.param.buyer_name}">
  47. </dd>
  48. <dd>
  49. <select name="payment_code">
  50. <option value="">{$Think.lang.ds_please_choose}</option>
  51. {foreach $payment_list as $val}
  52. <option {if condition="$Request.param.payment_code eq $val.payment_code"}selected{/if} value="{$val.payment_code}">{$val.payment_name}</option>
  53. {/foreach}
  54. </select>
  55. </dd>
  56. </dl>
  57. <div class="btn_group">
  58. <input type="submit" class="btn" value="{$Think.lang.ds_search}">
  59. {if $filtered}
  60. <a href="{:url('Order/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('Order/export_step1')}')"><span>{$Think.lang.ds_export}Excel</span></a>
  63. </div>
  64. </div>
  65. </form>
  66. <table class="ds-default-table">
  67. <thead>
  68. <tr>
  69. <th>{$Think.lang.ds_order_sn}</th>
  70. <th>{$Think.lang.ds_store_name}</th>
  71. <th>{$Think.lang.ds_buyer_name}</th>
  72. <th>{$Think.lang.order_time}</th>
  73. <th>{$Think.lang.order_total_price}</th>
  74. <th>{$Think.lang.ds_payment_code}</th>
  75. <th>{$Think.lang.order_state}</th>
  76. <th>{$Think.lang.ds_handle}</th>
  77. </tr>
  78. </thead>
  79. {empty name="order_group_list"}
  80. <tbody>
  81. <tr class="no_data">
  82. <td colspan="20">{$Think.lang.no_record}</td>
  83. </tr>
  84. </tbody>
  85. {else /}
  86. <tbody>
  87. {foreach name="order_group_list" item="order_list" key="pay_sn"}
  88. {if condition="$order_list.pay_amount>0"}
  89. <tr>
  90. <td colspan="7">{$Think.lang.ds_order_amount}{$Think.lang.ds_colon}{$Think.lang.currency}{$order_list.pay_amount}</td>
  91. <td><a href="javascript:dsLayerOpen('{:url('Order/change_state',['state_type'=>'receive_pay','pay_sn'=>$pay_sn])}','{$Think.lang.ds_order}-{$pay_sn}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.order_change_received}</a></td>
  92. </tr>
  93. {/if}
  94. {foreach name="order_list.order_list" item="order"}
  95. <tr>
  96. <td>{$order.order_sn}</td>
  97. <td>{$order.store_name}</td>
  98. <td>{$order.buyer_name}</td>
  99. <td>{$order.add_time|date="Y-m-d H:i:s"}</td>
  100. <td>{$order.order_amount}</td>
  101. <td>{:get_order_payment_name($order['payment_code'])}</td>
  102. <td>{:get_order_state($order)}</td>
  103. <td>
  104. <a href="javascript:dsLayerOpen('{:url('Order/show_order',['order_id'=>$order.order_id])}','{$Think.lang.ds_view}{$Think.lang.ds_order}-{$order.order_sn}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
  105. {if condition="$order.if_cancel"}
  106. <a href="javascript:dsLayerConfirm('{:url('Order/change_state',['state_type'=>'cancel','order_id'=>$order.order_id])}','{$Think.lang.order_confirm_cancel}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.order_change_cancel}</a>
  107. {/if}
  108. </td>
  109. </tr>
  110. {/foreach}
  111. {/foreach}
  112. </tbody>
  113. {/empty}
  114. </table>
  115. {$show_page|raw}
  116. </div>
  117. <script type="text/javascript">
  118. $(function(){
  119. $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
  120. $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
  121. });
  122. </script>