index.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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_brand_manage}</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.brand_index_name}</dt>
  16. <dd><input class="txt" name="search_brand_name" id="search_brand_name" value="{$search_brand_name}" type="text"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.brand_index_class}</dt>
  20. <dd><input class="txt" name="search_brand_class" id="search_brand_class" value="{$search_brand_class}" type="text"></dd>
  21. </dl>
  22. <div class="btn_group">
  23. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  24. {if $search_brand_name != '' || $search_brand_class != ''}
  25. <a class="btn" href="{:url('Brand/index')}" title="{$Think.lang.ds_cancel_search}"><span>{$Think.lang.ds_cancel_search}</span></a>
  26. {/if}
  27. <a class="btn btn-default" href="javascript:export_xls('{:url('Brand/export_step1')}')"><span>{$Think.lang.ds_export}Excel</span></a>
  28. </div>
  29. </div>
  30. <input type="hidden" value="" name="export">
  31. </form>
  32. <div class="explanation" id="explanation">
  33. <div class="title" id="checkZoom">
  34. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  35. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  36. </div>
  37. <ul>
  38. <li>{$Think.lang.brand_index_help1}</li>
  39. <li>{$Think.lang.brand_index_help2}</li>
  40. <li>{$Think.lang.brand_index_help3}</li>
  41. </ul>
  42. </div>
  43. <table class="ds-default-table">
  44. <thead>
  45. <tr class="thead">
  46. <th class="w24"></th>
  47. <th class="w48">{$Think.lang.ds_sort}</th>
  48. <th>{$Think.lang.brand_index_name}</th>
  49. <th class="w150">{$Think.lang.brand_index_class}</th>
  50. <th class="w150">{$Think.lang.brand_index_pic_sign}</th>
  51. <th class="w48 align-center">{$Think.lang.brand_showtype}</th>
  52. <th class="w48 align-center">{$Think.lang.ds_recommend}</th>
  53. <th class="w120 align-center">{$Think.lang.ds_handle}</th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. {notempty name="brand_list"}
  58. {foreach name="brand_list" item="v"}
  59. <tr class="hover edit" id="ds_row_{$v.brand_id}">
  60. <td><input value="{$v.brand_id}" class="checkitem" type="checkbox" name="del_brand_id[]"></td>
  61. <td class="sort"><span class="editable" ds_type="inline_edit" fieldname="brand_sort" ajax_branch='brand_sort' fieldid="{$v.brand_id}" datatype="pint" maxvalue="255" title="{$Think.lang.ds_editable}">{$v.brand_sort}</span></td>
  62. <td class="name"><span class="editable" ds_type="inline_edit" fieldname="brand_name" ajax_branch='brand_name' fieldid="{$v.brand_id}" required="1" title="{$Think.lang.ds_editable}">{$v.brand_name}</span></td>
  63. <td class="class">{$v.brand_class}</td>
  64. <td class="picture"><div class="brand-picture"><img src="{:brand_image($v.brand_pic)}" style="height:30px;"/></div></td>
  65. <td class="align-center">{$v.brand_showtype==1 ?lang('brand_showtype_text'):lang('brand_showtype_img')}</td>
  66. <td class="align-center yes-onoff">
  67. {if $v.brand_recommend == '0'}
  68. <a href="JavaScript:void(0);" class="disabled" ajax_branch='brand_recommend' ds_type="inline_edit" fieldname="brand_recommend" fieldid="{$v.brand_id}" fieldvalue="0" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  69. {else /}
  70. <a href="JavaScript:void(0);" class="enabled" ajax_branch='brand_recommend' ds_type="inline_edit" fieldname="brand_recommend" fieldid="{$v.brand_id}" fieldvalue="1" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  71. {/if}
  72. </td>
  73. <td class="align-center">
  74. <a href="javascript:dsLayerOpen('{:url('Brand/brand_edit',['brand_id'=>$v.brand_id])}','{$Think.lang.ds_edit}-{$v.brand_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  75. <a href="javascript:dsLayerConfirm('{:url('Brand/brand_del',['brand_id'=>$v.brand_id])}','{$Think.lang.ds_ensure_del}',{$v.brand_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  76. </td>
  77. </tr>
  78. {/foreach}
  79. {else /}
  80. <tr class="no_data">
  81. <td colspan="10">{$Think.lang.ds_no_record}</td>
  82. </tr>
  83. {/notempty}
  84. </tbody>
  85. <tfoot>
  86. {notempty name="brand_list"}
  87. <tr colspan="15" class="tfoot">
  88. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  89. <td colspan="16">
  90. <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  91. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  92. </td>
  93. </tr>
  94. {/notempty}
  95. </tfoot>
  96. </table>
  97. {$showpage|raw}
  98. <div class="clear"></div>
  99. </div>
  100. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  101. <script type="text/javascript">
  102. function submit_delete(ids_str){
  103. _uri = ADMINSITEURL+"/Brand/brand_del.html?brand_id=" + ids_str;
  104. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  105. }
  106. </script>