<@cms.categoryList advanced=true parentId=parentId allowContribute=allowContribute pageIndex=pageNum pageSize=numPerPage> <@sys.authorized roleIds=admin.roles urls='cmsCategory/add,cmsCategory/delete,cmsCategory/publish,cmsCategory/rebuildChildIds,cmsCategory/batchPublish,cmsCategory/seo,cmsCategory/batchCopy,cmsCategory/export,cmsCategory/import,cmsCategory/contributeForm,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!/> <@t.merge 'ids' a.id/> <@sys.lock userId=admin.id itemType='category' itemIds=t.ids><#assign lockMap=map!/> <#if lockMap?has_content> <#list lockMap as k,lock> <#if lock.userId?has_content><@t.merge 'userIds' lock.userId/> <@sys.user ids=t.userIds><#assign userMap=map!/> <@cms.category ids=t.parentIds!><#assign parentMap=map!/> <@cms.categoryType ids=t.typeIds!><#assign typeMap=map!/> <#list page.list as a>
<@t.page 'id'/> <@t.page 'code'/> <@t.page 'name'/> <@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.code!}
<@t.page 'category.child_management'/>
<#if lockMap?has_content && lockMap[a.id?string]?has_content> <#assign lockUser=(userMap[lockMap[a.id?string].userId?string].nickname)!''/> ${(a.name)!} ${(a.onlyUrl?then('['+t.pageMessage('url')+']',''))!} ${(typeMap[a.typeId?string].name)!} <#if authorizedMap['cmsCategory/changeTypeParameters']> <#if a.typeId?has_content>
<@t.page 'category.change_type'/>
${(parentMap[a.parentId?string].name)!} <#if !a.onlyUrl>${a.pageSize!}${(a.containChild?then('['+t.pageMessage('category.contain_child')+']',''))!} <#if a.allowContribute> <#if authorizedMap['cmsCategory/contributeForm']> <@t.page 'allow_contribute'/> <#else> <@t.page 'allow_contribute'/> ${t.pageMessage(a.hidden?then('hidden','show'))} ${a.sort!} <#if authorizedMap['cmsCategory/add']> <@t.page 'category.edit'/> <@t.page 'button.copy'/> <#if authorizedMap['cmsCategory/publishParameters']&&site.useStatic&&!a.onlyUrl> <@t.page 'button.publish'/> <#if authorizedMap['cmsCategory/batchCopy']> <@t.page 'button.batch_copy'/> <#if authorizedMap['cmsCategory/export']> <@t.page 'button.export'/> <#if authorizedMap['cmsPlace/push']> <@t.page 'button.push'/>
<#assign rel='categoryBox'/> <#include "../include_page/page.html"/>