********** 模板入口 *************
{#template MAIN}
{#include questionBuilder root=$T}
{#/template MAIN}
********** 创建题干和答案模板 *********
{#template questionBuilder}
{$T.typeName}
{#if $T.base_question_type_id == 1}
{currentIndex}. {$T.content} ({$T.score}分)
{#include questionImg root=$T}
{#foreach $T.Answers as a}
{#include answerImg root=$T.a}
{#/for}
{#elseif $T.base_question_type_id == 2}
{currentIndex}. {transformMuilte($T.base_question_type_id,$T.typeName,$T)} ({$T.score}分)
{#include questionImg root=$T}
{#elseif $T.base_question_type_id == 3}
{currentIndex}. {$T.content} ({$T.score}分)
{#include questionImg root=$T}
{#foreach $T.Answers as a}
{#include answerImg root=$T.a}
{#/for}
{#elseif $T.base_question_type_id == 4}
{currentIndex}. {$T.content} ({$T.score}分)
{#include questionImg root=$T}
{#foreach $T.Answers as a}
{#include answerImg root=$T.a}
{#/for}
{#elseif $T.base_question_type_id == 5}
{currentIndex}. {$T.content} ({$T.score}分)
{#include questionImg root=$T}
{#/if}
参考答案为:
{#/template questionBuilder}
{#template questionImg}
{#if $T.hasImg}
{#/if}
{#/template questionImg}
{#template answerImg}
{#if $T.hasImg}
{#/if}
{#/template answerImg}