Rev 14646 | Rev 15910 | Go to most recent revision | 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 |
12701 | bpr | 8 | <input type="hidden" name="modif" value="$ex_" /> |
9 | <input type="hidden" name="job" value="modify" /> |
||
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>) |
12701 | bpr | 17 | <input size="50" name="mod_title" id="mod_title" value="$title_" /> |
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">(< $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 (< $edesc_limit)</div> |
||
12701 | bpr | 31 | </div> |
14268 | obado | 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> |
||
15763 | guerimand | 66 | |
67 | !! manage for indiv with techvar |
||
68 | !if $indivtechvar!=$empty |
||
69 | <div class="field box"> |
||
70 | <label for="indiv">$name_individualisation</label> |
||
71 | !let mod_indiv=!listintersect $indiv_ and $listval |
||
72 | !formcheckbox mod_indiv list $listval |
||
73 | !set wims_ref_class=wims_button_help float_right |
||
74 | !href target=wims_mhelp cmd=help&special_parm=indivtechvar $wims_name_help |
||
75 | <div class="formHelp">$name_indiv_desc</div> |
||
76 | </div> |
||
77 | !endif |
||
14268 | obado | 78 | !endif |
14646 | bpr | 79 | !set feedback__=!rows2lines $feedback_ |
12701 | bpr | 80 | <div class="field box"> |
14268 | obado | 81 | <label for="mod_feedback">$(name_shtab[10])</label> |
14646 | bpr | 82 | <textarea name="mod_feedback" id="mod_feedback" cols="60" class="nowrap">$feedback__</textarea> |
14268 | obado | 83 | !set wims_ref_class=wims_button_help float_right |
84 | !href target=wims_mhelp cmd=help&special_parm=feedback $wims_name_help |
||
12701 | bpr | 85 | </div> |
11037 | obado | 86 | |
14268 | obado | 87 | !if $activetest <= 0 |
88 | !let oef=!defof category in wimshome/public_html/modules/$dir/INDEX |
||
89 | !default oef=!defof category in wimshome/public_html/modules/$dir/index |
||
90 | !if oef isitemof $oef |
||
12701 | bpr | 91 | <div class="field box"> |
14268 | obado | 92 | <strong>$(name_shtab[9])</strong> |
93 | !set parm__=$parm_ |
||
94 | !let parm_=!replace internal & by ; in $parm_; |
||
95 | !let parm_=!replace internal scoredelay=; by scoredelay=0; in $parm_ |
||
96 | !let parm_=!replace internal exo=; by exo=0; in $parm_ |
||
97 | !let tmp_=!replace internal = by , in $parm_ |
||
98 | !let tmp2_=!column 1 of $tmp_ |
||
99 | !let tmp2_=!positionof item exo in $tmp2_ |
||
100 | !let tmp_=!column 2 of $tmp_ |
||
101 | !let tmp_=!item $tmp2_ of $tmp_ |
||
102 | !let tmp_=!nospace $tmp_ |
||
103 | !set wims_ref_class=wims_button float_right |
||
104 | !href cmd=intro&module=$dir&special_parm=&special_parm2=&special_parm3=exo=$tmp_;$parm_&special_parm4=$sheet,$modif $(seriesaction[1]) |
||
105 | <pre>$dir |
||
106 | $parm_</pre> |
||
107 | </div> |
||
7400 | bpr | 108 | |
14268 | obado | 109 | !read getparm $parm__ exo qnum random |
110 | !set exocnt_=!itemcnt $get_exo |
||
111 | !read adm/class/exo_order.phtml |
||
112 | |||
12701 | bpr | 113 | !endif |
14268 | obado | 114 | !endif activetest |
115 | </fieldset> |
||
5926 | bpr | 116 | |
14268 | obado | 117 | <div class="wimscenter wimsform"> |
118 | <input type="submit" value="$wims_name_tosave" /> |
||
119 | !set wims_ref_class=wims_button wims_secondary_button |
||
120 | !href cmd=resume $wims_name_giveup |
||
121 | </div> |
||
5926 | bpr | 122 | !formend |