index.html 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. <a href="javascript:void(0)" class="dssc-btn dssc-btn-green" ds_type="dialog" dialog_title="{$Think.lang.new_classification}" dialog_id="my_category_add" uri="{:url('Sellergoodsclass/goods_class_add')}" dialog_width="550" title="{$Think.lang.new_classification}">{$Think.lang.new_classification}</a>
  4. {/block}
  5. {block name="seller_main"}
  6. <table class="dssc-default-table" id="my_category" server="{:url('Sellergoodsclass/goods_class_ajax')}" >
  7. <thead>
  8. <tr ds_type="table_header">
  9. <th class="w30"></th>
  10. <th coltype="editable" column="storegc_name" checker="check_required" inputwidth="50%">{$Think.lang.store_goods_class_name}</th>
  11. <th class="w60" coltype="editable" column="storegc_sort" checker="check_max" inputwidth="30px">{$Think.lang.store_goods_class_sort}</th>
  12. <th class="w120" coltype="switchable" column="storegc_state" checker="" onclass="showclass-ico-btn" offclass="noshowclass-ico-btn">{$Think.lang.ds_display}</th>
  13. <th class="w100">{$Think.lang.ds_handle}</th>
  14. </tr>
  15. {notempty name="goods_class"}
  16. <tr>
  17. <td class="tc"><input id="all" type="checkbox" class="checkall" /></td>
  18. <td colspan="20"><label for="all">{$Think.lang.ds_select_all}</label>
  19. <a href="javascript:void(0)" class="dssc-btn-mini" ds_type="batchbutton" uri="{:url('Sellergoodsclass/drop_goods_class')}" name="class_id" confirm="{$Think.lang.store_goods_class_ensure_del}?"><i class="iconfont">&#xe725;</i>{$Think.lang.ds_del}</a></td>
  20. </tr>
  21. {/notempty}
  22. </thead>
  23. <tbody id="treet1">
  24. {notempty name="goods_class"}
  25. {foreach name="goods_class" item="val"}
  26. <tr class="bd-line" ds_type="table_item" idvalue="{$val.storegc_id}" >
  27. <td class="tc"><input type="checkbox" class="checkitem" value="{$val.storegc_id}" /></td>
  28. <td class="tl"><span class="ml5" ds_type="editobj" >{$val.storegc_name}</span>
  29. {if $val.storegc_parent_id == 0}
  30. <span class="add_ico_a"> <a href="javascript:void(0)" class="dssc-btn" ds_type="dialog" dialog_width="480" dialog_title="{$Think.lang.store_goods_class_add_sub}" dialog_id="my_category_add" uri="{:url('Sellergoodsclass/goods_class_add',['top_class_id'=>$val.storegc_id])}" >{$Think.lang.store_goods_class_add_sub}</a></span>
  31. {/if}</td>
  32. <td><span ds_type="editobj">{$val.storegc_sort}</span></td>
  33. <td>
  34. {if $val.storegc_state == 1}
  35. {$Think.lang.store_create_yes}
  36. {else /}
  37. {$Think.lang.store_create_no}
  38. {/if}</td>
  39. <td class="dscs-table-handle"><span><a href="javascript:void(0)" ds_type="dialog" dialog_width="480" dialog_title="{$Think.lang.store_goods_class_edit_class}" dialog_id="my_category_edit" uri="{:url('Sellergoodsclass/goods_class_edit',['top_class_id'=>$val.storegc_id])}" class="btn-blue"><i class="iconfont">&#xe731;</i>
  40. <p>{$Think.lang.ds_edit}</p>
  41. </a></span> <span><a href="javascript:void(0)" onclick="ds_ajaxget_confirm('{:url('Sellergoodsclass/drop_goods_class',['class_id'=>$val.storegc_id])}','{$Think.lang.store_goods_class_ensure_del}?');" class="btn-red"><i class="iconfont">&#xe725;</i>
  42. <p>{$Think.lang.ds_del}</p>
  43. </a></span></td>
  44. </tr>
  45. {/foreach}
  46. {else /}
  47. <tr>
  48. <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span> </div></td>
  49. </tr>
  50. {/notempty}
  51. </tbody>
  52. {notempty name="goods_class"}
  53. <tfoot>
  54. <tr>
  55. <th class="tc"><input id="all2" type="checkbox" class="checkall" /></th>
  56. <th colspan="15"><label for="all2">{$Think.lang.ds_select_all}</label>
  57. <a href="javascript:void(0)" class="dssc-btn-mini" ds_type="batchbutton" uri="{:url('Sellergoodsclass/drop_goods_class')}" name="class_id" confirm="{$Think.lang.store_goods_class_ensure_del}?"><i class="iconfont">&#xe725;</i>{$Think.lang.ds_del}</a></th>
  58. </tr>
  59. </tfoot>
  60. {/notempty}
  61. </table>
  62. <script src="{$Think.PLUGINS_SITE_ROOT}/jqtreetable.js"></script>
  63. <script>
  64. $(function()
  65. {
  66. var map = [{$map}];
  67. var path = "{$Think.HOME_SITE_ROOT}/images/";
  68. if (map.length > 0)
  69. {
  70. var option = {
  71. openImg: path + "treetable/tv-collapsable.gif",
  72. shutImg: path + "treetable/tv-expandable.gif",
  73. leafImg: path + "treetable/tv-item.gif",
  74. lastOpenImg: path + "treetable/tv-collapsable-last.gif",
  75. lastShutImg: path + "treetable/tv-expandable-last.gif",
  76. lastLeafImg: path + "treetable/tv-item-last.gif",
  77. vertLineImg: path + "treetable/vertline.gif",
  78. blankImg: path + "treetable/blank.gif",
  79. collapse: false,
  80. column: 1,
  81. striped: false,
  82. highlight: false,
  83. state:false};
  84. $("#treet1").jqTreeTable(map, option);
  85. }
  86. });
  87. </script>
  88. {/block}