<@sys.dept id=admin.deptId> <#assign dept=object containChild=object.ownsAllCategory /> <@sys.deptItem itemType='category' deptId=admin.deptId itemId=categoryId><#assign deptCategory=object/> <#if deptCategory?has_content && deptCategory || dept?has_content && dept.ownsAllCategory> <#if parentId?has_content> <@cms.content id=parentId><#assign parent=object/> <#if 0=admin.contentPermissions><#assign userId=admin.id/> <#if 2=admin.contentPermissions><#assign deptId=admin.deptId/> <@cms.contentList advanced=true status=1 categoryId=categoryId containChild=containChild modelId=modelIds parentId=parentId emptyParent=true title=title userId=userId deptId=deptId startPublishDate=startPublishDate endPublishDate=endPublishDate absoluteId=false orderField=orderField orderType=orderType pageIndex=pageNum pageSize=numPerPage> <@sys.authorized roleIds=admin.roles urls='cmsContent/add,cmsContent/delete,cmsContent/check,cmsContent/reject,cmsContent/uncheck,cmsContent/uncheck_list,cmsContent/push,cmsCategory/lookupBySiteId,cmsContent/refresh,cmsContent/publish,cmsContent/moveParameters,cmsContent/changeModelParameters,cmsContent/export,cmsContent/import,cmsRecycleContent/list,cmsComment/list,cmsContent/sortParameters,cmsCategory/add'><#assign authorizedMap=map/>
<#list page.list as a> <@t.merge 'userIds' a.userId!/> <@t.merge 'userIds' a.checkUserId!/> <@t.merge 'categoryIds' a.categoryId!/> <@t.merge 'modelId' a.modelId!/> <@t.merge 'ids' a.id/> <@sys.lock userId=admin.id itemType='content' 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.categoryIds!><#assign categoryMap=map!/> <@cms.model ids=t.modelId!><#assign modelMap=map!/> <@sys.workflowProcessItem itemType="content" itemIds=t.ids!><#assign processItemMap=map!/> <#list page.list as a>
<@t.page 'content'/> <@t.page 'content.comments'/> <@t.page 'clicks'/> <@t.page 'collections'/> <@t.page 'publish_date'/> <@t.page 'operate'/>
<#if a.cover?has_content>
${a.title}

<#if lockMap?has_content && lockMap[a.id?string]?has_content> <#assign lockUser=(userMap[lockMap[a.id?string].userId?string].nickname)!''/> [${(categoryMap[a.categoryId?string].name)!}] ${(a.copied?then('['+t.pageMessage('copied')+']',''))!} ${(a.title)!} <#if a.url?has_content>

<#if modelMap[a.modelId]?has_content&&modelMap[a.modelId].hasChild> ${(userMap[a.userId?string].nickname)!} ${(userMap[a.checkUserId?string].nickname)!} ${(modelMap[a.modelId].name)!} <#if processItemMap[a.id?string]?has_content><@t.page 'workflow.check'/>

<#if a.expiryDate?has_content>

${a.expiryDate!}

<#if authorizedMap['cmsComment/list']> ${a.comments!} <#else> ${a.comments!} ${a.clicks!} ${a.collections!} ${a.publishDate!}

<@t.page 'content.edit'/> <#if authorizedMap['cmsContent/sortParameters']> <#if dept?has_content> <@t.page 'top'/><#if a.sort gt 0>(${a.sort}) <#if authorizedMap['cmsContent/add']> <@t.page 'button.copy'/>

<#if authorizedMap['cmsContent/push']> <@t.page 'button.push'/> <#if authorizedMap['cmsCategory/lookupBySiteId']> <@t.page 'button.distribute'/> <#if authorizedMap['cmsContent/changeModelParameters']> <@t.page 'content.change_model'/>

<#assign rel='contentBox'/> <#include "../include_page/page.html"/>
<#else>
<#if categoryId?has_content><@t.message 'verify.notEquals.siteId'/>