index.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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.ds_promotion_booth}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch" id="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.ds_goodsclass}</dt>
  16. <dd id="searchgc_td"></dd>
  17. <input type="hidden" id="choose_gcid" name="choose_gcid" value="0"/>
  18. </dl>
  19. <div class="btn_group">
  20. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  21. <a href="{:url('Promotionbooth/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  22. </div>
  23. </div>
  24. </form>
  25. <div class="explanation" id="explanation">
  26. <div class="title" id="checkZoom">
  27. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  28. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  29. </div>
  30. <ul>
  31. <li>{$Think.lang.booth_index_help1}</li>
  32. </ul>
  33. </div>
  34. <form method='post' id="form_goods" action="{:url('Promotionbooth/del_goods')}">
  35. <table class="ds-default-table">
  36. <thead>
  37. <tr class="thead">
  38. <th class="w24"></th>
  39. <th colspan="2">{$Think.lang.ds_goods_name}</th>
  40. <th class="align-center w72">{$Think.lang.ds_goodsclass}</th>
  41. <th class="align-center w72">{$Think.lang.ds_goods_price}</th>
  42. <th class="w150 align-center">{$Think.lang.ds_handle} </th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {notempty name="goods_list"}
  47. {foreach name="goods_list" item="v"}
  48. <tr class="hover edit" id="ds_row_{$v.goods_id}">
  49. <td><input type="checkbox" name="goods_id[]" value="{$v.goods_id}" class="checkitem"></td>
  50. <td class="w60 picture"><div class="size-56x56"><span class="thumb size-56x56"><i></i><img src="{:goods_thumb($v,240)}" onload="javascript:ResizeImage(this,56,56);"/></span></div></td>
  51. <td class="goods-name w270"><p><span>{$v.goods_name}</span></p>
  52. <p class="store">{$Think.lang.ds_store_name}:{$v.store_name}
  53. {present name="flippedOwnShopIds[$v.store_id]"}
  54. <span class="ownshop">[{$Think.lang.ds_ownshop}]</span>
  55. {/present}
  56. </p>
  57. </td>
  58. <td class="align-center">{$gc_list[$v['gc_id']]['gc_name']|default=''}</td>
  59. <td class="align-center">{$Think.lang.currency}{$v.goods_price}</td>
  60. <td class="align-center">
  61. <a href="{:url('home/Goods/index',['goods_id'=>$v.goods_id])}" target="_blank" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
  62. <a href="javascript:dsLayerConfirm('{:url('Promotionbooth/del_goods',['goods_id'=>$v.goods_id])}','{$Think.lang.ds_ensure_del}',{$v.goods_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  63. </td>
  64. </tr>
  65. {/foreach}
  66. {else}
  67. <tr class="no_data">
  68. <td colspan="15">{$Think.lang.ds_no_record}</td>
  69. </tr>
  70. {/notempty}
  71. </tbody>
  72. </table>
  73. {$show_page|raw}
  74. </form>
  75. </div>
  76. <script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
  77. <script type="text/javascript">
  78. $(function(){
  79. init_gcselect({$gc_choose_json|raw},{$gc_json|raw});
  80. });
  81. </script>