index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. {if $isPlatformStore || config('ds_config.promotion_mansong_price')==0}
  4. <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionmansong/mansong_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.mansong_add}</a>
  5. {else}
  6. {notempty name="current_mansong_quota"}
  7. <a class="dssc-btn dssc-btn-green" style="right:100px" href="{:url('Sellerpromotionmansong/mansong_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.mansong_add}</a>
  8. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionmansong/mansong_quota_add')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.set_renewal}</a>
  9. {else /}
  10. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionmansong/mansong_quota_add')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.promotion_buy_product}</a>
  11. {/notempty}
  12. {/if}
  13. {/block}
  14. {block name="seller_main"}
  15. {if $isPlatformStore || config('ds_config.promotion_mansong_price')==0}
  16. <div class="alert alert-block mt10">
  17. <ul>
  18. <li>1、{$Think.lang.mansong_explain1}</li>
  19. </ul>
  20. </div>
  21. {else /}
  22. <div class="alert alert-block mt10">
  23. {notempty name="current_mansong_quota"}
  24. <strong>{$Think.lang.set_expiration_time}{$Think.lang.ds_colon}</strong><strong style="color: #F00;">{$current_mansong_quota.mansongquota_endtime|date="Y-m-d H:i:s"}</strong>
  25. {else /}
  26. <strong>{$Think.lang.no_packages_currently_available}</strong>
  27. {/notempty}
  28. <ul>
  29. <li>1、{$Think.lang.mansong_explain1}</li>
  30. <li>2、<strong style="color: red">{$Think.lang.notice_package_renewal6}</strong>。</li>
  31. </ul>
  32. </div>
  33. {/if}
  34. <form method="get">
  35. <table class="search-form">
  36. <tr>
  37. <td>&nbsp;</td>
  38. <th>{$Think.lang.mansong_status}</th>
  39. <td class="w100"><select name="state">
  40. {notempty name="mansong_state_array"}
  41. {foreach name="mansong_state_array" item="val"}
  42. <option value="{$key}" {if $key == $Request.get.state}selected{/if}>{$val}</option>
  43. {/foreach}
  44. {/notempty}
  45. </select></td>
  46. <th class="w110">{$Think.lang.mansong_name}</th>
  47. <td class="w160"><input type="text" class="text w150" name="mansong_name" value="{$Request.get.mansong_name}"/></td>
  48. <td class="w70 tc">
  49. <input type="submit" class="submit" value="{$Think.lang.ds_search}" />
  50. </td>
  51. </tr>
  52. </table>
  53. </form>
  54. <table class="dssc-default-table">
  55. {notempty name="mansong_list"}
  56. <thead>
  57. <tr>
  58. <th class="w30"></th>
  59. <th>{$Think.lang.mansong_name}</th>
  60. <th class="w200">{$Think.lang.start_time}</th>
  61. <th class="w200">{$Think.lang.end_time}</th>
  62. <th class="w150">{$Think.lang.ds_state}</th>
  63. <th class="w150">{$Think.lang.ds_handle}</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. {foreach name="mansong_list" item="val"}
  68. <tr class="bd-line">
  69. <td></td>
  70. <td ><dl>
  71. <dt>{$val.mansong_name}</dt>
  72. </dl></td>
  73. <td class="goods-time">{$val.mansong_starttime|date="Y-m-d H:i"}</td>
  74. <td class="goods-time">{$val.mansong_endtime|date="Y-m-d H:i"}</td>
  75. <td>{$val.mansong_state_text}</td>
  76. <td class="dscs-table-handle"><span><a href="{:url('Sellerpromotionmansong/mansong_detail',['mansong_id'=>$val.mansong_id])}" class="btn-blue"><i class="iconfont">&#xe600;</i>
  77. <p>{$Think.lang.ds_detail}</p>
  78. </a></span> <span><a dstype="btn_mansong_del" data-mansong-id="{$val.mansong_id}" href="javascript:return void(0)" class="btn-red"><i class="iconfont">&#xe725;</i>
  79. <p>{$Think.lang.ds_del}</p>
  80. </a></span></td>
  81. </tr>
  82. {/foreach}
  83. {else /}
  84. <tr>
  85. <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
  86. </tr>
  87. {/notempty}
  88. </tbody>
  89. {notempty name="mansong_list"}
  90. <tfoot>
  91. <tr>
  92. <td colspan="20"><div class="pagination">{$show_page|raw}</div></td>
  93. </tr>
  94. </tfoot>
  95. {/notempty}
  96. </table>
  97. <form id="submit_form" action="" method="post" >
  98. <input type="hidden" id="mansong_id" name="mansong_id" value="">
  99. </form>
  100. <script type="text/javascript">
  101. $(document).ready(function () {
  102. $('[dstype="btn_mansong_del"]').on('click', function () {
  103. var action = "{:url('Sellerpromotionmansong/mansong_del')}";
  104. var mansong_id = $(this).attr('data-mansong-id');
  105. layer.confirm('{$Think.lang.ds_ensure_cancel}', {
  106. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  107. title: false,
  108. }, function () {
  109. $('#submit_form').attr('action', action);
  110. $('#mansong_id').val(mansong_id);
  111. ds_ajaxpost('submit_form', 'url', "{:url('Sellerpromotionmansong/index')}");
  112. });
  113. });
  114. });
  115. </script>
  116. {/block}