index.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.live_goods}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="fixed-empty"></div>
  13. <form method="get" name="formSearch" id="formSearch">
  14. <div class="ds-search-form">
  15. <dl>
  16. <dt>{$Think.lang.ds_goods_name}</dt>
  17. <dd><input type="text" value="{$Request.get.goods_name|default=''}" name="goods_name" id="goods_name" class="txt"></dd>
  18. </dl>
  19. <div class="btn_group">
  20. <a href="javascript:void(0);" id="dssubmit" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  21. <a href="{:url('LiveGoods/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  22. </div>
  23. </div>
  24. </form>
  25. <table class="ds-default-table">
  26. <thead>
  27. <tr class="thead">
  28. <th class="w80"></th>
  29. <th class="">{$Think.lang.ds_goods_name}</th>
  30. <th class="w180">{$Think.lang.ds_store_name}</th>
  31. <th class="w80">{$Think.lang.ds_goods_price}</th>
  32. <th class="w80">{$Think.lang.ds_state}</th>
  33. <th class="w100">{$Think.lang.apply_switch}</th>
  34. <th class="w100">{$Think.lang.ds_handle}</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. {notempty name="goods_list"}
  39. {foreach name="goods_list" item="val"}
  40. <tr class="hover edit">
  41. <td><div class="pic-thumb"><img src="{$val.goods_image_url}" onload="javascript:ResizeImage(this, 56, 56);"/></div></td>
  42. <td>{$val.goods_name}</td>
  43. <td>{$val.store_name}</td>
  44. <td>{$Think.lang.currency}{$val.goods_price}</td>
  45. <td>{if $val.minipro_live_goods_info && ($val.minipro_live_goods_info.minipro_live_goods_state==2 || $val.minipro_live_goods_info.minipro_live_goods_state==3)}{if $val.minipro_live_goods_info.minipro_live_goods_state==2}{$Think.lang.goods_apply_pass}{/if}{if $val.minipro_live_goods_info.minipro_live_goods_state==3}{$Think.lang.goods_apply_reject}{/if}{else}{$Think.lang.goods_apply_wait}{/if}</td>
  46. <td>{if $val.minipro_live_goods_info && $val.minipro_live_goods_info.minipro_live_goods_close}{$Think.lang.ds_close}{else}{$Think.lang.ds_open}{/if}</td>
  47. <td>
  48. {if $val.minipro_live_goods_info && $val.minipro_live_goods_info.minipro_live_goods_close}
  49. <a href="javascript:dsLayerConfirm('{:url('LiveGoods/open',['goods_commonid'=>$val.goods_commonid])}','{$Think.lang.ensure_open}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_open}</a>
  50. {else}
  51. <a href="javascript:dsLayerConfirm('{:url('LiveGoods/close',['goods_commonid'=>$val.goods_commonid])}','{$Think.lang.ensure_close}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_close}</a>
  52. {/if}
  53. </td>
  54. </tr>
  55. <tr style="display:none;">
  56. <td colspan="8"><div class="dssc-goods-sku ps-container"></div></td>
  57. </tr>
  58. {/foreach}
  59. {else /}
  60. <tr class="no_data">
  61. <td colspan="15">{$Think.lang.ds_no_record}</td>
  62. </tr>
  63. {/notempty}
  64. </tbody>
  65. </table>
  66. {$show_page|raw}
  67. </div>
  68. <script>
  69. $(function () {
  70. $('#dssubmit').click(function () {
  71. $('#formSearch').submit();
  72. });
  73. });
  74. </script>
  75. {include file="public/footer" /}