Subversion Repositories wimsdev

Rev

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