goods_class.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.goods_class_index_class}</h3>
  7. </div>
  8. {include file="public/admin_items" /}
  9. </div>
  10. </div>
  11. <div class="explanation" id="explanation">
  12. <div class="title" id="checkZoom">
  13. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  14. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  15. </div>
  16. <ul>
  17. <li>{$Think.lang.goods_class_index_help1}</li>
  18. <li>{$Think.lang.goods_class_index_help2}</li>
  19. <li>{$Think.lang.goods_class_index_help3|raw}</li>
  20. </ul>
  21. </div>
  22. <table class="ds-default-table">
  23. <thead>
  24. <tr class="thead">
  25. <th></th>
  26. <th>{$Think.lang.ds_sort}</th>
  27. <th>{$Think.lang.goods_class_index_name}</th>
  28. <th>{$Think.lang.goods_class_add_type}</th>
  29. <th>{$Think.lang.goods_class_add_commis_rate}</th>
  30. <th></th>
  31. <th>{$Think.lang.ds_handle}</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. {notempty name="class_list"}
  36. {foreach name="class_list" item="v" key="k" }
  37. <tr class="hover edit" id="ds_row_{$v.gc_id}">
  38. <td class="w48"><input type="checkbox" name="check_gc_id[]" value="{$v.gc_id}" class="checkitem">
  39. {if isset($v['have_child']) && $v['have_child'] == '1'}
  40. <img fieldid="{$v.gc_id}" status="open" ds_type="flex" src="{$Think.ADMIN_SITE_ROOT}/images/treetable/tv-expandable.gif">
  41. {else/}
  42. <img fieldid="{$v.gc_id}" status="close" ds_type="flex" src="{$Think.ADMIN_SITE_ROOT}/images/treetable/tv-item.gif">
  43. {/if}
  44. </td>
  45. <td class="w48 sort"><span title="{$Think.lang.ds_editable}" ajax_branch="goods_class_sort" datatype="number" fieldid="{$v.gc_id}" fieldname="gc_sort" ds_type="inline_edit" class="editable ">{$v.gc_sort}</span></td>
  46. <td class="w50pre name">
  47. <span title="{$Think.lang.ds_editable}" required="1" fieldid="{$v.gc_id}" ajax_branch="goods_class_name" fieldname="gc_name" ds_type="inline_edit" class="editable ">{$v.gc_name}</span>
  48. <a class="btn-add-nofloat marginleft" href="{:url('Goodsclass/goods_class_add',['gc_parent_id'=>$v.gc_id])}"><span>{$Think.lang.ds_add_sub_class}</span></a>
  49. </td>
  50. <td>{$v.type_name}</td>
  51. <td>{$v.commis_rate} %</td>
  52. <td>{if $v.gc_virtual == 1}{$Think.lang.ds_virtual}{/if}</td>
  53. <td class="w120">
  54. <a href="{:url('Goodsclass/nav_edit',['gc_id'=>$v.gc_id])}">{$Think.lang.ds_setting}</a> |
  55. <a href="{:url('Goodsclass/goods_class_edit',['gc_id'=>$v.gc_id])}">{$Think.lang.ds_edit}</a> |
  56. <a href="javascript:dsLayerConfirm('{:url('Goodsclass/goods_class_del',['gc_id'=>$v.gc_id])}','{$Think.lang.ds_ensure_del}',{$v.gc_id})">{$Think.lang.ds_del}</a>
  57. </td>
  58. </tr>
  59. {/foreach}
  60. {else /}
  61. <tr class="no_data">
  62. <td colspan="10">{$Think.lang.ds_no_record}</td>
  63. </tr>
  64. {/notempty}
  65. </tbody>
  66. {notempty name="class_list"}
  67. <tfoot>
  68. <tr class="tfoot">
  69. <td><input type="checkbox" class="checkall" id="checkall_2"></td>
  70. <td id="batchAction" colspan="15"><span class="all_checkbox">
  71. <label for="checkall_2">{$Think.lang.ds_select_all}</label>
  72. </span>&nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  73. </td>
  74. </tr>
  75. </tfoot>
  76. {/notempty}
  77. </table>
  78. </div>
  79. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  80. <script src="{$Think.ADMIN_SITE_ROOT}/js/jquery.goods_class.js"></script>
  81. <script type="text/javascript">
  82. function submit_delete(ids_str){
  83. _uri = ADMINSITEURL+"/Goodsclass/goods_class_del.html?gc_id=" + ids_str;
  84. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  85. }
  86. </script>