Subversion Repositories wimsdev

Rev

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