Subversion Repositories wimsdev

Rev

Rev 17176 | 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. !! now these files are read by ans.proc. Are these lines needed?
  5. !! does it make any harm leaving them here?
  6. !! !read oef/testseedscore.phtml
  7. !! !readproc oef/get_presentgood.proc
  8.  
  9. <!-- Begin oef/present.phtml -->
  10. !if $status=waiting and $cmd!=hint and $hasembedding=yes
  11.   <datalist id="emptylist"><option value="??"></datalist>
  12.   !form reply name="replyform" onsubmit="return formcheck();" id="a_oefform" autocomplete="off" spellcheck="false"
  13.   !set q_form=yes
  14. !else
  15.   !set m_status=end
  16. !endif
  17.  
  18. <div class="oefstatement">
  19.   !if $format=tex
  20.     <div class="oef_tex_format" style="text-align:center">
  21.       !if $question_url=$empty or $cmd=resume
  22.         !set quest_=!replace &#36; by $$$$ in $question
  23.        !set wims_texsize=1
  24.         !instex \narrower\narrower {\bf $name_exo} $quest_
  25.         !set wims_texsize=0
  26.         !set question_url=$ins_url
  27.       !else
  28.         <img src="$question_url" alt="question">
  29.       !endif
  30.     </div>
  31.   !endif
  32.  
  33.   !if $format=html or $format=
  34.  
  35.     !if $executed_str!=$question or $oef2wims_version<3.10
  36.       $question
  37.     !else
  38.       !if $q_form!=yes
  39.         !set wims_parm_detag=label
  40.       !endif
  41.       !read $deffile question
  42.       !reset wims_parm_detag
  43.       !if $credits!=$empty and .. notin $credits and \ notin $credits \
  44.           and ($wims_user iswordof supervisor or $wims_user=$empty)
  45.         !set credits=!replace internal < by &lt; in $credits
  46.         !!!if .png isin $credits
  47.         !!  !set logo_img=!nospace $credits
  48.         !!  !set credits=<img src="$module_dir/images/$logo_img" alt="logo">
  49.         !!!endif
  50.         <div class="wims_credits"><cite>$credits</cite></div>
  51.       !endif
  52.     !endif
  53.   !endif
  54.  
  55.   !if $plot_fn!=$empty
  56.     <p style="text-align:center" class="oef_plot_fn">
  57.       !insplot $plot_fn notitle
  58.     </p>
  59.   !endif
  60.   <br class="clearall">
  61. </div>
  62.  
  63. <!-- End oef/present.phtml -->
  64.