<#if parentId?has_content> <@cms.model id=parentId> <#assign parent=object/> <#if parent?has_content>
<@cms.modelList parentId=parentId hasChild=hasChild> <#list page.list as a> <@t.merge 'ids' a.id/> <@sys.lock userId=admin.id itemType='model' 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!/> <#list page.list as a>
<@t.page 'id'/> <@t.page 'name'/> <@t.page 'model.child_management'/> <@t.page 'url'/> <@t.page 'model.has_images'/> <@t.page 'model.has_attachs'/> <@t.page 'model.has_products'/> <@t.page 'operate'/>
${a.id!} <#if lockMap?has_content && lockMap[a.id?string]?has_content> <#assign lockUser=(userMap[lockMap[a.id?string].userId?string].nickname)!''/> ${(a.name)!} <#if a.hasChild> <@t.page 'model.child_management'/> ${a.onlyUrl?then(t.pageMessage('yes'),'')} ${a.hasImages?then(t.pageMessage('yes'),'')} ${a.hasFiles?then(t.pageMessage('yes'),'')} ${a.hasProducts?then(t.pageMessage('yes'),'')} <@t.page 'model.edit'/> <@t.page 'template.example'/> <@sys.authorized roleIds=admin.roles url='cmsModel/rebuildSearchText'> <@t.page 'button.rebuild_search_text'/> <@sys.authorized roleIds=admin.roles url='cmsModel/batchPublish'> <@t.page 'button.batch_publish_content'/> <#if !site.parentId?has_content> <@sys.authorized roleIds=admin.roles url='cmsModel/delete'> <@t.page 'button.delete'/>