Subversion Repositories wimsdev

Rev

Rev 16082 | Rev 17176 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16082 Rev 16937
Line 15... Line 15...
15
!if ($wims_developer!= or $wims_user=supervisor) and $latex_exists=1
15
!if ($wims_developer!= or $wims_user=supervisor) and $latex_exists=1
16
  <div class="wimscenter">
16
  <div class="wimscenter">
17
  !read oef/latex.proc print
17
  !read oef/latex.proc print
18
  </div>
18
  </div>
19
!endif
19
!endif
-
 
20
!if $printlatex!=yes
20
<h2 class="wimscenter">$wims_name_Exercices</h2>
21
  <h2 class="wimscenter">$wims_name_Exercices</h2>
21
!for iii=1 to $n
22
  !for iii=1 to $n
22
  <h3>
23
    <h3>
23
  !href target=wims_light module=$module&exo=$(name_$iii)&cmd=new <span class="bold">$name_exo</span> $iii.
24
    !href target=wims_light module=$module&exo=$(name_$iii)&cmd=new <span class="bold">$name_exo</span> $iii.
24
  <span id="title_$iii">$(title_$iii)</span>
25
    <span id="title_$iii">$(title_$iii)</span>
25
  </h3>
26
    </h3>
26
  !if $(question_$iii)=$empty
27
    !if $(question_$iii)=$empty
27
    ($name_noprint)
28
      ($name_noprint)
28
  !else
-
 
29
    !set wims_parm_detag=label
-
 
30
    !if __EXECUTED_ isin $(question_$iii) and _EXERCISE__ isin $(question_$iii)
-
 
31
      !set thisexo=$(name_$iii)
-
 
32
      !!!!FIXME 5
-
 
33
      !readproc oef/imagedir.proc
-
 
34
      !for k=1 to $(varcnt_$iii)+5
-
 
35
        !set val$k=!line $k of $(var_$iii)
-
 
36
      !next k
-
 
37
      <div id="exo_$iii">
-
 
38
      !read $(class_header)def/$(name_$iii).def question
-
 
39
      </div>
-
 
40
    !else
29
    !else
-
 
30
      !set wims_parm_detag=label
-
 
31
      !if __EXECUTED_ isin $(question_$iii) and _EXERCISE__ isin $(question_$iii)
-
 
32
        !set thisexo=$(name_$iii)
-
 
33
        !!!!FIXME 5
-
 
34
        !readproc oef/imagedir.proc
-
 
35
        !for k=1 to $(varcnt_$iii)+5
-
 
36
          !set val$k=!line $k of $(var_$iii)
-
 
37
        !next k
-
 
38
        <div id="exo_$iii">
-
 
39
        !read $(class_header)def/$(name_$iii).def question
-
 
40
        </div>
-
 
41
      !else
41
      <div id="exo_$iii">
42
        <div id="exo_$iii">
42
      $(question_$iii)
43
        $(question_$iii)
43
      </div>
44
        </div>
44
    !endif
45
      !endif
45
    !if $(chce_$iii)!=$empty
46
      !if $(chce_$iii)!=$empty
46
      <div class="wims_answer">$(chce_$iii)</div>
47
        <div class="wims_answer">$(chce_$iii)</div>
-
 
48
      !endif
-
 
49
      !reset wims_parm_detag
47
    !endif
50
    !endif
48
    !reset wims_parm_detag
-
 
49
  !endif
-
 
50
  <br class="clearall" />
51
    <br class="clearall" />
51
  !if $i__>=$(cnt_$iii) and $prompt___!=$empty
52
    !if $i__>=$(cnt_$iii) and $prompt___!=$empty
52
    <div class="spacer">$prompt___</div>
53
      <div class="spacer">$prompt___</div>
53
    !reset prompt___
54
      !reset prompt___
54
  !endif
55
    !endif
55
  !if $(embedcnt$iii)=0 or $(embedcnt$iii)=$empty
56
    !if $(embedcnt$iii)=0 or $(embedcnt$iii)=$empty
56
    !set tmp_cnt=!itemcnt $(Replyname$iii)
57
      !set tmp_cnt=!itemcnt $(Replyname$iii)
57
    <ul>
58
      <ul>
58
    !for k=1 to $tmp_cnt-1
59
      !for k=1 to $tmp_cnt-1
59
      <li>
60
        <li>
60
      !set tmp=!item $k of $(Replyname$iii)
61
        !set tmp=!item $k of $(Replyname$iii)
61
      !if $tmp!=$empty
62
        !if $tmp!=$empty
62
        <em>$tmp</em>:
63
          <em>$tmp</em>:
63
      !endif
64
        !endif
64
      !set tmp=!line $k of $(Rg$iii)
65
        !set tmp=!line $k of $(Rg$iii)
65
      !set tmp=!nonempty items $tmp
66
        !set tmp=!nonempty items $tmp
66
      !if $((Replytype$iii)[$k]) iswordof dragfill clickfill reorder compose
67
        !if $((Replytype$iii)[$k]) iswordof dragfill clickfill reorder compose
67
        !replace internal , by </div>$ $<div class="drag_label" style="display:inline-block;"> \
68
          !replace internal , by </div>$ $<div class="drag_label" style="display:inline-block;"> \
68
in <div class="drag_label" style="display:inline-block;">$tmp</div>
69
in <div class="drag_label" style="display:inline-block;">$tmp</div>
69
      !else
-
 
70
        !if $((Replytype$iii)[$k]) iswordof radio menu checkbox
-
 
71
          !replace internal , by </li><li> in <ul><li>$tmp</li></ul>
-
 
72
        !else
70
        !else
73
          $tmp
-
 
74
        !endif
-
 
75
      !endif
-
 
76
      !reset tmp
-
 
77
      </li>
-
 
78
    !next
-
 
79
    </ul>
-
 
80
  !endif
-
 
81
!next
-
 
82
 
-
 
83
!if $wims_user!=$empty and $wims_user!=supervisor
-
 
84
  !goto noans
-
 
85
!endif
-
 
86
 
-
 
87
!if $test_print=1
-
 
88
  <div class="wims_solution">
-
 
89
  <h2 class="wimscenter">$name_answers</h2>
-
 
90
  !for iii=1 to $n
-
 
91
    !set t=!linecnt $(ans_$iii)
-
 
92
    !if $t>0
-
 
93
      <div id="answer_$iii">
-
 
94
      <h3>$name_answer_i $iii.</h3>
-
 
95
      !if $t>1
-
 
96
        <ol style="list-style-type:square;">
-
 
97
      !endif
-
 
98
      !for k=1 to $t
-
 
99
        !if $(Replytype$iii[$k]) iswordof coord clock jsxgraphcurve jsxgraph draw
71
          !if $((Replytype$iii)[$k]) iswordof radio menu checkbox
100
          !break
-
 
101
        !endif
-
 
102
        !set l__=!line $k of $(ans_$iii)
-
 
103
        !if $l__ !=
-
 
104
          !if $t>1
-
 
105
            <li style="counter-reset:$k">
72
            !replace internal , by </li><li> in <ul><li>$tmp</li></ul>
106
          !endif
73
          !else
107
            $l__
74
            $tmp
108
          !if $t>1
-
 
109
            </li>
-
 
110
          !endif
75
          !endif
111
          !reset l__
-
 
112
        !endif
76
        !endif
-
 
77
        !reset tmp
-
 
78
        </li>
113
      !next k
79
      !next
-
 
80
      </ul>
-
 
81
    !endif
-
 
82
  !next
-
 
83
 
-
 
84
  !if $wims_user!=$empty and $wims_user!=supervisor
-
 
85
    !goto noans
-
 
86
  !endif
-
 
87
 
-
 
88
  !if $test_print=1
-
 
89
    <div class="wims_solution">
-
 
90
    <h2 class="wimscenter">$name_answers</h2>
-
 
91
    !for iii=1 to $n
-
 
92
      !set t=!linecnt $(ans_$iii)
114
      !if $t>1
93
      !if $t>0
-
 
94
        <div id="answer_$iii">
-
 
95
        <h3>$name_answer_i $iii.</h3>
-
 
96
        !if $t>1
-
 
97
          <ol style="list-style-type:square;">
-
 
98
        !endif
-
 
99
        !for k=1 to $t
-
 
100
          !if $(Replytype$iii[$k]) iswordof coord clock jsxgraphcurve jsxgraph draw
-
 
101
            !break
-
 
102
          !endif
-
 
103
          !set l__=!line $k of $(ans_$iii)
-
 
104
          !if $l__ !=
-
 
105
            !if $t>1
-
 
106
              <li style="counter-reset:$k">
-
 
107
            !endif
-
 
108
              $l__
-
 
109
            !if $t>1
-
 
110
              </li>
-
 
111
            !endif
-
 
112
            !reset l__
-
 
113
          !endif
-
 
114
        !next k
-
 
115
        !if $t>1
115
        </ol>
116
          </ol>
-
 
117
        !endif
-
 
118
        </div>
116
      !endif
119
      !endif
117
      </div>
-
 
118
    !endif
-
 
119
  !next iii
120
    !next iii
120
  </div><!--end of wims_solution-->
121
    </div><!--end of wims_solution-->
-
 
122
  !endif
121
!endif
123
!endif
122
 
124
 
123
:noans
125
:noans
124
 
126
 
125
!set wims_menu_items=!append line renew,1,cmd=reply&print=yes\
127
!set wims_menu_items=!append line renew,1,cmd=reply&print=yes\
126
  to $wims_menu_items
128
  to $wims_menu_items
-
 
129
!if $latex_exists=1
-
 
130
  !set wims_menu_items=!append line printlatex,1,cmd=reply&print=yes&printlatex=yes\
-
 
131
to $wims_menu_items
-
 
132
!endif
127
!if $wims_user=$empty
133
!if $wims_user=$empty
128
  !set wims_menu_items=!append line back2,1,module=$module&cmd=intro\
134
  !set wims_menu_items=!append line back2,1,module=$module&cmd=intro\
129
    to $wims_menu_items
135
    to $wims_menu_items
130
!endif
136
!endif
131
!tail
137
!tail