Rev 13661 | Rev 14268 | 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 | !! |
12316 | bpr | 3 | !distribute lines $wims_read_parm into directory_,parm_,require_,weight_,title_,desc_,dep_,comment_,feedback_,attribut_ |
1969 | guerimand | 4 | !! !set orgtit_=!module title $directory_ |
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"> |
||
7290 | bpr | 13 | !! if the sheet is active, the fields that may be changed are |
12316 | bpr | 14 | !! title, description, comment, feedback, attribut |
12701 | bpr | 15 | <label for="mod_title">$wims_name_title</label> |
7472 | bpr | 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> |
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> |
||
13661 | bpr | 45 | !set mod_exotrymax=$get_exotrymax |
12701 | bpr | 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" /> |
||
13192 | bpr | 49 | !set wims_ref_class=wims_button_help float_right |
50 | !href target=wims_mhelp cmd=help&special_parm=exotrymax $wims_name_help |
||
13662 | bpr | 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_" /> |
||
12701 | bpr | 55 | !set wims_ref_class=wims_button_help float_right |
12761 | bpr | 56 | !href target=wims_mhelp cmd=help&special_parm=weightexo $wims_name_help |
13662 | bpr | 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_" /> |
||
12701 | bpr | 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 |
||
13662 | bpr | 64 | </div> |
12701 | bpr | 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 |
||
11036 | obado | 76 | <div class="field box"> |
12701 | bpr | 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_ |
||
11036 | obado | 91 | $parm_</pre> |
92 | </div> |
||
93 | <div class="field box"> |
||
12701 | bpr | 94 | !read getparm $parm__ exo qnum random |
95 | !set exocnt_=!itemcnt $get_exo |
||
11036 | obado | 96 | </div> |
11037 | obado | 97 | |
12701 | bpr | 98 | !if $get_qnum=$exocnt_ and $get_random=0 and $get_qnum>1 |
99 | <div class="field box"> |
||
100 | !set wims_ref_class=wims_button_help float_right |
||
101 | !href target=wims_mhelp cmd=help&special_parm=series $wims_name_help |
||
7400 | bpr | 102 | |
12701 | bpr | 103 | <table class="wimstable"> |
104 | <caption>$name_order</caption> |
||
105 | !for ex = 1 to $exocnt_ |
||
106 | !! ne fonctionne pas dans une classe |
||
107 | !set tt_ex=!lookup $(get_exo[$ex]) in wimshome/public_html/modules/$directory_/Extitles |
||
108 | !default tt_ex= $(get_exo[$ex]) |
||
109 | <tr> |
||
110 | <td><label for="update_ex$ex">$tt_ex</label></td> |
||
111 | <td><input name="update_ex$ex" id="update_ex$ex" size="5" value="$ex" type="number" /></td> |
||
112 | </tr> |
||
113 | !next |
||
114 | </table> |
||
11036 | obado | 115 | </div> |
12701 | bpr | 116 | !endif |
117 | !endif |
||
118 | !endif activetest = 0 |
||
7472 | bpr | 119 | </fieldset> |
5926 | bpr | 120 | |
11036 | obado | 121 | <div class="wimscenter wimsform"> |
122 | <input type="submit" value="$wims_name_tosave" /> |
||
12701 | bpr | 123 | !set wims_ref_class=wims_button wims_secondary_button |
124 | !href cmd=resume $wims_name_giveup |
||
11036 | obado | 125 | </div> |
5926 | bpr | 126 | !formend |