Subversion Repositories wimsdev

Rev

Rev 14018 | Rev 16082 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !nocache
  2. !set wims_html_header=!append line $oefcss to $wims_html_header
  3. !header1
  4. !set module_title=!module title_$lang $module
  5. !default module_title=!module title $module
  6. <h1 class="wimscenter">
  7. !href module=$module&cmd=intro WIMS
  8.  $module_title<br />
  9. <span class="smaller">--- $name_print ---</span></h1>
  10.  
  11. !if $error!=$empty
  12.   !changeto oef/msg.phtml
  13. !endif
  14.  
  15. !if ($wims_developer!= or $wims_user=supervisor) and $latex_exists=1
  16.   <div class="wimscenter">
  17.   !read oef/latex.proc print
  18.   </div>
  19. !endif
  20. <h2 class="wimscenter">$wims_name_Exercices</h2>
  21. !for iii=1 to $n
  22.   <h3>
  23.   !href target=wims_light module=$module&exo=$(name_$iii)&cmd=new <span class="bold">$name_exo</span> $iii.
  24.   <span id="title_$iii">$(title_$iii)</span>
  25.   </h3>
  26.   !if $(question_$iii)=$empty
  27.     ($name_noprint)
  28.   !else
  29.     !if __EXECUTED_ isin $(question_$iii) and _EXERCISE__ isin $(question_$iii)
  30.       !set thisexo=$(name_$iii)
  31.       !!!!FIXME 5
  32.       !readproc oef/imagedir.proc
  33.       !for k=1 to $(varcnt_$iii)+5
  34.         !set val$k=!line $k of $(var_$iii)
  35.       !next k
  36.       <div id="exo_$iii">
  37.       !read $(class_header)def/$(name_$iii).def question
  38.       </div>
  39.     !else
  40.       <div id="exo_$iii">
  41.       $(question_$iii)
  42.       </div>
  43.     !endif
  44.     !if $(chce_$iii)!=$empty
  45.       <div class="wims_answer">$(chce_$iii)</div>
  46.     !endif
  47.   !endif
  48.   <br class="clearall" />
  49.   !if $i__>=$(cnt_$iii) and $prompt___!=$empty
  50.     <div class="spacer">$prompt___</div>
  51.     !reset prompt___
  52.   !endif
  53.   !if $(embedcnt$iii)=0 or $(embedcnt$iii)=$empty
  54.     !set tmp_cnt=!itemcnt $(Replyname$iii)
  55.     <ul>
  56.     !for k=1 to $tmp_cnt-1
  57.       <li>
  58.       !set tmp=!item $k of $(Replyname$iii)
  59.       !if $tmp!=$empty
  60.         <em>$tmp</em>:
  61.       !endif
  62.       !set tmp=!line $k of $(Rg$iii)
  63.       !set tmp=!nonempty items $tmp
  64.       !if $((Replytype$iii)[$k]) iswordof dragfill clickfill reorder compose
  65.         !replace internal , by </div>$ $<div class="drag_label" style="display:inline-block;"> \
  66. in <div class="drag_label" style="display:inline-block;">$tmp</div>
  67.       !else
  68.         !if $((Replytype$iii)[$k]) iswordof radio menu checkbox
  69.           !replace internal , by </li><li> in <ul><li>$tmp</li></ul>
  70.         !else
  71.           $tmp
  72.         !endif
  73.       !endif
  74.       !reset tmp
  75.       </li>
  76.     !next
  77.     </ul>
  78.   !endif
  79. !next
  80.  
  81. !if $wims_user!=$empty and $wims_user!=supervisor
  82.   !goto noans
  83. !endif
  84.  
  85. !if $test_print=1
  86.   <div class="wims_solution">
  87.   <h2 class="wimscenter">$name_answers</h2>
  88.   !for iii=1 to $n
  89.     !set t=!linecnt $(ans_$iii)
  90.     !if $t>0
  91.       <div id="answer_$iii">
  92.       <h3>$name_answer_i $iii.</h3>
  93.       !if $t>1
  94.         <ol style="list-style-type:square;">
  95.       !endif
  96.       !for k=1 to $t
  97.         !if $(Replytype$iii[$k]) iswordof coord clock jsxgraphcurve jsxgraph draw
  98.           !break
  99.         !endif
  100.         !set l__=!line $k of $(ans_$iii)
  101.         !if $l__ !=
  102.           !if $t>1
  103.             <li style="counter-reset:$k">
  104.           !endif
  105.             $l__
  106.           !if $t>1
  107.             </li>
  108.           !endif
  109.           !reset l__
  110.         !endif
  111.       !next k
  112.       !if $t>1
  113.         </ol>
  114.       !endif
  115.       </div>
  116.     !endif
  117.   !next iii
  118.   </div><!--end of wims_solution-->
  119. !endif
  120.  
  121. :noans
  122.  
  123. !set wims_menu_items=!append line renew,1,cmd=reply&print=yes\
  124.   to $wims_menu_items
  125. !if $wims_user=$empty
  126.   !set wims_menu_items=!append line back2,1,module=$module&cmd=intro\
  127.     to $wims_menu_items
  128. !endif
  129. !tail
  130.