Rev 18479 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
17885 | bpr | 1 | !! Tableau d'information générale de la feuille d'exos |
11999 | obado | 2 | !! ce fichier utilise des mots definis |
3 | !! dans le fichier names.phtml.$lang du module adm/sheet |
||
18145 | bpr | 4 | !! utilise des variables définies dans le module adm/sheet |
1533 | guerimand | 5 | !form reply |
17186 | bpr | 6 | <input type="hidden" name="job" value="text"> |
12704 | bpr | 7 | <fieldset class="property_fields blockcenter"> |
8 | !!check |
||
9 | <legend>$name_info |
||
10 | !if $jquery_defined!=yes and $sheet<=$scnt |
||
11 | [ |
||
12 | !href cmd=resume&infoshow=no $wims_name_hide |
||
13 | ] |
||
14 | !endif |
||
15 | </legend> |
||
16 | <div class="field box"> |
||
17 | <label for="title">$(name_shinfo[1])</label> |
||
17529 | obado | 18 | <input type="text" name="title" id="title" value="$title" required="required"> |
12704 | bpr | 19 | <div class="formHelp">$name_desc_title</div> |
20 | </div> |
||
21 | !ifval $activetest>-1 |
||
22 | <div class="field box"> |
||
18145 | bpr | 23 | $(name_shinfo[2]) |
24 | <span class="wims_status wims_status_$activetest"> |
||
25 | $(wims_name_shstatus[$activetest+1]) |
||
26 | !if $hidden_condition!=$empty and $activetest=1 |
||
27 | ($wims_name_maybehidden) |
||
28 | !endif |
||
29 | </span> |
||
13208 | obado | 30 | !read adm/sheet/sheetaction.phtml sheet,$sheet,$activetest,0 |
12704 | bpr | 31 | </div> |
32 | !endif |
||
33 | <div class="field box fullwidth"> |
||
34 | <label for="desc">$(name_shinfo[3])</label> |
||
35 | <div class="formHelp">$name_desc_desc</div> |
||
36 | <textarea id="desc" class="iEdit" rows="6" cols="65" name="desc">$desc</textarea> |
||
37 | </div> |
||
38 | <div class="field box"> |
||
39 | <label for="comment">$(name_shinfo[8])</label> |
||
40 | <div class="formHelp">$name_desc_comment</div> |
||
41 | <textarea id="comment" class="iEdit" rows="6" cols="65" name="comment">$comment</textarea> |
||
42 | </div> |
||
43 | <div class="field box"> |
||
44 | <label for="expdate">$(name_shinfo[4])</label> |
||
45 | !default expdate=$(expyear)$(expmon)$(expday) |
||
46 | !read adm/datepickerform.phtml $expdate\ |
||
11800 | guerimand | 47 | expdate\ |
48 | "$class_creation","$class_expiration" |
||
17885 | bpr | 49 | </div> |
12704 | bpr | 50 | <div class="field box"> |
17885 | bpr | 51 | <label for="sh_weight">$(name_shinfo[11])</label> |
52 | !set wims_ref_class=wims_button_help float_right |
||
53 | !href target=wims_mhelp cmd=help&special_parm=weight $wims_name_help |
||
54 | !default weight=!word 1 of $df_severity |
||
55 | <input type="number" min="$min_weight" max="$max_weight" step="any" size="5" name="weight" value="$weight" id="sh_weight"> |
||
56 | </div> |
||
57 | <div class="field box"> |
||
58 | <label for="formulaA">$(name_shinfo[12])</label> |
||
59 | !set wims_ref_class=wims_button_help float_right |
||
60 | !href target=wims_mhelp cmd=help&special_parm=score $wims_name_help |
||
61 | !set formula_list=!record 0 of adm/class/sheetformula |
||
62 | !default formulaA=!word 2 of $df_severity |
||
63 | !formselect formulaA list 0,1,2,3,4,5,6 prompt $formula_list |
||
12802 | obado | 64 | |
17885 | bpr | 65 | !default formulaB=!word 3 of $df_severity |
66 | <label for="formulaB">I=</label> |
||
67 | !formselect formulaB list 0,1,2 prompt I0,I1,I2 |
||
68 | </div> |
||
69 | <div class="field box"> |
||
70 | <label for="exodescshow">$(name_shinfo[13])</label> |
||
71 | !set wims_ref_class=wims_button_help float_right |
||
72 | !href target=wims_mhelp cmd=help&special_parm=exodescshow $wims_name_help |
||
73 | !set tmp=!record $sheet of wimshome/log/classes/$wims_class/sheets/.sheets |
||
74 | !default exodescshow=!line 8 of $tmp |
||
75 | !reset tmp |
||
76 | !default exodescshow=0 |
||
77 | !formradio exodescshow list 0,1 prompt $wims_name_no,$wims_name_yes |
||
78 | </div> |
||
79 | <div class="field box"> |
||
80 | <label for="prpage">$(name_shinfo[5])</label> |
||
81 | !set wims_ref_class=wims_button_help float_right |
||
82 | !href target=wims_mhelp cmd=help&special_parm=sheetpage $wims_name_help |
||
83 | !if $prpage!=$empty and $prpage notitemof yes,no |
||
84 | <input size="30" name="prpage" id="prpage" value="$prpage"> |
||
85 | !else |
||
86 | !default prpage=no |
||
87 | !formradio prpage list no,yes prompt $wims_name_no,$wims_name_yes |
||
88 | !endif |
||
89 | </div> |
||
17334 | guerimand | 90 | !if $tv_listallname!=$empty or $hidden_condition!=$empty |
14441 | guerimand | 91 | <div class="field box"> |
92 | <label for="hidden_condition">$(name_shinfo[14])</label> |
||
93 | !set wims_ref_class=wims_button_help float_right |
||
94 | !href target=wims_mhelp cmd=help&special_parm=filter $wims_name_help |
||
95 | <textarea name="hidden_condition" cols="20" rows="3">$hidden_condition</textarea> |
||
17186 | bpr | 96 | </div> |
14441 | guerimand | 97 | !endif |
12704 | bpr | 98 | !if $activetest>=0 |
15763 | guerimand | 99 | <div class="field box"> |
100 | !if $activetest=0 |
||
101 | <label for="indivtechvar">$name_desc_indivtechvar</label> |
||
102 | <select id="indivtechvar" name="indivtechvar"> |
||
103 | !if $indivtechvar=0 or $indivtechvar=$empty |
||
104 | <option value="0" selected="selected">$name_noone</option> |
||
105 | !else |
||
106 | <option value="0">$name_noone</option> |
||
107 | !endif |
||
15860 | guerimand | 108 | !let tot=!itemcnt $tv_listlocalcode |
15763 | guerimand | 109 | !for i=1 to $tot |
15860 | guerimand | 110 | !if $(tv_listlocalcode[$i])=$indivtechvar |
111 | <option value="$(tv_listlocalcode[$i])" selected="selected">$(tv_listname[$(tv_listlocal[$i])])</option> |
||
15763 | guerimand | 112 | !else |
15860 | guerimand | 113 | <option value="$(tv_listlocalcode[$i])">$(tv_listname[$(tv_listlocal[$i])])</option> |
15763 | guerimand | 114 | !endif |
115 | !next i |
||
116 | </select> |
||
117 | !else |
||
118 | <strong>$name_desc_indivtechvar</strong> |
||
119 | !if $indivtechvar!=0 and $indivtechvar!=$empty |
||
120 | !let p=!positionof item $indivtechvar in $tv_listcode |
||
121 | $(tv_listname[$p]) |
||
122 | !else |
||
123 | $name_noone |
||
124 | !endif |
||
125 | !endif |
||
126 | !set wims_ref_class=wims_button_help float_right |
||
127 | !href target=wims_mhelp cmd=help&special_parm=indivtechvar $wims_name_help |
||
128 | </div> |
||
17186 | bpr | 129 | <input type="hidden" name="allow" value="yes"> |
12704 | bpr | 130 | <div class="field box"> |
131 | <label for="allowtype">$(name_shinfo[6])</label> |
||
12801 | obado | 132 | !set wims_ref_class=wims_button_help float_right |
133 | !href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help |
||
12999 | obado | 134 | <select id="allowtype" name="allowtype" |
13009 | obado | 135 | onchange="toggle_allowtype(this,{'select': '#js_restricted_time','techvar': '#js_restricted_techvar'})" |
12999 | obado | 136 | > |
12801 | obado | 137 | !if $tv_listname=$empty |
138 | !set list_allowtype=all,none,select |
||
139 | !else |
||
140 | !set list_allowtype=all,none,select,techvar |
||
141 | !endif |
||
142 | !let nboption=!itemcnt $list_allowtype |
||
143 | !for i=1 to $nboption |
||
144 | !if $(list_allowtype[$i])=$allowtype |
||
145 | <option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option> |
||
146 | !else |
||
147 | <option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option> |
||
148 | !endif |
||
149 | !next i |
||
150 | </select> |
||
12815 | obado | 151 | |
12999 | obado | 152 | <div id="js_restricted_time" |
153 | !if $allowtype=select |
||
154 | style="display:block" |
||
155 | !else |
||
156 | style="display:none" |
||
157 | !endif |
||
158 | > |
||
159 | !readproc adm/scorerestriction get |
||
160 | !read adm/scorerestriction html |
||
161 | </div> |
||
162 | |||
163 | <div id="js_restricted_techvar" |
||
164 | !if $allowtype=techvar |
||
165 | style="display:block" |
||
166 | !else |
||
167 | style="display:none" |
||
168 | !endif |
||
169 | > |
||
170 | !read adm/vfilter/scoreregform.phtml |
||
171 | </div> |
||
17529 | obado | 172 | <script src="scripts/js/interface/ui_utils.js"></script> |
12815 | obado | 173 | |
12801 | obado | 174 | !default allowshare=0 |
175 | !if $sharers!=$empty |
||
12815 | obado | 176 | <div> |
177 | <label for="allowshare">$(name_shinfo[7])</label> |
||
178 | !formselect allowshare list 0,1 prompt $wims_name_no,$wims_name_yes |
||
179 | </div> |
||
12801 | obado | 180 | !else |
17186 | bpr | 181 | <input type="hidden" name="allowshare" value="0"> |
12801 | obado | 182 | !endif |
7472 | bpr | 183 | </div> |
12704 | bpr | 184 | !endif |
185 | </fieldset> |
||
186 | |||
187 | <div class="wimscenter wimsform"> |
||
12999 | obado | 188 | !ifval $activetest=-1 |
17186 | bpr | 189 | <input type="submit" value="$name_mksheet"> |
12999 | obado | 190 | !else |
17186 | bpr | 191 | <input type="submit" value="$wims_name_tosave" name="save"> |
12999 | obado | 192 | !endif |
193 | !set wims_ref_class= wims_button wims_secondary_button |
||
194 | !href module=home $wims_name_giveup |
||
12704 | bpr | 195 | </div> |
5928 | bpr | 196 | !formend |