index.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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_class}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="fixed-empty"></div>
  13. <div class="explanation" id="explanation">
  14. <div class="title" id="checkZoom">
  15. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  16. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  17. </div>
  18. <ul>
  19. <li>{$Think.lang.flea_class_help1}</li>
  20. <li>{$Think.lang.flea_class_help2}</li>
  21. </ul>
  22. </div>
  23. <form method='post'>
  24. <input type="hidden" name="submit_type" id="submit_type" value="" />
  25. <table class="ds-default-table">
  26. <thead>
  27. <tr class="thead">
  28. <th></th>
  29. <th>{$Think.lang.ds_sort}</th>
  30. <th>{$Think.lang.goods_class_index_name}</th>
  31. <th class="align-center">{$Think.lang.ds_display}</th>
  32. <th class="align-center">{$Think.lang.goods_class_index_display_in_homepage}</th>
  33. <th class="w200">{$Think.lang.ds_handle}</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. {notempty name="class_list"}
  38. {foreach name="class_list" item="v"}
  39. <tr class="hover edit" id="ds_row_{$v.fleaclass_id}">
  40. <td class="w36"><input type="checkbox" name="check_fleaclass_id[]" value="{$v.fleaclass_id}" class="checkitem">
  41. {if $v.have_child == '1'}
  42. <img fieldid="{$v.fleaclass_id}" status="open" ds_type="flex" src="{$Think.ADMIN_SITE_ROOT}/images/treetable/tv-expandable.gif">
  43. {else /}
  44. <img fieldid="{$v.fleaclass_id}" status="close" ds_type="flex" src="{$Think.ADMIN_SITE_ROOT}/images/treetable/tv-item.gif">
  45. {/if}</td>
  46. <td class="w48 sort"><span title="{$Think.lang.ds_editable}" ajax_branch="goods_class_sort" datatype="number" fieldid="{$v.fleaclass_id}" fieldname="fleaclass_sort" ds_type="inline_edit" class="editable">{$v.fleaclass_sort}</span></td>
  47. <td class="w50pre name">
  48. <span title="{$Think.lang.ds_editable}" required="1" fieldid="{$v.fleaclass_id}" ajax_branch="goods_class_name" fieldname="fleaclass_name" ds_type="inline_edit" class="editable">{$v.fleaclass_name}</span>
  49. <a class="btn-add-nofloat marginleft" href="javascript:dsLayerOpen('{:url('Fleaclass/goods_class_add',['fleaclass_parent_id'=>$v.fleaclass_id])}','{$Think.lang.ds_add_sub_class}')"><span>{$Think.lang.ds_add_sub_class}</span></a>
  50. </td>
  51. <td class="align-center yes-onoff">
  52. {if $v.fleaclass_show == 0}
  53. <a href="JavaScript:void(0);" class="disabled" fieldvalue="0" fieldid="{$v.fleaclass_id}" ajax_branch="goods_class_show" fieldname="fleaclass_show" ds_type="inline_edit" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  54. {else /}
  55. <a href="JavaScript:void(0);" class="enabled" fieldvalue="1" fieldid="{$v.fleaclass_id}" ajax_branch="goods_class_show" fieldname="fleaclass_show" ds_type="inline_edit" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  56. {/if}
  57. </td>
  58. <td class="align-center yes-onoff">
  59. {if $v.fleaclass_index_show == 0}
  60. <a href="JavaScript:void(0);" class="disabled" fieldvalue="0" fieldid="{$v.fleaclass_id}" ajax_branch="goods_class_index_show" fieldname="fleaclass_index_show" ds_type="inline_edit" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  61. {else /}
  62. <a href="JavaScript:void(0);" class="enabled" fieldvalue="1" fieldid="{$v.fleaclass_id}" ajax_branch="goods_class_index_show" fieldname="fleaclass_index_show" ds_type="inline_edit" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  63. {/if}
  64. </td>
  65. <td class="w84">
  66. <a href="javascript:dsLayerOpen('{:url('Fleaclass/goods_class_edit',['fleaclass_id'=>$v.fleaclass_id])}','{$Think.lang.ds_edit}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  67. <a href="javascript:dsLayerConfirm('{:url('Fleaclass/goods_class_del',['fleaclass_id'=>$v.fleaclass_id])}','{$Think.lang.goods_class_index_ensure_del}',{$v.fleaclass_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  68. </td>
  69. </tr>
  70. {/foreach}
  71. {else /}
  72. <tr class="no_data">
  73. <td colspan="10">{$Think.lang.ds_no_record}</td>
  74. </tr>
  75. {/notempty}
  76. </tbody>
  77. {notempty name="class_list"}
  78. <tfoot>
  79. <tr class="tfoot">
  80. <td><input type="checkbox" class="checkall" id="checkall_1"></td>
  81. <td id="batchAction" colspan="15">
  82. <span class="all_checkbox">
  83. <label for="checkall_2">{$Think.lang.ds_select_all}</label>
  84. </span>&nbsp;&nbsp;
  85. <a href="JavaScript:void(0);" class="btn btn-small" onclick="if(confirm('{$Think.lang.goods_class_index_ensure_del}')){$('#submit_type').val('del');$('form:first').submit();}"><span>{$Think.lang.ds_del}</span></a>
  86. <a href="JavaScript:void(0);" class="btn btn-small" onclick="$('#submit_type').val('brach_edit');$('form:first').submit();"><span>{$Think.lang.ds_edit}</span></a>
  87. <a href="JavaScript:void(0);" class="btn btn-small" onclick="$('#submit_type').val('index_show');$('form:first').submit();"><span>{$Think.lang.goods_class_index_display_in_homepage}</span></a>
  88. </td>
  89. </tr>
  90. </tfoot>
  91. {/notempty}
  92. </table>
  93. </form>
  94. </div>
  95. <script>
  96. AJAX_URL_REGION = "{:url('Fleaclass/goods_class')}";
  97. </script>
  98. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  99. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/flea/jquery.flea_class.js"></script>
  100. {include file="public/footer" /}