index.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. {if $isPlatformStore}
  4. <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionbundling/bundling_add')}" ><i class="iconfont">&#xe6db;</i>{$Think.lang.bundling_add}</a>
  5. {else /}
  6. <?php if (config('ds_config.promotion_bundling_price')!=0 && empty($bundling_quota)) { ?>
  7. <a href="javascript:void(0)" class="dssc-btn dssc-btn-acidblue" onclick="window.location = '{:url('Sellerpromotionbundling/bundling_quota_add')}';" title="{$Think.lang.bundling_quota_add}"><i class="iconfont">&#xe6a1;</i>{$Think.lang.bundling_quota_add}</a>
  8. <?php } else if((isset($bundling_surplus) && intval($bundling_surplus) != 0 ) || config('ds_config.promotion_bundling_sum') == 0) { ?>
  9. {if config('ds_config.promotion_bundling_price')==0 || $bundling_quota.blquota_state == 1}
  10. <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionbundling/bundling_add')}" style="right:100px"><i class="iconfont">&#xe6db;</i>{$Think.lang.bundling_add}</a>
  11. {/if}
  12. {if config('ds_config.promotion_bundling_price')!=0}
  13. <a class="dssc-btn dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionbundling/bundling_renew')}"><i class="iconfont">&#xe6a1;</i>{$Think.lang.set_renewal}</a>
  14. {/if}
  15. <?php } else if(config('ds_config.promotion_bundling_price')==0){?>
  16. <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionbundling/bundling_add')}" style="right:100px"><i class="iconfont">&#xe6db;</i>{$Think.lang.bundling_add}</a>
  17. <?php } ?>
  18. {/if}
  19. {/block}
  20. {block name="seller_main"}
  21. {if $isPlatformStore || config('ds_config.promotion_bundling_price')==0}
  22. {if config('ds_config.promotion_bundling_sum') != 0}
  23. <div class="alert alert-block mt10">
  24. <ul>
  25. <li>{$Think.lang.notice_package_renewal1}{$Think.config.ds_config.promotion_bundling_sum}{$Think.lang.notice_package_renewal2}</li>
  26. </ul>
  27. </div>
  28. {/if}
  29. {else}
  30. <!-- 有可用套餐,发布活动 -->
  31. <div class="alert alert-block mt10">
  32. {notempty name="bundling_quota"}
  33. <strong>{$Think.lang.notice_package_renewal3}{$Think.lang.ds_colon}</strong> <strong style=" color:#F00;">{$bundling_quota.blquota_endtime|date="Y-m-d H:i:s"}</strong>
  34. {else /}
  35. <strong>{$Think.lang.notice_package_renewal4}</strong>
  36. {/notempty}
  37. <ul>
  38. <li>{$Think.lang.notice_package_renewal5}</li>
  39. <li>2、<strong style="color: red">{$Think.lang.notice_package_renewal6}</strong>。</li>
  40. {if config('ds_config.promotion_bundling_sum') != 0}
  41. <li>{$Think.lang.notice_package_renewal7}{$Think.config.ds_config.promotion_bundling_sum}{$Think.lang.notice_package_renewal2}</li>
  42. {/if}
  43. </ul>
  44. </div>
  45. {/if}
  46. <form method="get">
  47. <table class="search-form">
  48. <tr>
  49. <td>&nbsp;</td>
  50. <th>{$Think.lang.bundling_status}</th>
  51. <td class="w100"><select name="state">
  52. <option value='all'>{$Think.lang.bundling_status_all}</option>
  53. <option value='0' {if $Request.param.state !='' && $Request.param.state == 0}selected="selected"{/if}>{$Think.lang.bundling_status_0}</option>
  54. <option value='1' {if $Request.param.state !='' && $Request.param.state == 1}selected="selected"{/if}>{$Think.lang.bundling_status_1}</option>
  55. </select></td>
  56. <th class="w110">{$Think.lang.bundling_name}</th>
  57. <td class="w160"><input type="text" class="text w150" name="bundling_name" value="{$Request.get.bundling_name}"/></td>
  58. <td class="w70 tc">
  59. <input type="submit" class="submit" value="{$Think.lang.ds_search}" />
  60. </td>
  61. </tr>
  62. </table>
  63. </form>
  64. {empty name="bundling_list"}
  65. <!-- 没有添加活动 -->
  66. <table class="dssc-default-table dssc-promotion-buy">
  67. <tbody>
  68. <tr>
  69. <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. {else /}
  74. <table class="dssc-default-table">
  75. <thead>
  76. <tr>
  77. <th class="w10"></th>
  78. <th class="w50"></th>
  79. <th class="tl">{$Think.lang.bundling_name}</th>
  80. <th class="w180">{$Think.lang.bundling_add_price}</th>
  81. <th class="w180">{$Think.lang.bundling_list_goods_count}</th>
  82. <th class="w90">{$Think.lang.ds_state}</th>
  83. <th class="w110">{$Think.lang.ds_handle}</th>
  84. </tr>
  85. <tr>
  86. <td class="w30 tc"><input type="checkbox" id="all" class="checkall"/></td>
  87. <td colspan="20"><label for="all" >{$Think.lang.ds_select_all}</label>
  88. <a href="javascript:void(0);" class="dssc-btn-mini" ds_type="batchbutton" uri="{:url('Sellerpromotionbundling/drop_bundling')}" name="bundling_id" confirm="{$Think.lang.ds_ensure_del}"><i class="iconfont">&#xe725;</i>{$Think.lang.ds_del}</a></td>
  89. </tr>
  90. </thead>
  91. {foreach name="bundling_list" item="val"}
  92. <tbody>
  93. <tr class="bd-line">
  94. <td><input type="checkbox" class="checkitem tc" value="{$val.bl_id}"/></td>
  95. <td><div class="pic-thumb"><a href="{if $val.goods_id !=''}{:url('Goods/index',['goods_id'=>$val.goods_id])}{else}javascript:void(0){/if}" {if $val.goods_id !=''}target='_blank'{else /}target='black'{/if}><img src="{$val.img}"/></a></div></td>
  96. <td class="tl"><dl class="goods-name">
  97. <dt><a href="{if $val.goods_id !=''}{:url('Goods/index',['goods_id'=>$val.goods_id])}"target="_blank" {else/}javascript:void(0);"{/if}>{$val.bl_name}</a></dt>
  98. </dl></td>
  99. <td class="goods-price">{$val.bl_discount_price}</td>
  100. <td class="">{$val.count}</td>
  101. <td>{$state_array[$val.bl_state]}</td>
  102. <td class="dscs-table-handle"><span><a href="{:url('Sellerpromotionbundling/bundling_add',['bundling_id'=>$val.bl_id])}" class="btn-blue"><i class="iconfont">&#xe734;</i>
  103. <p>{$Think.lang.bundling_edit}</p>
  104. </a></span> <span><a class="btn-red" href='javascript:void(0);' onclick="ds_ajaxget_confirm('{:url('Sellerpromotionbundling/drop_bundling',['bundling_id'=>$val.bl_id])}','{$Think.lang.ds_ensure_del}');"><i class="iconfont">&#xe725;</i>
  105. <p>{$Think.lang.ds_del}</p>
  106. </a></span></td>
  107. </tr>
  108. </tbody>
  109. {/foreach}
  110. <tfoot>
  111. <tr>
  112. <th class="tc"><input type="checkbox" id="all" class="checkall"/></th>
  113. <th colspan="20"><label for="all" >{$Think.lang.ds_select_all}</label>
  114. <a href="javascript:void(0);" class="dssc-btn-mini" ds_type="batchbutton" uri="{:url('Sellerpromotionbundling/drop_bundling')}" name="bundling_id" confirm="{$Think.lang.ds_ensure_del}"><i class="iconfont">&#xe725;</i>{$Think.lang.ds_del}</a></th>
  115. </tr>
  116. <tr>
  117. <td colspan="20"><div class="pagination">{$show_page|raw}</div></td>
  118. </tr>
  119. </tfoot>
  120. </table>
  121. {/empty}
  122. {/block}