index.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. {if isset($isPlatformStore) || config('ds_config.promotion_voucher_price')==0}
  4. <a class="dssc-btn dssc-btn-green" href="{:url('Sellervoucher/templateadd')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.voucher_templateadd}</a>
  5. {else /}
  6. {notempty name="current_quota"}
  7. <a class="dssc-btn dssc-btn-green" style="right:100px" href="{:url('Sellervoucher/templateadd')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.voucher_templateadd}</a>
  8. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellervoucher/quotaadd')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.set_meal_renewal}</a>
  9. {else /}
  10. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellervoucher/quotaadd')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.voucher_applyadd}</a>
  11. {/notempty}
  12. {/if}
  13. {/block}
  14. {block name="seller_main"}
  15. {if isset($isPlatformStore) || config('ds_config.promotion_voucher_price')==0}
  16. <div class="alert alert-block mt10 mb10">
  17. <ul>
  18. <li>{$Think.lang.voucher_template_list_tip1}</li>
  19. <li>{$Think.lang.voucher_template_list_tip2}</li>
  20. </ul>
  21. </div>
  22. {else /}
  23. <div class="alert alert-block mt10 mb10">
  24. {notempty name="current_quota"}
  25. <strong>{$Think.lang.set_expiration_time}{$Think.lang.ds_colon}</strong><strong style="color:#F00;">{$current_quota.voucherquota_endtime|date="Y-m-d H:i:s"}</strong>
  26. {else}
  27. <strong>{$Think.lang.please_buy_package_first}</strong>
  28. {/notempty}
  29. <ul>
  30. <li>{$Think.lang.voucher_template_list_tip1}</li>
  31. <li>{$Think.lang.voucher_template_list_tip2}</li>
  32. <li>3、<strong style="color: red">{$Think.lang.deduction_settlement_payment_days}</strong>。</li>
  33. </ul>
  34. </div>
  35. {/if}
  36. <form method="get">
  37. <table class="search-form">
  38. <tr>
  39. <td>&nbsp;</td>
  40. <th>{$Think.lang.voucher_template_enddate}</th>
  41. <td class="w240">
  42. <input type="text" class="text w70" readonly="readonly" value="{$Request.get.txt_startdate}" id="txt_startdate" name="txt_startdate"/><label class="add-on">
  43. <i class="iconfont">&#xe8d6;</i>
  44. </label>
  45. &#8211;
  46. <input type="text" class="text w70" readonly="readonly" value="{$Request.get.txt_enddate}" id="txt_enddate" name="txt_enddate"/><label class="add-on">
  47. <i class="iconfont">&#xe8d6;</i>
  48. </label>
  49. </td>
  50. <th>{$Think.lang.ds_status}</th>
  51. <td class="w120"><select class="w80" name="select_state">
  52. <option value="0" {if $Request.get.select_state == '0'}selected{/if}>{$Think.lang.ds_please_choose}</option>
  53. {notempty name="templatestate_arr"}
  54. {foreach name="templatestate_arr" item="v"}
  55. <option value="{$v.0}" {if $Request.get.select_state == $v.0}selected{/if}>{$v.1}</option>
  56. {/foreach}
  57. {/notempty}
  58. </select></td><th class="w60">{$Think.lang.voucher_template_title}</th>
  59. <td class="w160"><input type="text" class="text w150" value="" id="txt_keyword" name="txt_keyword" /></td>
  60. <td class="tc w70">
  61. <input type="submit" class="submit" value="{$Think.lang.ds_search}" />
  62. </td>
  63. </table>
  64. </form>
  65. <table class="dssc-default-table">
  66. <thead>
  67. <tr>
  68. <th class="w50"></th>
  69. <th class="tl">{$Think.lang.voucher_template_title}</th>
  70. <th class="w150">{$Think.lang.voucher_template_orderpricelimit}</th>
  71. <th class="w150">{$Think.lang.voucher_template_price}</th>
  72. <th class="w200">{$Think.lang.voucher_template_enddate}</th>
  73. <th class="w150">{$Think.lang.vouchertemplate_if_private}</th>
  74. <th class="w150">{$Think.lang.ds_status}</th>
  75. <th class="w150">{$Think.lang.ds_handle}</th>
  76. </tr>
  77. </thead>
  78. <tbody>
  79. {notempty name="vouchertemplate_list"}
  80. {foreach name="vouchertemplate_list" item="val"}
  81. <tr class="bd-line">
  82. <td><div class="pic-thumb"><img src="{$val.vouchertemplate_customimg}"/></div></td>
  83. <td class="tl">{$val.vouchertemplate_title}</td>
  84. <td>¥{$val.vouchertemplate_limit}</td>
  85. <td class="goods-price">¥{$val.vouchertemplate_price}</td>
  86. <td class="goods-time">{$val.vouchertemplate_startdate|date="Y-m-d"}~{:date('Y-m-d',$val.vouchertemplate_enddate)}</td>
  87. <td class="if_private">
  88. {if $val.vouchertemplate_if_private ==1}
  89. {$Think.lang.ds_yes}
  90. {else}
  91. {$Think.lang.ds_no}
  92. {/if}
  93. </td>
  94. <td>{if $val.vouchertemplate_state == $templatestate_arr.usable.0}{$templatestate_arr.usable.1}{/if}
  95. {if $val.vouchertemplate_state == $templatestate_arr.disabled.0}{$templatestate_arr.disabled.1}{/if}
  96. </td>
  97. <td class="dscs-table-handle">
  98. {if $val.vouchertemplate_if_private ==1}
  99. <span><a href="javascript:void(0)" class="btn-blue" ds_type="dialog" uri="{:url('Sellervoucher/view',['tid'=>$val.vouchertemplate_id])}" dialog_width="550""><i class="iconfont">&#xe67d;</i><p>{$Think.lang.ds_view}</p></a></span>
  100. {/if}
  101. {if $val.vouchertemplate_state == $templatestate_arr.usable.0 && !$val.vouchertemplate_giveout}
  102. <span>
  103. <a class="btn-blue" href="{:url('Sellervoucher/templateedit',['tid'=>$val.vouchertemplate_id])}">
  104. <i class="iconfont">&#xe731;</i><p>{$Think.lang.ds_edit}</p>
  105. </a>
  106. </span>
  107. {else}
  108. <span>
  109. <a class="btn-blue" href="{:url('Sellervoucher/templateinfo',['tid'=>$val.vouchertemplate_id])}"><i class="iconfont">&#xe600;</i>
  110. <p>{$Think.lang.ds_detail}</p>
  111. </a>
  112. </span>
  113. {/if}
  114. {if !$val.vouchertemplate_giveout}
  115. <span>
  116. <a class="btn-red" href="javascript:void(0)" onclick="ds_ajaxget_confirm('{:url('Sellervoucher/templatedel',['tid'=>$val.vouchertemplate_id])}','{$Think.lang.ds_ensure_del}');">
  117. <i class="iconfont">&#xe725;</i><p>{$Think.lang.ds_del}</p>
  118. </a>
  119. </span>
  120. {/if}
  121. </td>
  122. </tr>
  123. {/foreach}
  124. {else /}
  125. <tr>
  126. <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
  127. </tr>
  128. {/notempty}
  129. </tbody>
  130. <tfoot>
  131. {notempty name="vouchertemplate_list"}
  132. <tr>
  133. <td colspan="20"><div class="pagination">{$show_page|raw}</div></td>
  134. </tr>
  135. {/notempty}
  136. </tfoot>
  137. </table>
  138. <script type="text/javascript">
  139. $(document).ready(function(){
  140. $('#txt_startdate').datepicker({dateFormat: 'yy-mm-dd'});
  141. $('#txt_enddate').datepicker({dateFormat: 'yy-mm-dd'});
  142. });
  143. </script>
  144. {/block}