article_class_index.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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_articleclass}</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.article_class_index_tips1}</li>
  20. <li>{$Think.lang.article_class_index_tips2}</li>
  21. </ul>
  22. </div>
  23. <table class="ds-default-table">
  24. <thead>
  25. <tr class="thead">
  26. <th class="w48"></th>
  27. <th class="w48">{$Think.lang.ds_sort}</th>
  28. <th>{$Think.lang.ac_name}</th>
  29. <th class="w120 align-center">{$Think.lang.ds_handle}</th>
  30. </tr>
  31. </thead>
  32. <tbody id="treet1">
  33. {notempty name="class_list"}
  34. {foreach name="class_list" item="v"}
  35. <tr class="hover edit" id="ds_row_{$v.ac_id}">
  36. <td>
  37. {if $v.ac_code == ''}
  38. <input type="checkbox" name='check_ac_id[]' value="{$v.ac_id}" class="checkitem">
  39. {else /}
  40. <input name="" type="checkbox" disabled="disabled" value="" />
  41. {/if}
  42. {if $v.have_child == '1'}
  43. <img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/tv-expandable.gif" fieldid="{$v.ac_id}" status="open" ds_type="flex">
  44. {else /}
  45. <img fieldid="{$v.ac_id}" status="close" ds_type="flex" src="{$Think.ADMIN_SITE_ROOT}/images/treetable/tv-item.gif">
  46. {/if}
  47. </td>
  48. <td class="sort">
  49. <span title="{$Think.lang.ds_editable}" ajax_branch='article_class_sort' datatype="number" fieldid="{$v.ac_id}" fieldname="ac_sort" ds_type="inline_edit" class="editable">{$v.ac_sort}</span>
  50. </td>
  51. <td class="name">
  52. <span title="{$Think.lang.ds_editable}" required="1" fieldid="{$v.ac_id}" ajax_branch='article_class_name' fieldname="ac_name" ds_type="inline_edit" class="editable ">{$v.ac_name}</span>
  53. <a class='btn-add-nofloat marginleft' href="javascript:dsLayerOpen('{:url('Articleclass/article_class_add',['ac_parent_id'=>$v.ac_id])}','{$Think.lang.ds_add_sub_class}')">
  54. <span>{$Think.lang.ds_add_sub_class}</span>
  55. </a>
  56. </td>
  57. <td class="align-center">
  58. <a href="javascript:dsLayerOpen('{:url('Articleclass/article_class_edit',['ac_id'=>$v.ac_id])}','{$Think.lang.ds_edit}-{$v.ac_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  59. {if $v.ac_code == ''}
  60. <a href="javascript:dsLayerConfirm('{:url('Articleclass/article_class_del',['ac_id'=>$v.ac_id])}','{$Think.lang.article_class_index_ensure_del}',{$v.ac_id});" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  61. {/if}
  62. </td>
  63. </tr>
  64. {/foreach}
  65. {else /}
  66. <tr class="no_data">
  67. <td colspan="10">{$Think.lang.ds_no_record}</td>
  68. </tr>
  69. {/notempty}
  70. </tbody>
  71. <tfoot>
  72. {notempty name="class_list"}
  73. <tr>
  74. <td>
  75. <label for="checkall1">
  76. <input type="checkbox" class="checkall" id="checkall_2">
  77. </label>
  78. </td>
  79. <td colspan="16">
  80. <label for="checkall_2">{$Think.lang.ds_select_all}</label>
  81. &nbsp;&nbsp;
  82. <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()">
  83. <span>{$Think.lang.ds_del}</span>
  84. </a>
  85. </td>
  86. </tr>
  87. {/notempty}
  88. </tfoot>
  89. </table>
  90. </div>
  91. <script src="{$Think.ADMIN_SITE_ROOT}/js/article_class.js"></script>
  92. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  93. <script type="text/javascript">
  94. function submit_delete(ids_str){
  95. _uri = ADMINSITEURL+"/Articleclass/article_class_del.html?ac_id=" + ids_str;
  96. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  97. }
  98. </script>