index.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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.store_class}</h3>
  7. </div>
  8. {include file="public/admin_items" /}
  9. </div>
  10. </div>
  11. <div class="fixed-empty"></div>
  12. <div class="explanation" id="explanation">
  13. <div class="title" id="checkZoom">
  14. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  15. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  16. </div>
  17. <ul>
  18. <li>{$Think.lang.store_class_help1}</li>
  19. <li>{$Think.lang.store_class_help2|raw}</li>
  20. </ul>
  21. </div>
  22. <table class="ds-default-table">
  23. <colgroup>
  24. <col class="w48">
  25. <col class="w120">
  26. <col>
  27. <col class="w200">
  28. <col class="w200">
  29. </colgroup>
  30. <thead>
  31. <tr class="thead">
  32. <th><input type="checkbox" class="checkall" id="checkall_1"></th>
  33. <th>{$Think.lang.ds_sort}</th>
  34. <th>{$Think.lang.store_class_name}</th>
  35. <th class="align-center">{$Think.lang.store_class_bail}({$Think.lang.ds_yuan})</th>
  36. <th>{$Think.lang.ds_handle}</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. {notempty name="class_list"}
  41. {foreach name="class_list" item="v" key="k" }
  42. <tr class="hover edit" id="ds_row_{$v.storeclass_id}">
  43. <td><input type="checkbox" name='check_sc_id[]' value="{$v.storeclass_id}" class="checkitem"></td>
  44. <td class="sort"><span title="{$Think.lang.can_edit}" ajax_branch='store_class_sort' datatype="number" fieldid="{$v.storeclass_id}" fieldname="storeclass_sort" ds_type="inline_edit" class="editable">{$v.storeclass_sort}</span></td>
  45. <td class="name">
  46. <span title="{$Think.lang.store_class_name}" required="1" fieldid="{$v.storeclass_id}" ajax_branch='store_class_name' fieldname="storeclass_name" ds_type="inline_edit" class="node_name editable">{$v.storeclass_name}</span>
  47. </td>
  48. <td class="align-center">{$v.storeclass_bail}</td>
  49. <td>
  50. <a href="javascript:dsLayerOpen('{:url('Storeclass/store_class_edit',['storeclass_id'=>$v.storeclass_id])}','{$Think.lang.ds_edit}-{$v.storeclass_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  51. <a href="javascript:dsLayerConfirm('{:url('Storeclass/store_class_del',['storeclass_id'=>$v.storeclass_id])}','{$Think.lang.del_store_class}',{$v.storeclass_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  52. </td>
  53. </tr>
  54. {/foreach}
  55. {else /}
  56. <tr class="no_data">
  57. <td colspan="10">{$Think.lang.ds_no_record}</td>
  58. </tr>
  59. {/notempty}
  60. </tbody>
  61. <tfoot>
  62. {notempty name="class_list"}
  63. <tr id="batchAction" >
  64. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  65. <td colspan="16" id="dataFuncs"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  66. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  67. </td>
  68. </tr>
  69. {/notempty}
  70. </tfoot>
  71. </table>
  72. {$show_page|raw}
  73. </div>
  74. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  75. <script type="text/javascript">
  76. function submit_delete(ids_str){
  77. _uri = ADMINSITEURL+"/Storeclass/store_class_del.html?storeclass_id=" + ids_str;
  78. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  79. }
  80. </script>