Rev 14011 | Rev 14558 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !nocache |
3314 | bpr | 2 | !set wims_html_header=!append line $oefcss to $wims_html_header |
1664 | bpr | 3 | !header1 |
5655 | bpr | 4 | !set module_title=!module title_$lang $module |
5 | !default module_title=!module title $module |
||
6098 | bpr | 6 | <h3 class="wimscenter"> |
1664 | bpr | 7 | !href module=$module&cmd=intro WIMS |
6529 | bpr | 8 | $module_title<br /> |
6098 | bpr | 9 | <span class="smaller">--- $name_print ---</span></h3> |
1664 | bpr | 10 | |
11 | !if $error!=$empty |
||
12326 | bpr | 12 | !changeto oef/msg.phtml |
1664 | bpr | 13 | !endif |
14 | |||
4670 | bpr | 15 | !if ($wims_developer!= or $wims_user=supervisor) and $latex_exists=1 |
6098 | bpr | 16 | <div class="wimscenter"> |
2656 | bpr | 17 | !read oef/latex.proc print |
6098 | bpr | 18 | </div> |
2656 | bpr | 19 | !endif |
14006 | bpr | 20 | !for iii=1 to $n |
21 | <h4> |
||
22 | !href target=wims_light module=$module&exo=$(name_$iii)&cmd=new <span class="bold">$name_exo</span> $iii. |
||
23 | <span id="title_$iii">$(title_$iii)</span> |
||
24 | </h4> |
||
25 | !if $(question_$iii)=$empty |
||
12326 | bpr | 26 | ($name_noprint) |
1664 | bpr | 27 | !else |
14006 | bpr | 28 | !if __EXECUTED_ isin $(question_$iii) and _EXERCISE__ isin $(question_$iii) |
29 | !set thisexo=$(name_$iii) |
||
13798 | bpr | 30 | !!!!FIXME 5 |
12326 | bpr | 31 | !readproc oef/imagedir.proc |
14006 | bpr | 32 | !for k=1 to $(varcnt_$iii)+5 |
33 | !set val$k=!line $k of $(var_$iii) |
||
12326 | bpr | 34 | !next k |
14006 | bpr | 35 | <div id="exo_$iii"> |
36 | !read $(class_header)def/$(name_$iii).def question |
||
13787 | bpr | 37 | </div> |
12326 | bpr | 38 | !else |
14006 | bpr | 39 | <div id="exo_$iii"> |
40 | $(question_$iii) |
||
13787 | bpr | 41 | </div> |
12326 | bpr | 42 | !endif |
14006 | bpr | 43 | !if $(chce_$iii)!=$empty |
44 | <div class="wims_answer">$(chce_$iii)</div> |
||
13804 | bpr | 45 | !endif |
1664 | bpr | 46 | !endif |
12326 | bpr | 47 | <br class="clearall" /> |
14006 | bpr | 48 | !if $i__>=$(cnt_$iii) and $prompt___!=$empty |
13894 | bpr | 49 | <div class="spacer">$prompt___</div> |
13904 | bpr | 50 | !reset prompt___ |
13793 | bpr | 51 | !endif |
14006 | bpr | 52 | !if $(embedcnt$iii)=0 or $(embedcnt$iii)=$empty |
53 | !set tmp_cnt=!itemcnt $(Replyname$iii) |
||
13892 | bpr | 54 | <ul> |
55 | !for k=1 to $tmp_cnt-1 |
||
56 | <li> |
||
14006 | bpr | 57 | !set tmp=!item $k of $(Replyname$iii) |
13892 | bpr | 58 | !if $tmp!=$empty |
13900 | bpr | 59 | <em>$tmp</em>: |
13892 | bpr | 60 | !endif |
14006 | bpr | 61 | !set tmp=!line $k of $(Rg$iii) |
13904 | bpr | 62 | !set tmp=!nonempty items $tmp |
14006 | bpr | 63 | !if $((Replytype$iii)[$k]) iswordof dragfill clickfill reorder compose |
13904 | bpr | 64 | !replace internal , by </div>$ $<div class="drag_label" style="display:inline-block;"> \ |
65 | in <div class="drag_label" style="display:inline-block;">$tmp</div> |
||
66 | !else |
||
14006 | bpr | 67 | !if $((Replytype$iii)[$k]) iswordof radio menu checkbox |
13904 | bpr | 68 | !replace internal , by </li><li> in <ul><li>$tmp</li></ul> |
69 | !else |
||
70 | $tmp |
||
71 | !endif |
||
72 | !endif |
||
73 | !reset tmp |
||
13892 | bpr | 74 | </li> |
75 | !next |
||
76 | </ul> |
||
77 | !endif |
||
14011 | bpr | 78 | !next |
1664 | bpr | 79 | |
80 | !if $wims_user!=$empty and $wims_user!=supervisor |
||
12326 | bpr | 81 | !goto noans |
1664 | bpr | 82 | !endif |
83 | |||
84 | !if $test_print=1 |
||
12326 | bpr | 85 | <div class="wims_solution"> |
86 | <h3 class="wimscenter">$name_answers</h3> |
||
14006 | bpr | 87 | !for iii=1 to $n |
88 | !set t=!linecnt $(ans_$iii) |
||
12326 | bpr | 89 | !if $t>0 |
14006 | bpr | 90 | <div id="answer_$iii"> |
91 | <h4>$name_answer_i $iii.</h4> |
||
13798 | bpr | 92 | !if $t>1 |
93 | <ol style="list-style-type:square;"> |
||
94 | !endif |
||
12326 | bpr | 95 | !for k=1 to $t |
14018 | bpr | 96 | !if $(Replytype$iii[$k]) iswordof coord clock jsxgraphcurve jsxgraph draw |
14006 | bpr | 97 | !break |
98 | !endif |
||
99 | !set l__=!line $k of $(ans_$iii) |
||
12326 | bpr | 100 | !if $l__ != |
13798 | bpr | 101 | !if $t>1 |
102 | <li style="counter-reset:$k"> |
||
103 | !endif |
||
104 | $l__ |
||
105 | !if $t>1 |
||
106 | </li> |
||
107 | !endif |
||
12326 | bpr | 108 | !reset l__ |
109 | !endif |
||
110 | !next k |
||
13882 | bpr | 111 | !if $t>1 |
112 | </ol> |
||
113 | !endif |
||
13787 | bpr | 114 | </div> |
12326 | bpr | 115 | !endif |
14006 | bpr | 116 | !next iii |
12326 | bpr | 117 | </div><!--end of wims_solution--> |
1664 | bpr | 118 | !endif |
119 | |||
120 | :noans |
||
121 | |||
122 | !set wims_menu_items=!append line renew,1,cmd=reply&print=yes\ |
||
13912 | bpr | 123 | to $wims_menu_items |
124 | !if $wims_user=$empty |
||
125 | !set wims_menu_items=!append line back2,1,module=$module&cmd=intro\ |
||
126 | to $wims_menu_items |
||
127 | !endif |
||
1664 | bpr | 128 | !tail |