| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- {// 引入标签库 }
- <tagLib name="html" />
- <include file="Public:header" />
- <php>
- function getArticleType($type_id)
- {
- return l("ARTICLE_TYPE_".$type_id);
- }
- </php>
- <script>
- function del_cate(id)
- {
- if(!id)
- {
- idBox = $(".key:checked");
- if(idBox.length == 0)
- {
- alert(LANG['DELETE_EMPTY_WARNING']);
- return;
- }
- idArray = new Array();
- $.each( idBox, function(i, n){
- idArray.push($(n).val());
- });
- id = idArray.join(",");
- }
- if(confirm(LANG['CONFIRM_DELETE']))
- $.ajax({
- url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=delete&id="+id,
- data: "ajax=1",
- dataType: "json",
- success: function(obj){
- alert(obj.info);
- func();
- function func(){
- if(obj.status==1){
- location.href=location.href;
- }
- }
- }
- });
- }
- </script>
- <div class="main">
- <div class="main_title_list"><div class="list-line-ico"></div>{$main_title}</div>
- <div class="blank10"></div>
- <html:list
- id="dataTable"
- style="dataTable"
- name="articlecate"
- checkbox="true"
- action="true"
- datasource="list"
- show="id:{%ID}|90px,title:{%TITLE_SHOW}:edit,type_id|getArticleType:{%ARTICLE_TYPE},is_effect|get_is_effect=$articlecate['id']:{%IS_EFFECT},sort|get_sort=$articlecate['id']:{%SORT}"
- actionlist="edit:{%EDIT}, del_cate:{%DEL}" />
- <table class="dataTable">
- <tbody>
- <td colspan="9">
- <input type="button" class="button button-add" value="{%ADD}" onclick="add();" />
- <input type="button" class="button button-del" value="{%DEL}" onclick="del_cate();" />
- </td>
- </tbody>
- </table>
- <div class="page">{$page}</div>
- </div>
- <include file="Public:footer" />
|