<@_categoryList advanced=true parentId=categoryId allowContribute=allowContribute pageIndex=pageNum count=numPerPage> <@_sysAuthorized roleIds=admin.roles urls='cmsCategory/add,cmsCategory/delete,cmsCategory/publish,cmsCategory/static,cmsCategory/moveParameters,cmsCategory/changeTypeParameters,cmsCategory/publishParameters,cmsPlace/push'><#assign authorizedMap=map/>
<#list page.list as a> <@t.merge 'parentIds' a.parentId!/> <@t.merge 'typeIds' a.typeId!/> <@_category ids=t.parentIds!><#assign parentMap=map!/> <@_categoryType ids=t.typeIds!><#assign typeMap=map!/> <#list page.list as a>
<@t.page 'id'/> <@t.page 'name'/> <@t.page 'code'/> <@t.page 'category_type'/> <@t.page 'category.parent'/> <@t.page 'category.page_size'/> <@t.page 'contribute'/> <@t.page 'display'/> <@t.page 'sort'/> <@t.page 'operate'/>
${a.id!} ${(a.name)!}${(a.onlyUrl?then('['+t.pageMessage('outer_chain')+']',''))!} ${a.code!} ${(typeMap[a.typeId?string].name)!} ${(parentMap[a.parentId?string].name)!} <#if !a.onlyUrl>${a.pageSize!}${(a.containChild?then('['+t.pageMessage('category.contain_child')+']',''))!} ${a.allowContribute?then(t.pageMessage('allow_contribute'),t.pageMessage('forbid_contribute'))} ${a.hidden?then(t.pageMessage('hidden'),t.pageMessage('show'))} ${a.sort!} <#if authorizedMap['cmsCategory/add']> <@t.page 'category.add_child'/>| <@t.page 'category.copy'/>| <#if authorizedMap['cmsCategory/changeTypeParameters']> <@t.page 'category.change_type'/>| <#if authorizedMap['cmsPlace/push']> <@t.page 'button.push'/>| <#if authorizedMap['cmsCategory/publishParameters']&&!a.onlyUrl> <@t.page 'button.publish'/>
<#include "../include_page/page.html"/>