Rev 13662 | Rev 14646 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13662 | Rev 14268 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !! Modify informations on the exercises in a sheet |
1 | !! Modify informations on the exercises in a sheet |
2 | !! |
2 | !! |
3 | !distribute lines $wims_read_parm into |
3 | !distribute lines $wims_read_parm into dir,parm_,require_,weight_,title_,desc_,dep_,comment_,feedback_,attribut_ |
4 | !! !set orgtit_=!module title |
4 | !! !set orgtit_=!module title $dir |
5 | !set wims_form_method=post |
5 | !set wims_form_method=post |
6 | !form reply |
6 | !form reply |
7 | !reset table_center |
7 | !reset table_center |
8 | <input type="hidden" name="modif" value="$ex_" /> |
8 | <input type="hidden" name="modif" value="$ex_" /> |
9 | <input type="hidden" name="job" value="modify" /> |
9 | <input type="hidden" name="job" value="modify" /> |
10 | <fieldset class="property_fields blockcenter"> |
10 | <fieldset class="property_fields blockcenter"> |
11 | <legend>$wims_name_properties</legend> |
11 | <legend>$wims_name_properties</legend> |
12 | <div class="field box"> |
12 | <div class="field box"> |
13 | !! if the sheet is active, the fields that may be changed are |
13 | !! if the sheet is active, the fields that may be changed are |
14 | !! title, description, comment, feedback, attribut |
14 | !! title, description, comment, feedback, attribut |
15 | <label for="mod_title">$wims_name_title</label> |
15 | <label for="mod_title">$wims_name_title</label> |
16 | !!($name_oldtitle <em>$orgtit</em>) |
16 | !!($name_oldtitle <em>$orgtit</em>) |
17 | <input size="50" name="mod_title" id="mod_title" value="$title_" /> |
17 | <input size="50" name="mod_title" id="mod_title" value="$title_" /> |
18 | </div> |
18 | </div> |
19 | <div class="field box fullwidth"> |
19 | <div class="field box fullwidth"> |
20 | <label for="mod_desc">$wims_name_Description</label> |
20 | <label for="mod_desc">$wims_name_Description</label> |
21 | <textarea name="mod_desc" id="mod_desc" class="iEdit" maxlength="$edesc_limit">$desc_</textarea> |
21 | <textarea name="mod_desc" id="mod_desc" class="iEdit" maxlength="$edesc_limit">$desc_</textarea> |
Line 27... | Line 27... | ||
27 | <div class="field box fullwidth"> |
27 | <div class="field box fullwidth"> |
28 | <label for="mod_comment">$(name_shtab[7])</label> |
28 | <label for="mod_comment">$(name_shtab[7])</label> |
29 | <textarea name="mod_comment" id="mod_comment" class="iEdit" maxlength="$edesc_limit">$comment_</textarea> |
29 | <textarea name="mod_comment" id="mod_comment" class="iEdit" maxlength="$edesc_limit">$comment_</textarea> |
30 | <div class="formHelp">$name_desc_comment (< $edesc_limit)</div> |
30 | <div class="formHelp">$name_desc_comment (< $edesc_limit)</div> |
31 | </div> |
31 | </div> |
32 | !if $activetest <= 0 |
32 | !if $activetest <= 0 |
- | 33 | <div class="field box"> |
|
- | 34 | <label for="mod_require">$name_pointsasked</label> |
|
- | 35 | <select name="mod_require" id="mod_require"> |
|
- | 36 | !for i=0 to $require_limit |
|
- | 37 | !if $i=$[$require_/10] |
|
- | 38 | <option value="$[10*$i]" selected="selected">$[10*$i]</option> |
|
- | 39 | !else |
|
- | 40 | <option value="$[10*$i]">$[10*$i]</option> |
|
- | 41 | !endif |
|
- | 42 | !next |
|
- | 43 | </select> |
|
- | 44 | </div> |
|
- | 45 | ||
- | 46 | !set mod_exotrymax=$get_exotrymax |
|
- | 47 | <div class="field box"> |
|
- | 48 | <label for="exotrymax">$name_exotrymax</label> |
|
- | 49 | <input size="2" maxlength="2" name="mod_exotrymax" value="$mod_exotrymax" id="exotrymax" /> |
|
- | 50 | !set wims_ref_class=wims_button_help float_right |
|
- | 51 | !href target=wims_mhelp cmd=help&special_parm=exotrymax $wims_name_help |
|
- | 52 | </div> |
|
- | 53 | <div class="field box"> |
|
- | 54 | <label for="mod_weight">$name_weight</label> |
|
- | 55 | <input size="4" name="mod_weight" id="mod_weight" value="$weight_" /> |
|
- | 56 | !set wims_ref_class=wims_button_help float_right |
|
- | 57 | !href target=wims_mhelp cmd=help&special_parm=weightexo $wims_name_help |
|
- | 58 | </div> |
|
- | 59 | <div class="field box"> |
|
- | 60 | <label for="mod_dep">$(name_shtab[6])</label> |
|
- | 61 | <input size="40" name="mod_dep" id="mod_dep" value="$dep_" /> |
|
- | 62 | !set wims_ref_class=wims_button_help float_right |
|
- | 63 | !href target=wims_mhelp cmd=help&special_parm=dependancies $wims_name_help |
|
- | 64 | !reset mod_dep |
|
- | 65 | </div> |
|
- | 66 | !endif |
|
- | 67 | ||
33 | <div class="field box"> |
68 | <div class="field box"> |
34 | <label for=" |
69 | <label for="mod_feedback">$(name_shtab[10])</label> |
35 | < |
70 | <textarea name="mod_feedback" id="mod_feedback" rows="1" cols="60" class="nowrap">$feedback_</textarea> |
36 |
|
71 | !set wims_ref_class=wims_button_help float_right |
37 | !if $i=$[$require_/10] |
- | |
38 |
|
72 | !href target=wims_mhelp cmd=help&special_parm=feedback $wims_name_help |
39 | !else |
- | |
40 | <option value="$[10*$i]">$[10*$i]</option> |
- | |
41 | !endif |
- | |
42 | !next |
- | |
43 | </select> |
- | |
44 | </div> |
73 | </div> |
45 | !set mod_exotrymax=$get_exotrymax |
- | |
46 | <div class="field box"> |
- | |
47 | <label for="exotrymax">$name_exotrymax</label> |
- | |
48 | <input size="2" maxlength="2" name="mod_exotrymax" value="$mod_exotrymax" id="exotrymax" /> |
- | |
49 | !set wims_ref_class=wims_button_help float_right |
- | |
50 | !href target=wims_mhelp cmd=help&special_parm=exotrymax $wims_name_help |
- | |
51 | </div> |
- | |
52 | <div class="field box"> |
- | |
53 | <label for="mod_weight">$name_weight</label> |
- | |
54 | <input size="4" name="mod_weight" id="mod_weight" value="$weight_" /> |
- | |
55 | !set wims_ref_class=wims_button_help float_right |
- | |
56 | !href target=wims_mhelp cmd=help&special_parm=weightexo $wims_name_help |
- | |
57 | </div> |
- | |
58 | <div class="field box"> |
- | |
59 | <label for="mod_dep">$(name_shtab[6])</label> |
- | |
60 | <input size="40" name="mod_dep" id="mod_dep" value="$dep_" /> |
- | |
61 | !set wims_ref_class=wims_button_help float_right |
- | |
62 | !href target=wims_mhelp cmd=help&special_parm=dependancies $wims_name_help |
- | |
63 | !reset mod_dep |
- | |
64 | </div> |
- | |
65 | !endif |
- | |
66 | <div class="field box"> |
- | |
67 | <label for="mod_feedback">$(name_shtab[10])</label> |
- | |
68 | <textarea name="mod_feedback" id="mod_feedback" rows="1" cols="60" class="nowrap">$feedback_</textarea> |
- | |
69 | !set wims_ref_class=wims_button_help float_right |
- | |
70 | !href target=wims_mhelp cmd=help&special_parm=feedback $wims_name_help |
- | |
71 | </div> |
- | |
72 | !if $activetest <= 0 |
- | |
73 | !let oef=!defof category in wimshome/public_html/modules/$directory_/INDEX |
- | |
74 | !default oef=!defof category in wimshome/public_html/modules/$directory_/index |
- | |
75 | !if oef isitemof $oef |
- | |
76 | <div class="field box"> |
- | |
77 | <strong>$(name_shtab[9])</strong> |
- | |
78 | !set parm__=$parm_ |
- | |
79 | !let parm_=!replace internal & by ; in $parm_; |
- | |
80 | !let parm_=!replace internal scoredelay=; by scoredelay=0; in $parm_ |
- | |
81 | !let parm_=!replace internal exo=; by exo=0; in $parm_ |
- | |
82 | !let tmp_=!replace internal = by , in $parm_ |
- | |
83 | !let tmp2_=!column 1 of $tmp_ |
- | |
84 | !let tmp2_=!positionof item exo in $tmp2_ |
- | |
85 | !let tmp_=!column 2 of $tmp_ |
- | |
86 | !let tmp_=!item $tmp2_ of $tmp_ |
- | |
87 | !let tmp_=!nospace $tmp_ |
- | |
88 | !set wims_ref_class=wims_button float_right |
- | |
89 | !href cmd=intro&module=$directory_&special_parm=&special_parm2=&special_parm3=exo=$tmp_;$parm_&special_parm4=$sheet,$modif $(seriesaction[1]) |
- | |
90 | <pre>$directory_ |
- | |
91 | $parm_</pre> |
- | |
92 | </div> |
- | |
93 | <div class="field box"> |
- | |
94 | !read getparm $parm__ exo qnum random |
- | |
95 | !set exocnt_=!itemcnt $get_exo |
- | |
96 | </div> |
- | |
97 | 74 | ||
- | 75 | !if $activetest <= 0 |
|
- | 76 | !let oef=!defof category in wimshome/public_html/modules/$dir/INDEX |
|
98 | ! |
77 | !default oef=!defof category in wimshome/public_html/modules/$dir/index |
- | 78 | !if oef isitemof $oef |
|
99 | <div class="field box"> |
79 | <div class="field box"> |
- | 80 | <strong>$(name_shtab[9])</strong> |
|
- | 81 | !set parm__=$parm_ |
|
100 |
|
82 | !let parm_=!replace internal & by ; in $parm_; |
101 | ! |
83 | !let parm_=!replace internal scoredelay=; by scoredelay=0; in $parm_ |
102 | - | ||
103 |
|
84 | !let parm_=!replace internal exo=; by exo=0; in $parm_ |
104 |
|
85 | !let tmp_=!replace internal = by , in $parm_ |
105 | ! |
86 | !let tmp2_=!column 1 of $tmp_ |
106 |
|
87 | !let tmp2_=!positionof item exo in $tmp2_ |
107 | ! |
88 | !let tmp_=!column 2 of $tmp_ |
108 | ! |
89 | !let tmp_=!item $tmp2_ of $tmp_ |
109 |
|
90 | !let tmp_=!nospace $tmp_ |
110 |
|
91 | !set wims_ref_class=wims_button float_right |
111 |
|
92 | !href cmd=intro&module=$dir&special_parm=&special_parm2=&special_parm3=exo=$tmp_;$parm_&special_parm4=$sheet,$modif $(seriesaction[1]) |
112 | < |
93 | <pre>$dir |
113 |
|
94 | $parm_</pre> |
114 |
|
95 | </div> |
- | 96 | ||
- | 97 | !read getparm $parm__ exo qnum random |
|
- | 98 | !set exocnt_=!itemcnt $get_exo |
|
115 |
|
99 | !read adm/class/exo_order.phtml |
- | 100 | ||
116 | !endif |
101 | !endif |
117 | !endif |
- | |
118 |
|
102 | !endif activetest |
119 |
|
103 | </fieldset> |
120 | 104 | ||
121 |
|
105 | <div class="wimscenter wimsform"> |
122 |
|
106 | <input type="submit" value="$wims_name_tosave" /> |
123 | !set wims_ref_class=wims_button wims_secondary_button |
107 | !set wims_ref_class=wims_button wims_secondary_button |
124 | !href cmd=resume $wims_name_giveup |
108 | !href cmd=resume $wims_name_giveup |
125 |
|
109 | </div> |
126 | !formend |
110 | !formend |