<@cms.survey id=id;survey> ${survey.title!} - ${metadata.alias!} <@tools.includePlace path="/common/8ddab9ba-a8aa-4745-86c6-66bf1c2c976c.html"/> <#-- header --> <@tools.includePlace path="/common/c32a4f4a-ff5d-49cf-bb59-5d9784539174.html"/> <#-- 导航 -->

${survey.title!}

${survey.description!}

开始日期 ${survey.startDate!},截止日期:${(survey.endDate)!} <#assign available=false/> <#if survey.startDate lt .now && .now lt survey.endDate> <#assign available=true/> 服务器时间 : ${.now} <#if available>进行中

<#macro message code>${springMacroRequestContext.getMessage(code)} <#if user?has_content> <@cms.userSurvey userId=user.id surveyId=survey.id> <#assign available=false/>

您已经参与过了!

<#else> <#assign available=false/>
    <@cms.surveyQuestionList surveyId=survey.id orderType='asc' pageSize=500> <#list page.list as a>
  • ${a.title!} <#if 'exam'=survey.surveyType>(${a.score!}分)

    <#if a.cover?has_content>

    ${a.title!}

    <#switch a.questionType> <#case 'radio'> <@cms.surveyQuestionItemList questionId=a.id pageSize=500> <#list page.list as i> <#break> <#case 'select'> <@cms.surveyQuestionItemList questionId=a.id pageSize=500> <#break> <#case 'checkbox'> <@cms.surveyQuestionItemList questionId=a.id pageSize=500> <#list page.list as i> <#break> <#case 'text'> <#break> <#case 'file'> disabled="true"/> <#break> <#case 'picture'> disabled="true"/> <#break>

disabled="true"/>

<@tools.includePlace path="/footer/7f8bacb5-30ca-4641-b66f-987d447b1a85.html"/> <#-- footer -->