Subversion Repositories wimsdev

Rev

Rev 15026 | Rev 15184 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!nocache
15146 obado 2
 
3
!! get the "presentgood" var to know if good answers must be displayed.
4
!readproc oef/get_presentgood.proc
5
 
15026 obado 6
<!-- Begin oef/present.phtml -->
20 reyssat 7
!if $status=waiting and $cmd!=hint and $hasembedding=yes
12349 bpr 8
  !form reply name="replyform" onsubmit="return formcheck();" autocomplete="off" id="a_oefform"
9
  !set q_form=yes
20 reyssat 10
!else
12349 bpr 11
  !set m_status=end
20 reyssat 12
!endif
13
 
4780 obado 14
<div class="oefstatement">
15026 obado 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>
12349 bpr 27
  !endif
20 reyssat 28
 
15026 obado 29
  !if $format=html or $format=
7680 bpr 30
 
15026 obado 31
    !if $executed_str!=$question or $oef2wims_version<3.10
32
      $question
33
    !else
34
      !read $deffile question
4810 bpr 35
 
15026 obado 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
12349 bpr 45
    !endif
4810 bpr 46
  !endif
20 reyssat 47
 
15026 obado 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" />
4780 obado 54
</div>
6607 bpr 55
 
15026 obado 56
<!-- End oef/present.phtml -->