refund_all.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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.refund_manage}</h3>
  7. </div>
  8. {include file="public/admin_items" /}
  9. </div>
  10. </div>
  11. <form method="get">
  12. <div class="ds-search-form">
  13. <dl>
  14. <dt>
  15. <select name="type">
  16. <option value="order_sn" {if condition="$Request.param.type eq 'order_sn'"}selected{/if}>{$Think.lang.ds_order_sn}</option>
  17. <option value="refund_sn" {if condition="$Request.param.type eq 'refund_sn'"}selected{/if}>{$Think.lang.ds_refund_sn}</option>
  18. <option value="store_name" {if condition="$Request.param.type eq 'store_name'"}selected{/if}>{$Think.lang.ds_store_name}</option>
  19. <option value="goods_name" {if condition="$Request.param.type eq 'goods_name'"}selected{/if}>{$Think.lang.ds_goods_name}</option>
  20. <option value="buyer_name" {if condition="$Request.param.type eq 'buyer_name'"}selected{/if}>{$Think.lang.ds_buyer_name}</option>
  21. </select>
  22. </dt>
  23. <dd><input type="text" class="text" name="key" value="{$Request.param.key}" /></dd>
  24. </dl>
  25. <dl>
  26. <dt>{$Think.lang.refund_buyer_add_time}</dt>
  27. <dd>
  28. <input class="txt date" type="text" value="{$Request.param.add_time_from}" id="add_time_from" name="add_time_from">
  29. ~
  30. <input class="txt date" type="text" value="{$Request.param.add_time_to}" id="add_time_to" name="add_time_to"/>
  31. </dd>
  32. </dl>
  33. <div class="btn_group">
  34. <input type="submit" class="btn" value="{$Think.lang.ds_search}">
  35. <a href="{:url('Refund/refund_all')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  36. <a class="btn" href="javascript:export_xls('{:url('Refund/export_step1')}')"><span>{$Think.lang.ds_export}Excel</span></a>
  37. </div>
  38. </div>
  39. </form>
  40. <table class="ds-default-table">
  41. <thead>
  42. <tr class="thead">
  43. <th>{$Think.lang.ds_order_sn}</th>
  44. <th>{$Think.lang.ds_refund_sn}</th>
  45. <th>{$Think.lang.ds_store_name}</th>
  46. <th>{$Think.lang.ds_goods_name}</th>
  47. <th>{$Think.lang.ds_buyer_name}</th>
  48. <th class="align-center">{$Think.lang.refund_buyer_add_time}</th>
  49. <th class="align-center">{$Think.lang.refund_order_refund}</th>
  50. <th class="align-center">{$Think.lang.refund_seller_state}</th>
  51. <th class="align-center">{$Think.lang.refund_admin_state}</th>
  52. <th class="align-center">{$Think.lang.ds_handle}</th>
  53. </tr>
  54. </thead>
  55. {notempty name="refund_list"}
  56. <tbody>
  57. {foreach name="refund_list" item="val" key="key" }
  58. <tr class="bd-line" >
  59. <td>{$val.order_sn}</td>
  60. <td>{$val.refund_sn}</td>
  61. <td>{$val.store_name}</td>
  62. <td>{$val.goods_name}</td>
  63. <td>{$val.buyer_name}</td>
  64. <td class="align-center">{$val.add_time|date="Y-m-d H:i:s"}</td>
  65. <td class="align-center">{$val.refund_amount}</td>
  66. <td class="align-center"><?php echo $state_array[$val['seller_state']];?></td>
  67. <td class="align-center"><?php echo $val['seller_state']==2 ? $admin_array[$val['refund_state']]:lang('refund_none'); ?></td>
  68. <td class="align-center">
  69. <a href="javascript:dsLayerOpen('{:url('Refund/view',['refund_id'=>$val.refund_id])}','{$Think.lang.ds_view}-{$val.order_sn}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
  70. </td>
  71. </tr>
  72. {/foreach}
  73. </tbody>
  74. {else/}
  75. <tbody>
  76. <tr class="no_data">
  77. <td colspan="20">{$Think.lang.no_record}</td>
  78. </tr>
  79. </tbody>
  80. {/notempty}
  81. </table>
  82. {$show_page|raw}
  83. </div>
  84. <script type="text/javascript">
  85. $(function() {
  86. $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
  87. $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
  88. });
  89. </script>