<@cms.survey id=surveyId;survey> <@cms.userSurvey userId=userId surveyId=surveyId>
<@t.page 'title'/>:
${(survey.title)!}
<@t.page 'user'/>:
<#if object.anonymous><@t.page 'anonymous'/><#else><@sys.user id=object.id.userId>${object.nickname!}
<#if 'exam'=survey.surveyType>
<@t.page 'content.score'/>:
${(object.score)!}
<@t.page 'create_date'/>:
${(object.createDate)!}
<@cms.surveyQuestionList advanced=true surveyId=object.id.surveyId pageSize=500> <#if page.totalCount gt 0>
<@t.page 'question'/> <#list page.list as a> <@t.merge 'questionIds' a.id!/> <@cms.userSurveyQuestion userId=object.id.userId questionIds=t.questionIds!><#assign userQuestionMap=map!/> <#list page.list as q>

[<@t.page 'question.type.'+q.questionType/>] ${q.title}

<#if q.cover?has_content>

${a.title}

<#if ['radio','select','checkbox']?seq_contains(q.questionType)>
<@cms.surveyQuestionItemList questionId=q.id pageSize=500> <#list page.list as a>

${a.sort}. ${a.title} <#if (q.answer)?has_content&&q.answer?split(',')?seq_contains(a.id?string)>[<@t.page 'answer.correct'/>] <#if (userQuestionMap[q.id?string].answer)?has_content&&userQuestionMap[q.id?string].answer?split(',')?seq_contains(a.id?string)>(<@t.page 'answer.user'/>)

<#elseif 'text'=q.questionType> <#if q.answer?has_content>

${(q.answer)!}

${(userQuestionMap[q.id?string].answer)!}

<#elseif (userQuestionMap[q.id?string].answer)?has_content&&('file'=q.questionType||'picture'=q.questionType)> <#if q.answer?has_content>

${(q.answer)!}

<@t.page 'answer.user'/>

<#if 'exam'=survey.surveyType>