Subversion Repositories wimsdev

Rev

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

  1. !nocache
  2.  
  3. !! get the "presentgood" var to know if good answers must be displayed.
  4. !read oef/testseedscore.phtml
  5. !readproc oef/get_presentgood.proc
  6.  
  7. <!-- Begin oef/present.phtml -->
  8. !if $status=waiting and $cmd!=hint and $hasembedding=yes
  9.   !form reply name="replyform" onsubmit="return formcheck();" autocomplete="off" id="a_oefform"
  10.   !set q_form=yes
  11. !else
  12.   !set m_status=end
  13. !endif
  14.  
  15. <div class="oefstatement">
  16.   !if $format=tex
  17.     <div class="oef_tex_format" style="text-align:center">
  18.       !if $question_url=$empty or $cmd=resume
  19.         !set quest_=!replace &#36; by $$$$ in $question
  20.        !set wims_texsize=1
  21.         !instex \narrower\narrower {\bf $name_exo} $quest_
  22.         !set wims_texsize=0
  23.         !set question_url=$ins_url
  24.       !else
  25.         <img src="$question_url" alt="question" />
  26.       !endif
  27.     </div>
  28.   !endif
  29.  
  30.   !if $format=html or $format=
  31.  
  32.     !if $executed_str!=$question or $oef2wims_version<3.10
  33.       $question
  34.     !else
  35.       !read $deffile question
  36.  
  37.       !if $credits!=$empty and .. notin $credits and \ notin $credits \
  38.           and ($wims_user iswordof supervisor or $wims_user=$empty)
  39.         !set credits=!replace internal < by &lt; in $credits
  40.         !!!if .png isin $credits
  41.         !!  !set logo_img=!nospace $credits
  42.         !!  !set credits=<img src="$module_dir/images/$logo_img" alt="logo" />
  43.         !!!endif
  44.         <div class="wims_credits"><cite>$credits</cite></div>
  45.       !endif
  46.     !endif
  47.   !endif
  48.  
  49.   !if $plot_fn!=$empty
  50.     <p style="text-align:center" class="oef_plot_fn">
  51.       !insplot $plot_fn notitle
  52.     </p>
  53.   !endif
  54.   <br class="clearall" />
  55. </div>
  56.  
  57. <!-- End oef/present.phtml -->
  58.