Subversion Repositories wimsdev

Rev

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