NavigationTemplate.htm 777 B

12345678910111213141516171819
  1. {#template MAIN}
  2. {#include nagationBuilder root=$T}
  3. {#/template MAIN}
  4. {#template nagationBuilder}
  5. {#param name=st value=0}
  6. {#foreach $T as t}
  7. <div class='navigationContent subtitleContent'>
  8. <a href="#t({$T.t.id})" class='navigation_subtitle' style="float:left;margin-top:5px;margin-left:20px;">{$T.t.name} ({$T.t.questions.length})</a>
  9. </div>
  10. <div class="questionContent">
  11. {#foreach prepareQuestions($T.t.id,$T.t.questions) as q}
  12. <div class="navigationContent">
  13. <a href="#q({$T.q.question_id})" onclick="q({$T.q.question_id})" class='navigation_question' id='navigation_{$T.q.question_id}'>{$P.st=$P.st+1}.{$T.q.content}</a>
  14. </div>
  15. {#/for}
  16. </div>
  17. {#/for}
  18. {#/template nagationBuilder}