12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- ********** 模板入口 *************
- {#template MAIN}
- {#include questionBuilder root=$T}
- {#/template MAIN}
- ********** 创建题干和答案模板 *********
- {#template questionBuilder}
- <div class="question-type">{$T.typeName}</div>
- <div class="questioncontainer">
- {#if $T.base_question_type_id == 1}
- {currentIndex}. {$T.content} <font color='red'>({$T.score}分)</font></div>
- {#include questionImg root=$T}
- <div class="answercontainer">
- {#foreach $T.Answers as a}
- <div class="ae">
- <span class="answers"><input type="radio" id="{$T.a.provid_answer_id}" value="{$T.a.provid_answer_id}" name="st-radio-{$T.base_question_type_id}-{$T.test_question_Id}" onclick='Check_rad(this,"{$T.a.provid_answer_id}","{$T.test_question_Id}");' />
- <label for='{$T.a.provid_answer_id}'>{$T.a.answer_name}</label>{#include answerImg root=$T.a}</span>
- </div>
- {#/for}
- </div>
-
- {#elseif $T.base_question_type_id == 2}
- {currentIndex}. {transformMuilte($T.base_question_type_id,$T.typeName,$T)} <font color='red'>({$T.score}分)</font></div>
- {#include questionImg root=$T}
-
- {#elseif $T.base_question_type_id == 3}
- {currentIndex}. {$T.content} <font color='red'>({$T.score}分)</font></div>
- {#include questionImg root=$T}
- <div class="answercontainer">
- {#foreach $T.Answers as a}
- <div class="ae">
- <input type="checkbox" id="{$T.a.provid_answer_id}" value="{$T.a.provid_answer_id}" name="st-{$T.base_question_type_id}-{$T.test_question_Id}" onclick="Check_chk(this,'st-{$T.base_question_type_id}-{$T.test_question_Id}','{$T.a.provid_answer_id}','{$T.test_question_Id}');"/>
- <label for='{$T.a.provid_answer_id}'>{$T.a.answer_name}</label>{#include answerImg root=$T.a}
- </div>
- {#/for}
- </div>
-
- {#elseif $T.base_question_type_id == 4}
- {currentIndex}. {$T.content} <font color='red'>({$T.score}分)</font></div>
- {#include questionImg root=$T}
- <div class="answercontainer">
- {#foreach $T.Answers as a}
- <div class="ae">
- <span class="answer"><input type="radio" id="{$T.a.provid_answer_id}" value="{$T.a.provid_answer_id}" name="st-{$T.base_question_type_id}-{$T.test_question_Id}" onclick='Check_rad(this,"{$T.a.provid_answer_id}","{$T.test_question_Id}");' />
- <label for='{$T.a.provid_answer_id}'>{$T.a.answer_name}</label>{#include answerImg root=$T.a}</span>
- </div>
- {#/for}
- <div style="clear:both;"></div>
- </div>
-
- {#elseif $T.base_question_type_id == 5}
- {currentIndex}. {$T.content} <font color='red'>({$T.score}分)</font></div>
- {#include questionImg root=$T}
- <div class="answercontainer">
- <textarea questionid='{$T.question_id}' style='WIDTH:90%;HEIGHT:100px' name='ST-{$T.base_question_type_id}-{$T.test_question_Id}'
- onblur='Check_area(this,"{$T.Answers[0].provid_answer_id}","{$T.test_question_Id}");'></textarea>
- </div>
- {#/if}
- <div id="rightAnswerContainer">参考答案为: <span id="refAnswer"></span></div>
- {#/template questionBuilder}
- {#template questionImg}
- {#if $T.hasImg}
- <div>
- <img src="{fileServerUrl + $T.url}" width="250px" style="cursor:pointer;margin-left:15px;" />
- </div>
- {#/if}
- {#/template questionImg}
- {#template answerImg}
- {#if $T.hasImg}
- <div>
- <img src="{fileServerUrl + $T.url}" width="250px" style="cursor:pointer;margin-left:15px;" />
- </div>
- {#/if}
- {#/template answerImg}
|