Subversion Repositories wimsdev

Rev

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