index.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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_region}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <!-- 操作说明 -->
  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.region_index_help1}</li>
  20. <li>{$Think.lang.region_index_help2}</li>
  21. <li>{$Think.lang.region_index_help3|raw}</li>
  22. <li>{$Think.lang.region_index_help4}</li>
  23. <li>{$Think.lang.region_index_help5}</li>
  24. <li>{$Think.lang.region_index_help6}</li>
  25. </ul>
  26. </div>
  27. <table class="ds-default-table">
  28. <thead>
  29. <tr>
  30. <th width="5%"></th>
  31. <th width="15%">{$Think.lang.ds_sort}</th>
  32. <th width="35%">{$Think.lang.area_name}</th>
  33. <th width="15%">{$Think.lang.area_region}</th>
  34. <th width="15%">{$Think.lang.ds_handle}</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. {foreach name="region_list" item="area"}
  39. <tr id="ds_row_{$area.area_id}">
  40. <td>
  41. <input type="checkbox" class="checkitem" value="{$area.area_id}">
  42. {if $area.switchs}
  43. <img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/tv-expandable.gif" status="open" ds_type="flex" fieldid="{$area.area_id}">
  44. {else}
  45. <img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/tv-item.gif" status="close" ds_type="flex" fieldid="{$area.area_id}">
  46. {/if}
  47. </td>
  48. <td class="sort">
  49. <span title="{$Think.lang.ds_editable}" ajax_branch="area_sort" datatype="number" fieldid="{$area.area_id}" fieldname="area_sort" ds_type="inline_edit" class="editable ">{$area.area_sort}</span>
  50. </td>
  51. <td class="name">
  52. <span class="node_name editable" ajax_branch="area_name" fieldid="{$area.area_id}" fieldname="area_name" ds_type="inline_edit" required="1" class="editable ">{$area.area_name}</span>
  53. </td>
  54. <td class="name"><span title="{$Think.lang.ds_editable}" ajax_branch="area_region" fieldid="{$area.area_id}" fieldname="area_region" ds_type="inline_edit" class="editable ">{$area.area_region}</span></td>
  55. <td>
  56. <a href="javascript:dsLayerOpen('{:url('Region/edit',['area_id'=>$area.area_id])}','{$Think.lang.ds_edit}-{$area.area_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  57. <a href="javascript:dsLayerConfirm('{:url('Region/drop',['area_id'=>$area.area_id])}','{$Think.lang.ds_ensure_del}',{$area.area_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  58. <a href="javascript:dsLayerOpen('{:url('Region/add',['area_id'=>$area.area_id])}','{$Think.lang.ds_add}')" class="dsui-btn-add"><i class="iconfont"></i>{$Think.lang.add_child}</a>
  59. </td>
  60. </tr>
  61. {/foreach}
  62. </tbody>
  63. </table>
  64. </div>
  65. <script>
  66. AJAX_URL_REGION = "{:url('Region/ajax_cate')}";
  67. </script>
  68. <script src="{$Think.ADMIN_SITE_ROOT}/js/region_tree.js"></script>
  69. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>