Subversion Repositories wimsdev

Rev

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

  1. !set wims_html_header=!append line $oefcss to $wims_html_header
  2. !header1
  3. <!-- adm/sheet/print.phtml START -->
  4. !read adm/title.phtml 2\
  5. $sheet_title
  6.  
  7. <div class="wims_sheet_desc">$sheet_desc</div>
  8.  
  9. $sheet_remark
  10.  
  11. !if $error!=$empty
  12.   !changeto lang/msg.phtml.$modu_lang
  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&sheet=$sh&exo=$(e_$iii)&cmd=new
  24.   <span class="bold">$name_exo</span> $iii.
  25.   <span id="title_$iii">$(title_$iii)</span>
  26.   </h3>
  27.   !if $(question_$iii)=$empty
  28.     ($name_noprint)
  29.   !else
  30.     !if __EXECUTED_ isin $(question_$iii) and _EXERCISE__ isin $(question_$iii)
  31.       !set e_=$(e_$iii)
  32.       !set thisexo=$e_
  33.       !set m_=$(module_$iii)
  34.       !readproc imagedir.proc
  35.       !for k=1 to $(varcnt_$iii)+5
  36.         !set val$k=!line $k of $(var_$iii)
  37.       !next k
  38.       !set wims_prefix=
  39.       <div id="exo_$iii">
  40.       !read $(class_header)def/$(e_$iii).def question
  41.       </div>
  42.       !set wims_prefix=$wims_prefix2
  43.     !else
  44.       <div id="exo_$iii">
  45.       $(question_$iii)
  46.       </div>
  47.     !endif
  48.     !if $(chce_$iii)!=$empty
  49.       <div class="wims_answer">$(chce_$iii)</div>
  50.     !endif
  51.   !endif
  52.   <br class="clearall" />
  53.   !if $i__>=$(cnt_$iii) and $prompt___!=$empty
  54.     <div class="spacer">$prompt___</div>
  55.   !endif
  56. !next
  57.  
  58. !if $public!=P and $wims_user!=supervisor
  59.   !goto noans
  60. !endif
  61.  
  62. <div class="wims_solution">
  63. <h2 class="wimscenter">$name_answers</h2>
  64. !for iii=1 to $N
  65.   !set t=!linecnt $(ans_$iii)
  66.   !if $t>0
  67.     <div id="answer_$iii">
  68.     <h3>$name_answer_i $iii.</h3>
  69.     !if $t>1
  70.       <ol style="list-style-type:square;">
  71.     !endif
  72.     !for k=1 to $t
  73.       !if $(Replytype$iii[$k]) iswordof coord clock jsxgraphcurve jsxgraph draw
  74.         !break
  75.       !endif
  76.       !set l__=!line $k of $(ans_$iii)
  77.       !if $l__ !=
  78.         !if $t>1
  79.           <li style="counter-reset:$k">
  80.         !endif
  81.           $l__
  82.         !if $t>1
  83.           </li>
  84.         !endif
  85.         !reset l__
  86.       !endif
  87.     !next k
  88.     !if $t>1
  89.       </ol>
  90.     !endif
  91.     </div>
  92.   !endif
  93. !next iii
  94. </div><!--end of wims_solution-->
  95.  
  96. :noans
  97.  
  98. !set wims_menu_items=!append line renew,1,cmd=reply\
  99. back2,1,cmd=reply&job=read\
  100. to $wims_menu_items
  101. !tail
  102.