Rev 17176 | 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. |
||
17501 | czzmrn | 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 |
||
15146 | obado | 8 | |
15026 | obado | 9 | <!-- Begin oef/present.phtml --> |
20 | reyssat | 10 | !if $status=waiting and $cmd!=hint and $hasembedding=yes |
17123 | bpr | 11 | <datalist id="emptylist"><option value="??"></datalist> |
17110 | bpr | 12 | !form reply name="replyform" onsubmit="return formcheck();" id="a_oefform" autocomplete="off" spellcheck="false" |
12349 | bpr | 13 | !set q_form=yes |
20 | reyssat | 14 | !else |
12349 | bpr | 15 | !set m_status=end |
20 | reyssat | 16 | !endif |
17 | |||
4780 | obado | 18 | <div class="oefstatement"> |
15026 | obado | 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 $ 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 |
||
17176 | bpr | 28 | <img src="$question_url" alt="question"> |
15026 | obado | 29 | !endif |
30 | </div> |
||
12349 | bpr | 31 | !endif |
20 | reyssat | 32 | |
15026 | obado | 33 | !if $format=html or $format= |
7680 | bpr | 34 | |
15026 | obado | 35 | !if $executed_str!=$question or $oef2wims_version<3.10 |
36 | $question |
||
37 | !else |
||
16080 | bpr | 38 | !if $q_form!=yes |
39 | !set wims_parm_detag=label |
||
40 | !endif |
||
15026 | obado | 41 | !read $deffile question |
16080 | bpr | 42 | !reset wims_parm_detag |
15026 | obado | 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 < in $credits |
||
46 | !!!if .png isin $credits |
||
47 | !! !set logo_img=!nospace $credits |
||
17176 | bpr | 48 | !! !set credits=<img src="$module_dir/images/$logo_img" alt="logo"> |
15026 | obado | 49 | !!!endif |
50 | <div class="wims_credits"><cite>$credits</cite></div> |
||
51 | !endif |
||
12349 | bpr | 52 | !endif |
4810 | bpr | 53 | !endif |
20 | reyssat | 54 | |
15026 | obado | 55 | !if $plot_fn!=$empty |
56 | <p style="text-align:center" class="oef_plot_fn"> |
||
57 | !insplot $plot_fn notitle |
||
58 | </p> |
||
59 | !endif |
||
17176 | bpr | 60 | <br class="clearall"> |
4780 | obado | 61 | </div> |
6607 | bpr | 62 | |
15026 | obado | 63 | <!-- End oef/present.phtml --> |