Subversion Repositories wimsdev

Rev

Rev 17180 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7290 bpr 1
!! Modify informations on the exercises in a sheet
1969 guerimand 2
!!
15763 guerimand 3
!distribute lines $wims_read_parm into dir,parm_,require_,weight_,title_,desc_,dep_,comment_,feedback_,attribut_,indiv_
14268 obado 4
!! !set orgtit_=!module title $dir
13640 obado 5
!set wims_form_method=post
4861 bpr 6
!form reply
12387 bpr 7
!reset table_center
17180 bpr 8
<input type="hidden" name="modif" value="$ex_">
9
<input type="hidden" name="job" value="modify">
12701 bpr 10
<fieldset class="property_fields blockcenter">
11
  <legend>$wims_name_properties</legend>
12
  <div class="field box">
14268 obado 13
    !! if the sheet is active, the fields that may be changed are
14
    !! title, description, comment, feedback, attribut
12701 bpr 15
    <label for="mod_title">$wims_name_title</label>
14268 obado 16
    !!($name_oldtitle <em>$orgtit</em>)
17180 bpr 17
    <input size="50" name="mod_title" id="mod_title" value="$title_">
12701 bpr 18
  </div>
19
  <div class="field box fullwidth">
20
    <label for="mod_desc">$wims_name_Description</label>
13640 obado 21
    <textarea name="mod_desc" id="mod_desc" class="iEdit" maxlength="$edesc_limit">$desc_</textarea>
22
    <div class="formHelp">(&lt; $edesc_limit)</div>
12701 bpr 23
  </div>
24
  <div class="field box">
13640 obado 25
    !read adm/class/attribut.phtml
12701 bpr 26
  </div>
27
  <div class="field box fullwidth">
28
    <label for="mod_comment">$(name_shtab[7])</label>
13640 obado 29
    <textarea name="mod_comment" id="mod_comment" class="iEdit" maxlength="$edesc_limit">$comment_</textarea>
30
    <div class="formHelp">$name_desc_comment (&lt; $edesc_limit)</div>
12701 bpr 31
  </div>
14268 obado 32
  !if $activetest <= 0
17180 bpr 33
 
15910 guerimand 34
!! require points
14268 obado 35
    <div class="field box">
15910 guerimand 36
      !let require_list=!values 10*v for v=0 to $require_limit
37
      !if $indivtechvar=$empty
38
        <label for="mod_require">$name_pointsasked</label>
39
        !let mod_require=$require_
40
        !formselect mod_require list $require_list
17885 bpr 41
        <div class="formHelp">$name_warningrequ</div>
15910 guerimand 42
      !else
17885 bpr 43
        !! ---- in case of individual sheet activated by a technical variable
15910 guerimand 44
        <strong>$name_pointsasked</strong>
45
        !let tmp=!row 2 to -1 of $require_
46
        !let require_=!row 1 of $require_
47
        !let require_1_=!column 1 of $tmp
48
        !let require_2_=!column 2 of $tmp
49
        $table_header
50
          <thead>
51
            <tr>
52
              <th><label for="mod_weight">$name_default</label></th>
53
              !for k in $listval
54
                <th><label for="require$k">$k</label></th>
55
              !next k
56
            </tr>
57
          </thead>
58
          <tbody>
59
            $table_tr
60
              <td>
61
                !let mod_require=$require_
62
                !formselect mod_require list $require_list
63
              </td>
64
              !for k=1 to $nbtechvalue
65
                <td>
66
                  !let p=!positionof item $(listval[$k]) in $require_1_
67
                  !if $p!=$empty
68
                    !let require$k=!item $p of $require_2_
69
                  !else
70
                    !let require$k=$require_
71
                  !endif
72
                  !formselect require$k list $require_list
73
                </td>
74
              !next k
75
            </tr>
76
          </tbody>
77
        $table_end
78
      !endif
14268 obado 79
    </div>
80
 
17180 bpr 81
!! exotrymax (maximum try with score for an exo)
14268 obado 82
    !set mod_exotrymax=$get_exotrymax
83
    <div class="field box">
84
      <label for="exotrymax">$name_exotrymax</label>
17180 bpr 85
      <input size="2" maxlength="2" name="mod_exotrymax" value="$mod_exotrymax" id="exotrymax">
14268 obado 86
      !set wims_ref_class=wims_button_help float_right
87
      !href target=wims_mhelp cmd=help&special_parm=exotrymax $wims_name_help
88
    </div>
15910 guerimand 89
 
90
!! weight
14268 obado 91
    <div class="field box">
15910 guerimand 92
      !if $indivtechvar=$empty
93
        <label for="mod_weight">$name_weight</label>
17180 bpr 94
        <input size="4" name="mod_weight" id="mod_weight" value="$weight_">
15910 guerimand 95
        !set wims_ref_class=wims_button_help float_right
96
        !href target=wims_mhelp cmd=help&special_parm=weightexo $wims_name_help
97
      !else
98
        !! --------- in case of individual sheet activated by a technical variable
99
        <strong>$name_weight</strong>
100
        !let tmp=!row 2 to -1 of $weight_
101
        !let weight_=!row 1 of $weight_
102
        !let weight_1_=!column 1 of $tmp
103
        !let weight_2_=!column 2 of $tmp
104
        $table_header
105
          <thead>
106
            <tr>
107
              <th><label for="mod_weight">$name_default</label></th>
108
              !for k in $listval
109
                <th><label for="mod_weight$k">$k</label></th>
110
              !next k
111
            </tr>
112
          </thead>
113
          <tbody>
114
            $table_tr
115
              <td>
17180 bpr 116
                <input size="4" name="mod_weight" id="mod_weight" value="$weight_">
15910 guerimand 117
              </td>
118
              !for k=1 to $nbtechvalue
119
                <td>
120
                  !let p=!positionof item $(listval[$k]) in $weight_1_
121
                  !if $p!=$empty
122
                    !let v=!item $p of $weight_2_
123
                  !else
124
                    !let v=$weight_
125
                  !endif
17180 bpr 126
                  <input size="4" name="weight$k" id="mod_weight$k" value="$v">
15910 guerimand 127
                </td>
128
              !next k
129
            </tr>
130
          </tbody>
131
        $table_end
132
      !endif
14268 obado 133
    </div>
15910 guerimand 134
 
135
!! dependancies
14268 obado 136
    <div class="field box">
137
      <label for="mod_dep">$(name_shtab[6])</label>
17180 bpr 138
      <input size="40" name="mod_dep" id="mod_dep" value="$dep_">
14268 obado 139
      !set wims_ref_class=wims_button_help float_right
140
      !href target=wims_mhelp cmd=help&special_parm=dependancies $wims_name_help
141
      !reset mod_dep
142
    </div>
15910 guerimand 143
 
144
!! manage for indiv with techvar
15763 guerimand 145
    !if $indivtechvar!=$empty
146
      <div class="field box">
147
        <label for="indiv">$name_individualisation</label>
148
        !let mod_indiv=!listintersect $indiv_ and $listval
149
        !formcheckbox mod_indiv list $listval
150
        !set wims_ref_class=wims_button_help float_right
151
        !href target=wims_mhelp cmd=help&special_parm=indivtechvar $wims_name_help
152
        <div class="formHelp">$name_indiv_desc</div>
153
      </div>
154
    !endif
14268 obado 155
  !endif
14646 bpr 156
  !set feedback__=!rows2lines $feedback_
12701 bpr 157
  <div class="field box">
14268 obado 158
    <label for="mod_feedback">$(name_shtab[10])</label>
14646 bpr 159
    <textarea name="mod_feedback" id="mod_feedback" cols="60" class="nowrap">$feedback__</textarea>
14268 obado 160
    !set wims_ref_class=wims_button_help float_right
161
    !href target=wims_mhelp cmd=help&special_parm=feedback $wims_name_help
12701 bpr 162
  </div>
11037 obado 163
 
14268 obado 164
  !if $activetest <= 0
165
    !let oef=!defof category in wimshome/public_html/modules/$dir/INDEX
166
    !default oef=!defof category in wimshome/public_html/modules/$dir/index
167
    !if oef isitemof $oef
12701 bpr 168
      <div class="field box">
14268 obado 169
        <strong>$(name_shtab[9])</strong>
170
        !set parm__=$parm_
171
        !let parm_=!replace internal & by ; in $parm_;
172
        !let parm_=!replace internal scoredelay=; by scoredelay=0; in $parm_
173
        !let parm_=!replace internal exo=; by exo=0; in $parm_
174
        !let tmp_=!replace internal = by , in $parm_
175
        !let tmp2_=!column 1 of $tmp_
176
        !let tmp2_=!positionof item exo in $tmp2_
177
        !let tmp_=!column 2 of $tmp_
178
        !let tmp_=!item $tmp2_ of $tmp_
179
        !let tmp_=!nospace $tmp_
180
        !set wims_ref_class=wims_button float_right
181
        !href cmd=intro&module=$dir&special_parm=&special_parm2=&special_parm3=exo=$tmp_;$parm_&special_parm4=$sheet,$modif $(seriesaction[1])
182
        <pre>$dir
183
$parm_</pre>
184
      </div>
7400 bpr 185
 
14268 obado 186
      !read getparm $parm__ exo qnum random
187
      !set exocnt_=!itemcnt $get_exo
188
      !read adm/class/exo_order.phtml
189
 
12701 bpr 190
    !endif
14268 obado 191
  !endif activetest
192
</fieldset>
5926 bpr 193
 
14268 obado 194
<div class="wimscenter wimsform">
17180 bpr 195
  <input type="submit" value="$wims_name_tosave"> &nbsp;
14268 obado 196
  !set wims_ref_class=wims_button wims_secondary_button
197
  !href cmd=resume $wims_name_giveup
198
</div>
5926 bpr 199
!formend