index.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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.flea}</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">
  14. <div class="ds-search-form">
  15. <dl>
  16. <dt><label for="search_goods_name"> {$Think.lang.flea_ldle_name}</label></dt>
  17. <dd><input type="text" value="{$Request.param.search_goods_name}" name="search_goods_name" id="search_goods_name" class="txt"></dd>
  18. </dl>
  19. <dl>
  20. <dt>{$Think.lang.flea_release_member}</dt>
  21. <dd><input type="text" value="{$Request.param.search_store_name}" name="search_store_name" class="queryInput" id="search_member_name"></dd>
  22. </dl>
  23. <dl>
  24. <dt>{$Think.lang.flea_class}</dt>
  25. <dd id="gcategory"><input type="hidden" id="cate_id" name="cate_id" value="" class="mls_id" />
  26. <input type="hidden" id="cate_name" name="cate_name" value="" class="mls_names" />
  27. <select class="querySelect">
  28. <option>{$Think.lang.ds_please_choose}...</option>
  29. {notempty name="goods_class"}
  30. {foreach name="goods_class" item="val"}
  31. <option value="{$val.fleaclass_id}"{if $Request.param.cate_id == $val.fleaclass_id} selected{/if}>{$val.fleaclass_name}</option>
  32. {/foreach}
  33. {/notempty}
  34. </select>
  35. </dd>
  36. </dl>
  37. <div class="btn_group">
  38. <a href="javascript:document.formSearch.submit();" class="btn" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  39. {if $filtered}
  40. <a href="{:url('Flea/flea')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  41. {/if}
  42. </div>
  43. </div>
  44. </form>
  45. <form method='post' id="form_goods">
  46. <input type="hidden" name="type" id="type" value="" />
  47. <table class="ds-default-table">
  48. <thead>
  49. <tr class="thead">
  50. <th width="25px"></th>
  51. <th colspan="2">{$Think.lang.flea_ldle_name}</th>
  52. <th>{$Think.lang.flea_release_member}</th>
  53. <th>{$Think.lang.flea_class}</th>
  54. <th class="align-center">{$Think.lang.flea_goods_click}</th>
  55. <th class="align-center">{$Think.lang.ds_handle}</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. {notempty name="goods_list"}
  60. {foreach name="goods_list" item="v"}
  61. <tr class="hover edit">
  62. <td class="w24"><input type="checkbox" name="del_id[]" value="{$v.goods_id}" class="checkitem"></td>
  63. <td class="w60 picture">
  64. <div class="size-56x56"><span class="thumb size-56x56"><img height="56" width="56" src="{notempty name='v.goods_image'}{$v.goods_image}{else /}{:goods_thumb()}{/notempty}" onload="javascript:ResizeImage(this,56,56);"/></span></div></td>
  65. <td class="goods-name w270"><p><span title="{$Think.lang.ds_editable}" class="editable-tarea tooltip" required="1" ajax_branch_textarea="goods_name" fieldid="{$v.goods_id}" fieldname="goods_name" ds_type="inline_edit_textarea">{$v.goods_name}</span></p></td>
  66. <td class="w156">{$v.member_name}</td>
  67. <td>{$v.fleaclass_name}</td>
  68. <td class="align-center">{$v.goods_click}</td>
  69. <td class="w60 align-center"><a href="{:url('home/Fleagoods/index',['goods_id'=>$v.goods_id])}" target="_blank" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a></td>
  70. </tr>
  71. {/foreach}
  72. {else /}
  73. <tr class="no_data">
  74. <td colspan="15">{$Think.lang.ds_no_record}</td>
  75. </tr>
  76. {/notempty}
  77. </tbody>
  78. <tfoot>
  79. <tr>
  80. <td class="w24"><input type="checkbox" class="checkall" id="checkallBottom"></td>
  81. <td colspan="16">
  82. <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  83. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  84. </td>
  85. </tr>
  86. </tfoot>
  87. </table>
  88. {$show_page|raw}
  89. </form>
  90. </div>
  91. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  92. <script type="text/javascript" src="{$Think.PLUGINS_SITE_ROOT}/common_flea_select.js" charset="utf-8"></script>
  93. <script type="text/javascript">
  94. $(function(){
  95. gcategoryInit("gcategory");
  96. });
  97. function submit_delete(ids_str){
  98. _uri = ADMINSITEURL+"/Flea/del.html?del_id=" + ids_str;
  99. dsLayerConfirm(_uri,'{$Think.lang.goods_index_ensure_handle}');
  100. }
  101. </script>
  102. {include file="public/footer" /}