brand_apply.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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_welcome}</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>{$Think.lang.brand_index_name}</dt>
  17. <dd><input class="txt" name="search_brand_name" id="search_brand_name" value="{$Request.param.search_brand_name}" type="text"></dd>
  18. </dl>
  19. <dl>
  20. <dt>{$Think.lang.brand_index_class}</dt>
  21. <dd><input class="txt" name="search_brand_class" id="search_brand_class" value="{$Request.param.search_brand_class}" type="text"></dd>
  22. </dl>
  23. <div class="btn_group">
  24. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  25. {if $filtered}
  26. <a href="{:url('Brand/brand_apply')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  27. {/if}
  28. </div>
  29. </div>
  30. </form>
  31. <form method='post' id="form_brand">
  32. <input type="hidden" name="type" id="type" value="" />
  33. <table class="ds-default-table">
  34. <thead>
  35. <tr class="space">
  36. <th colspan="15">{$Think.lang.ds_list}</th>
  37. </tr>
  38. <tr class="thead">
  39. <th>&nbsp;</th>
  40. <th>{$Think.lang.brand_index_name}</th>
  41. <th>{$Think.lang.brand_index_class}</th>
  42. <th>{$Think.lang.brand_index_pic_sign}</th>
  43. <th class="align-center">{$Think.lang.ds_handle}</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. {notempty name="brand_list"}
  48. {foreach name="brand_list" item="v"}
  49. <tr class="hover edit">
  50. <td class="w24">
  51. <input type="checkbox" class="checkitem" name="del_id[]" value="{$v.brand_id}">
  52. </td>
  53. <td class="name w270"><span>{$v.brand_name}</span></td>
  54. <td class="class">{$v.brand_class}</td>
  55. <td>
  56. <div class="brand-picture">
  57. <img src="{:brand_image($v.brand_pic)}" style="height: 35px">
  58. </div>
  59. </td>
  60. <td class="w96 align-center">
  61. <a href="{:url('Brand/brand_apply_set',['state'=>'pass','brand_id'=>$v.brand_id])}" class="dsui-btn-add"><i class="iconfont"></i>{$Think.lang.ds_pass}</a>
  62. <a href="{:url('Brand/brand_apply_set',['state'=>'refuse','brand_id'=>$v.brand_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="10">{$Think.lang.ds_no_record}</td>
  69. </tr>
  70. {/notempty}
  71. </tbody>
  72. <tfoot>
  73. {notempty name="brand_list"}
  74. <tr class="tfoot">
  75. <td>
  76. <input type="checkbox" class="checkall" id="checkallBottom">
  77. </td>
  78. <td colspan="16">
  79. <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  80. &nbsp;&nbsp;
  81. <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_form('pass');" name="id">
  82. <span>{$Think.lang.ds_pass}</span>
  83. </a>
  84. <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_form('refuse');" name="id">
  85. <span>{$Think.lang.ds_del}</span>
  86. </a>
  87. {$show_page|raw}
  88. </td>
  89. </tr>
  90. {/notempty}
  91. </tfoot>
  92. </table>
  93. </form>
  94. </div>
  95. <script>
  96. function submit_form(type) {
  97. layer.confirm('{$Think.lang.brand_apply_handle_ensure}?', {
  98. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  99. title: false,
  100. }, function () {
  101. $('#type').val(type);
  102. $('#form_brand').submit();
  103. });
  104. }
  105. </script>