Rev 17314 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
15987 | guerimand | 1 | !if $jquery_defined!=yes |
2 | !changeto addseq-old.phtml |
||
3 | !endif |
||
13178 | czzmrn | 4 | !if $(module_description_$moduclass_lang)!=$empty |
5 | !set module_description=$(module_description_$moduclass_lang) |
||
6 | !endif |
||
1406 | bpr | 7 | !read adm/title.phtml 1\ |
4025 | bpr | 8 | $classname\ |
1406 | bpr | 9 | $module_description\ |
10 | $wims_name_sequence $seq |
||
11 | |||
15987 | guerimand | 12 | <div id="seq_management"> |
13 | <script> |
||
14 | /*<![CDATA[*/ |
||
15 | jQuery(function($$) { |
||
16 | // Get in sessionStorage if a tab was previously selected, and activate it. |
||
17 | var selectedTabId = sessionStorage.getItem("seq_management_selectedTab"); |
||
18 | selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0 |
||
19 | $$("#seq_management").tabs({ |
||
20 | active: selectedTabId, |
||
21 | activate : function( event, ui ) { |
||
22 | selectedTabId = $$("#seq_management").tabs("option", "active"); |
||
23 | sessionStorage.setItem("seq_management_selectedTab", selectedTabId); |
||
24 | } |
||
25 | }); |
||
26 | }); |
||
27 | /*]]>*/ |
||
28 | </script> |
||
29 | <ul> |
||
30 | <li><a href="#seqinfo">$name_info</a></li> |
||
31 | <li><a href="#seqliste">$name_content</a></li> |
||
32 | </ul> |
||
1406 | bpr | 33 | |
15987 | guerimand | 34 | !! Read some translation vars (like $C_A) |
35 | !readproc adm/search_engine/names.$lang |
||
12004 | obado | 36 | |
15987 | guerimand | 37 | !set data=!record 1 of wimshome/log/classes/$wims_class/seq/.sequence$seq |
38 | !form reply |
||
39 | !! ---- manage of seqinfo panel |
||
40 | <div id="seqinfo"><fieldset class="property_fields blockcenter"> |
||
41 | <div class="field box fullwidth"> |
||
42 | <label for="seq_title">$wims_name_title</label> |
||
43 | !! !set wims_ref_class=wims_button_help float_right |
||
44 | !! !href target=wims_mhelp cmd=help&special_parm=weight $wims_name_help |
||
17180 | bpr | 45 | <input id="seq_title" name="seq_title" size="65" value="$(data[1;])" required="required" maxlength="$title_limit"> |
15988 | guerimand | 46 | <div class="formHelp">$name_desc_title</div> |
15987 | guerimand | 47 | </div> |
48 | <div class="field box fullwidth"> |
||
49 | <label for="visible">$wims_name_Status</label> |
||
50 | !set visible=$(data[4;]) |
||
16156 | guerimand | 51 | !formselect visible list 0,1 prompt $wims_name_shstatus[1..2] |
15987 | guerimand | 52 | </div> |
53 | <div class="field box fullwidth"> |
||
54 | <label for="seq_desc"> $wims_name_Description</label> |
||
15988 | guerimand | 55 | <div class="formHelp">$name_desc_desc</div> |
56 | <textarea id="seq_desc" class="iEdit" rows="6" cols="85" name="seq_desc" maxlength="$desc_limit">$(data[2;])</textarea> |
||
15987 | guerimand | 57 | </div> |
16343 | bpr | 58 | !! --------------- add for selecte show |
16143 | guerimand | 59 | <div class="field box"> |
60 | <label for="allowtype">$(name_showhidetitle)</label> |
||
61 | !set wims_ref_class=wims_button_help float_right |
||
62 | !href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help |
||
63 | <select id="allowtype" name="allowtype" |
||
64 | onchange="toggle_allowtype(this,{'select': '#js_restricted_time','techvar': '#js_restricted_techvar'})" |
||
65 | > |
||
66 | !if $tv_listname=$empty |
||
67 | !set list_allowtype=all,none,select |
||
68 | !else |
||
69 | !set list_allowtype=all,none,select,techvar |
||
70 | !endif |
||
71 | !let nboption=!itemcnt $list_allowtype |
||
72 | !for i=1 to $nboption |
||
73 | !if $(list_allowtype[$i])=$allowtype |
||
74 | <option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option> |
||
75 | !else |
||
76 | <option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option> |
||
77 | !endif |
||
78 | !next i |
||
79 | </select> |
||
80 | |||
81 | <div id="js_restricted_time" |
||
82 | !if $allowtype=select |
||
83 | style="display:block" |
||
84 | !else |
||
85 | style="display:none" |
||
86 | !endif |
||
87 | > |
||
88 | !readproc adm/scorerestriction get |
||
89 | !read adm/scorerestriction html |
||
90 | </div> |
||
91 | |||
92 | <div id="js_restricted_techvar" |
||
93 | !if $allowtype=techvar |
||
94 | style="display:block" |
||
95 | !else |
||
96 | style="display:none" |
||
97 | !endif |
||
98 | > |
||
99 | !read adm/vfilter/scoreregform.phtml |
||
100 | </div> |
||
17529 | obado | 101 | <script src="scripts/js/interface/ui_utils.js"></script> |
16143 | guerimand | 102 | |
103 | !default allowshare=0 |
||
104 | !if $sharers!=$empty |
||
105 | <div> |
||
16801 | guerimand | 106 | <label for="allowshare">$name_allowshare</label> |
16143 | guerimand | 107 | !formselect allowshare list 0,1 prompt $wims_name_no,$wims_name_yes |
15998 | guerimand | 108 | </div> |
16143 | guerimand | 109 | !else |
17180 | bpr | 110 | <input type="hidden" name="allowshare" value="0"> |
16143 | guerimand | 111 | !endif |
112 | </div> |
||
113 | |||
114 | !! ---------------- end of add |
||
115 | |||
116 | |||
117 | |||
15987 | guerimand | 118 | </div></div> |
16343 | bpr | 119 | |
15987 | guerimand | 120 | !! ---- manage of seqliste panel |
121 | <div id="seqliste"> |
||
122 | $name_addseq |
||
123 | $table_header |
||
124 | <caption>$wims_name_Docs, $wims_name_Votes & $C_A</caption> |
||
125 | $table_hdtr |
||
126 | <th scope="col">$wims_name_title</th> |
||
127 | <th scope="col">$wims_name_Status</th> |
||
128 | <th scope="col">$wims_name_Position</th> |
||
129 | </tr> |
||
130 | !set listc=!filelist $wims_home/log/classes/$wims_class/doc |
||
131 | !set listc=!replace internal c by in $listc |
||
132 | !set listc=!lines2items $listc |
||
133 | !set listc=!sort numeric items $listc |
||
16343 | bpr | 134 | |
15987 | guerimand | 135 | !! -- doc of the class data |
136 | !for i=1 to $doccnt |
||
137 | !set ci_=!item $(wims_sort_order[$i]) of $listc |
||
138 | !set sh=!record $ci_ of wimshome/log/classes/$wims_class/doc/.index |
||
139 | !distribute lines $sh into s_,t_,bidon,bidon,bidon,o_ |
||
140 | !set ss_=!replace internal c by c$ $ in $s_ |
||
141 | !set c_$i=!positionof item $ss_ in $(data[3;]) |
||
142 | !set ss_=!replace internal c by c_ in $s_ |
||
143 | !if $s_!= |
||
144 | $table_tr |
||
145 | <td> |
||
146 | <label for="$ss_"> |
||
147 | !set wims_ref_class=wims_doc_item |
||
148 | !href module=adm/doc&job=read&doc=$s_&block=main $t_ |
||
149 | </label> |
||
150 | </td> |
||
151 | <td class="wims_status_$o_"> |
||
152 | !item $[$o_+1] of $wims_name_status |
||
153 | !set wims_ref_class=wims_button |
||
154 | !href module=adm/doc&job=prop&doc=$s_ $wims_name_change |
||
155 | </td> |
||
156 | <td> |
||
17180 | bpr | 157 | <input type="number" name="$ss_" size="5" value="$(c_$i)" id="$ss_"> |
15987 | guerimand | 158 | </td> |
159 | </tr> |
||
160 | !endif |
||
161 | !next i |
||
16343 | bpr | 162 | |
15987 | guerimand | 163 | !! -- public doc data |
164 | !for i=1 to $docpubliccnt |
||
165 | !set sh=!record $i of wimshome/log/classes/$wims_class/doc/.docindex |
||
166 | !distribute lines $sh into s_,t_,ti,d_,o_ |
||
167 | $table_tr |
||
168 | <td> |
||
169 | !set wims_ref_class=wims_doc_item |
||
170 | <label for="doc_$i"> |
||
171 | !href module=$s_&$t_ $ti |
||
172 | </label> |
||
173 | </td> |
||
174 | <td class="wims_status_$o_"> |
||
175 | !item $[$o_+1] of $wims_name_status |
||
176 | !set wims_ref_class=wims_button |
||
177 | !href module=adm/class/adddoc&job=prop&doc=$i $wims_name_change |
||
178 | </td> |
||
179 | <td> |
||
180 | !set doc_$i=!positionof item doc $i in $(data[3;]) |
||
17180 | bpr | 181 | <input type="number" name="doc_$i" size="5" value="$(doc_$i)" id="doc_$i"> |
15987 | guerimand | 182 | </td> |
183 | </tr> |
||
184 | !next i |
||
16343 | bpr | 185 | |
15987 | guerimand | 186 | !! -- sheet data |
187 | !for i=1 to $sheetcnt |
||
188 | !set sh=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets |
||
189 | !distribute lines $sh into ac,t_,ti |
||
190 | $table_tr |
||
191 | <td> |
||
192 | !set wims_ref_class=wims_sheet_item |
||
193 | <label for="sheet_$i"> |
||
194 | !href module=adm/class/sheet&sheet=$i $ti |
||
195 | </label> |
||
196 | </td> |
||
197 | <td class="wims_status_$ac"> |
||
198 | $(wims_name_shstatus[$ac+1]) |
||
199 | </td> |
||
200 | <td> |
||
201 | !set sheet_$i=!positionof item sheet $i in $(data[3;]) |
||
17180 | bpr | 202 | <input type="number" name="sheet_$i" size="5" value="$(sheet_$i)" id="sheet_$i"> |
15987 | guerimand | 203 | </td> |
204 | </tr> |
||
205 | !next i |
||
14268 | obado | 206 | |
15987 | guerimand | 207 | !! -- exam data |
208 | !for i=1 to $examcnt |
||
209 | !set sh=!record $i of wimshome/log/classes/$wims_class/exams/.exams |
||
210 | !distribute lines $sh into ac,t_,d_,ti |
||
211 | $table_tr |
||
212 | <td> |
||
213 | <label for="exam_$i"> |
||
214 | !set wims_ref_class=wims_exam_item |
||
215 | !href module=adm/class/exam&exam=$i $ti |
||
216 | </label> |
||
217 | </td> |
||
218 | <td class="wims_status_$ac"> |
||
219 | $(wims_name_shstatus[$ac+1]) |
||
220 | </td> |
||
221 | <td> |
||
222 | !set exam_$i=!positionof item exam $i in $(data[3;]) |
||
17180 | bpr | 223 | <input type="number" name="exam_$i" size="5" value="$(exam_$i)" id="exam_$i"> |
15987 | guerimand | 224 | </td> |
225 | </tr> |
||
226 | !next i |
||
13669 | bpr | 227 | |
14268 | obado | 228 | |
15987 | guerimand | 229 | !! -- vote data |
230 | !for i=1 to $votecnt |
||
231 | !set sh=!record $i of wimshome/log/classes/$wims_class/vote/.votes |
||
232 | !distribute lines $sh into st_,ti_,op_,re_ |
||
233 | $table_tr |
||
234 | <td> |
||
235 | <label for="vote_$i"> |
||
236 | !set wims_ref_class=wims_vote_item |
||
237 | !href module=adm/vote&job=read&vote=$i $ti_ |
||
238 | </label> |
||
239 | </td> |
||
240 | <td class="wims_status_$st_"> |
||
241 | $(wims_name_status[$st_+1]) |
||
242 | </td> |
||
243 | <td> |
||
244 | !set vote_$i=!positionof item vote $i in $(data[3;]) |
||
17180 | bpr | 245 | <input type="number" name="vote_$i" size="5" value="$(vote_$i)" id="vote_$i"> |
15987 | guerimand | 246 | </td> |
247 | </tr> |
||
248 | !next i |
||
14268 | obado | 249 | |
15987 | guerimand | 250 | !! -- tool data |
251 | !for i=1 to $toolcnt |
||
252 | !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.toolindex |
||
253 | !distribute lines $sh into s_,t_,ti,d_,o_ |
||
254 | $table_tr |
||
255 | <td> |
||
256 | <label for="tool_$i"> |
||
257 | !set wims_ref_class=wims_tool_item |
||
258 | !href module=$s_&$t_ $ti |
||
259 | </label> |
||
260 | </td> |
||
261 | <td class="wims_status_$o_"> |
||
262 | !item $[$o_+1] of $wims_name_status |
||
263 | !set wims_ref_class=wims_button |
||
264 | !href module=adm/class/adddoc&job=prop&tool=$i $wims_name_change |
||
265 | </td> |
||
266 | <td> |
||
267 | !set doc_$i=!positionof item tool $i in $(data[3;]) |
||
17180 | bpr | 268 | <input type="number" name="tool_$i" size="5" value="$(tool_$i)" id="tool_$i"> |
15987 | guerimand | 269 | </td> |
270 | </tr> |
||
271 | !next i |
||
14268 | obado | 272 | |
15987 | guerimand | 273 | !! -- glossary data |
274 | !for i=1 to $glossarycnt |
||
275 | !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.glossaryindex |
||
276 | !distribute lines $sh into o_,ti |
||
277 | $table_tr |
||
278 | <td> |
||
279 | <label for="glossary_$i"> |
||
280 | !set wims_ref_class=wims_glossary_item |
||
281 | !href module=adm/tool/glossary&gl=$i $ti |
||
282 | </label> |
||
283 | </td> |
||
284 | <td class="wims_status_$o_"> |
||
285 | !item $[$o_+1] of $wims_name_status |
||
286 | !set wims_ref_class=wims_button |
||
287 | !href module=adm/class/glossary&job=chstatus&gl=$i $wims_name_change |
||
288 | </td> |
||
289 | <td> |
||
290 | !set glossary_$i=!positionof item glossary $i in $(data[3;]) |
||
17180 | bpr | 291 | <input type="number" name="glossary_$i" size="5" value="$(glossary_$i)" id="glossary_$i"> |
15987 | guerimand | 292 | </td> |
293 | </tr> |
||
294 | !next i |
||
14268 | obado | 295 | |
15987 | guerimand | 296 | !! -- freework data |
297 | !for i=1 to $freeworkcnt |
||
298 | !set sh=!record $i of wimshome/log/classes/$wims_class/freeworks/.freeworks |
||
299 | !distribute lines $sh into o_,bl,ti |
||
300 | $table_tr |
||
301 | <td> |
||
302 | <label for="freework_$i"> |
||
303 | !set wims_ref_class=wims_freework_item |
||
304 | !href module=adm/class/freework/&freework=$i $ti |
||
305 | </label> |
||
306 | </td> |
||
307 | <td class="wims_status_$o_"> |
||
308 | $(wims_name_shstatus[$o_+1]) |
||
309 | </td> |
||
310 | <td> |
||
311 | !set freework_$i=!positionof item freework $i in $(data[3;]) |
||
17180 | bpr | 312 | <input type="number" name="freework_$i" size="5" value="$(freework_$i)" id="freework_$i"> |
15987 | guerimand | 313 | </td> |
314 | </tr> |
||
315 | !next i |
||
316 | </div> |
||
317 | $table_end |
||
318 | </div> |
||
14268 | obado | 319 | |
320 | |||
17180 | bpr | 321 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" name="save"></div> |
5926 | bpr | 322 | !formend |
15987 | guerimand | 323 | </div> |