Subversion Repositories wimsdev

Rev

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

  1. !read dialog/$lang/names
  2.  
  3. !set renewlink=cmd=renew&worksheet=$worksheet&$module_init_parm
  4. !set module_title=$module_title: $title
  5. !set wims_html_header=!append line <style>.dialog_answer {\
  6.   border: 1px solid #CCC;\
  7.  border-left-color: var(--wims_ref_bgcolor);\
  8.   border-left-width: .2em;\
  9.   margin: 2% 2%;\
  10.   padding: 1em;}</style>\
  11.   to $wims_html_header
  12. !header
  13.  
  14. !if $title=$empty
  15.   $name_emptytitle
  16.   <div class="wimscenter">
  17.   !set wims_ref_class=wims_button
  18.   !href module=$module $name_restart
  19.   , $wims_name_or
  20.   !set wims_ref_class=wims_button
  21.   !href $ $wims_name_giveup
  22.   . </div>
  23.   !goto end
  24. !endif
  25.  
  26. :tester
  27. !read dialog/present.phtml
  28.  
  29. <hr style="width:50%">
  30.  
  31. !if $cmd=hint
  32.   !read dialog/hint.phtml
  33.   !goto end
  34. !endif
  35.  
  36. !if $status=waiting
  37.   !if $error!=$empty
  38.     !read dialog/msg.phtml
  39.     <hr style="width:50%">
  40.   !endif
  41.   !read dialog/form.phtml
  42.   <p>
  43.   !if $hint!=$empty and $givehint>0
  44.     !set wims_ref_class=wims_button_help
  45.     !href cmd=hint $name_Hint
  46.   !endif
  47.   !set wims_ref_class=wims_button
  48.   !if $qnum<=1
  49.     !href $renewlink $name_exo_renew
  50.   !else
  51.     $name_serie_exo
  52.     !href $renewlink $name_serie_renew
  53.   !endif
  54.   </p>
  55. !else
  56.   !if $error!=$empty
  57.      !read dialog/msg.phtml
  58.      <hr style="width:50%">
  59.   !endif
  60.   !read dialog/answer.phtml
  61.   <p>
  62.   !if $status!=$empty
  63.     $name_serie_exo2 <p>
  64.     !set wims_ref_class=wims_button
  65.     !href cmd=next $name_serie_nextexo
  66.      $wims_name_or
  67.     !set wims_ref_class=wims_button
  68.     !href $renewlink $name_exo_renew
  69. . $name_serie_new2
  70.  !else
  71.     !if $qnum>1
  72.       $name_serie_score
  73.       !ifval $score>9.8
  74.         $wims_name_Congratulations
  75.       !endif
  76.       <p>
  77.       !set wims_ref_class=wims_button
  78.         !href exo_Again
  79.       !if $wims_sheet=$empty
  80.         !set wims_ref_class=wims_button
  81.         !href exo_Intro
  82.       !endif
  83.       </p>
  84.     !else
  85.       $name_exo_score
  86.       !ifval $score>9.8
  87.         $wims_name_Congratulations
  88.       !endif
  89.       <p>
  90.       !set wims_ref_class=wims_button
  91.       !href exo_Again
  92.       !if $wims_sheet=$empty and $oef_test!=yes
  93.         !set wims_ref_class=wims_button
  94.         !href exo_Intro
  95.       !endif
  96.       </p>
  97.     !endif
  98.   !endif
  99. !endif
  100.  
  101. !read endhook.phtml
  102. :end
  103.  
  104. !tail
  105.