activity_apply.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <form method="GET">
  4. <input type="hidden" value="{$Request.param.activity_id}" name="activity_id"/>
  5. <table class="dssc-default-table" >
  6. <thead>
  7. <tr>
  8. <th class="w50"></th>
  9. <th class="w300 tl">{$Think.lang.store_activity_goods_name}</th>
  10. <th>{$Think.lang.activity_apply_price}</th>
  11. <th class="w120">{$Think.lang.store_activity_confirmstatus}</th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. {notempty name="activitydetail_list"}
  16. {foreach name="activitydetail_list" item="v"}
  17. <tr class="bd-line">
  18. <td><div class="pic-thumb"><a href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank"><img src="{:goods_cthumb($v.goods_image,240,session('store_id'))}"></a></div></td>
  19. <td class="tl"><dl class="goods-name">
  20. <dt><a target="_blank" href="{:url('Goods/index',['goods_id'=>$v.goods_id])}">{$v.goods_name}</a></dt>
  21. </dl></td>
  22. <td>¥{$v.goods_price}</td>
  23. <td>{if $v.activitydetail_state == '1'}
  24. {$Think.lang.store_activity_pass}
  25. {else /}
  26. {if $v.activitydetail_state == '0' || $v.activitydetail_state == '3'}
  27. {$Think.lang.store_activity_audit}
  28. {/if}
  29. {/if}
  30. </td>
  31. </tr>
  32. {/foreach}
  33. {else /}
  34. <tr>
  35. <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
  36. </tr>
  37. {/notempty}
  38. </tbody>
  39. <tfoot>
  40. <tr>
  41. <td colspan="20"></td>
  42. </tr>
  43. </tfoot>
  44. </table>
  45. </form>
  46. <div class="div-goods-select">
  47. <form method="GET">
  48. <input type="hidden" name="activity_id" value="{$Request.get.activity_id}"/>
  49. <table class="search-form">
  50. <tr>
  51. <th class="w250"><strong>{$Think.lang.choose_products_event}</strong></th>
  52. <td class="w160"><input type="text" class="text w150" name="name" value="{$search.name}" placeholder="{$Think.lang.search_product_names}"/></td>
  53. <td class="w70 tc">
  54. <input type="submit" class="submit" value="{$Think.lang.store_activity_search}"/>
  55. </td>
  56. <td></td>
  57. </tr>
  58. </table>
  59. </form>
  60. <form method="POST" id="apply_form" action="{:url('Selleractivity/activity_apply_save')}">
  61. <input type="hidden" name="activity_id" value="{$Request.param.activity_id}"/>
  62. {notempty name="goods_list"}
  63. <div class="search-result">
  64. <ul class="goods-list">
  65. {foreach name="goods_list" item="goods"}
  66. <li>
  67. <div class="goods-thumb"><a href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" target="_blank"><img alt="{$goods.goods_name}" title="{$goods.goods_name}" src="{:goods_cthumb($goods['goods_image'], 240, session('store_id'))}"/></a></div>
  68. <dl class="goods-info">
  69. <dt>
  70. <input type="checkbox" value="{$goods.goods_id}" class="vm" name="item_id[]"/>
  71. <label><a href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" target="_blank">{$goods.goods_name}</a></label>
  72. </dt>
  73. <dd>{$Think.lang.sales_price}:¥{$goods.goods_price}</dd>
  74. </dl>
  75. </li>
  76. {/foreach}
  77. <div class="clear"></div>
  78. </ul>
  79. </div>
  80. <div class="pagination">{$show_page|raw}</div>
  81. {else /}
  82. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div>
  83. {/notempty}
  84. {notempty name="goods_list"}
  85. <div class="bottom tc p10">
  86. <input id="submit_button" type="submit" value="{$Think.lang.store_activity_join_now}" class="submit">
  87. </div>
  88. {/notempty}
  89. </form>
  90. </div>
  91. <script>
  92. $(document).ready(function(){
  93. $('#apply_form').validate({
  94. submitHandler:function(form){
  95. ds_ajaxpost('apply_form','url',"{:url('Selleractivity/index')}");
  96. },
  97. });
  98. });
  99. </script>
  100. {/block}