Rev 14769 | Rev 15988 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14769 | Rev 15987 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | !if $jquery_defined!=yes |
|
- | 2 | !changeto addseq-old.phtml |
|
- | 3 | !endif |
|
1 | !if $(module_description_$moduclass_lang)!=$empty |
4 | !if $(module_description_$moduclass_lang)!=$empty |
2 | !set module_description=$(module_description_$moduclass_lang) |
5 | !set module_description=$(module_description_$moduclass_lang) |
3 | !endif |
6 | !endif |
4 | !read adm/title.phtml 1\ |
7 | !read adm/title.phtml 1\ |
5 | $classname\ |
8 | $classname\ |
6 | $module_description\ |
9 | $module_description\ |
7 | $wims_name_sequence $seq |
10 | $wims_name_sequence $seq |
8 | 11 | ||
9 |
|
12 | <div id="seq_management"> |
10 | 13 | <script> |
|
11 |
|
14 | /*<![CDATA[*/ |
12 |
|
15 | jQuery(function($$) { |
13 | - | ||
14 |
|
16 | // Get in sessionStorage if a tab was previously selected, and activate it. |
15 | !form reply |
- | |
16 |
|
17 | var selectedTabId = sessionStorage.getItem("seq_management_selectedTab"); |
17 | $ |
- | |
18 |
|
18 | selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0 |
19 | $ |
- | |
20 |
|
19 | $$("#seq_management").tabs({ |
21 |
|
20 | active: selectedTabId, |
22 |
|
21 | activate : function( event, ui ) { |
23 | $table_header |
- | |
24 |
|
22 | selectedTabId = $$("#seq_management").tabs("option", "active"); |
25 | - | ||
26 |
|
23 | sessionStorage.setItem("seq_management_selectedTab", selectedTabId); |
- | 24 | } |
|
- | 25 | }); |
|
- | 26 | }); |
|
27 |
|
27 | /*]]>*/ |
28 |
|
28 | </script> |
29 | 29 | <ul> |
|
30 |
|
30 | <li><a href="#seqinfo">$name_info</a></li> |
31 |
|
31 | <li><a href="#seqliste">$name_content</a></li> |
32 |
|
32 | </ul> |
33 | !set listc=!sort numeric items $listc |
- | |
34 | 33 | ||
35 | !for i=1 to $doccnt |
- | |
36 | !set ci_=!item $(wims_sort_order[$i]) of $listc |
- | |
37 | !set sh=!record $ci_ of wimshome/log/classes/$wims_class/doc/.index |
- | |
38 | !distribute lines $sh into s_,t_,bidon,bidon,bidon,o_ |
- | |
39 | !set ss_=!replace internal c by c$ $ in $s_ |
- | |
40 | !set c_$i=!positionof item $ss_ in $(data[3;]) |
- | |
41 |
|
34 | !! Read some translation vars (like $C_A) |
42 | !if $s_!= |
- | |
43 | $table_tr |
- | |
44 | <td> |
- | |
45 | <label for="$ss_"> |
- | |
46 | !set wims_ref_class=wims_doc_item |
- | |
47 | !href module=adm/doc&job=read&doc=$s_&block=main $t_ |
- | |
48 | </label> |
- | |
49 | </td><td class="wims_status_$o_"> |
- | |
50 |
|
35 | !readproc adm/search_engine/names.$lang |
51 | !set wims_ref_class=wims_button |
- | |
52 | !href module=adm/doc&job=prop&doc=$s_ $wims_name_change |
- | |
53 | </td><td> |
- | |
54 | <input type="number" name="$ss_" size="5" value="$(c_$i)" id="$ss_" /> |
- | |
55 | </td> |
- | |
56 | </tr> |
- | |
57 | !endif |
- | |
58 | !next i |
- | |
59 | 36 | ||
- | 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 |
|
- | 45 | <input id="seq_title" name="seq_title" size="65" value="$(data[1;])" required="required" /> |
|
- | 46 | </div> |
|
- | 47 | <div class="field box fullwidth"> |
|
- | 48 | <label for="visible">$wims_name_Status</label> |
|
- | 49 | !set visible=$(data[4;]) |
|
- | 50 | !formselect visible list 0,1 prompt $wims_name_status |
|
- | 51 | </div> |
|
- | 52 | <div class="field box fullwidth"> |
|
- | 53 | <label for="seq_desc"> $wims_name_Description</label> |
|
- | 54 | <textarea id="seq_desc" class="iEdit" rows="6" cols="85" name="seq_desc">$(data[2;])</textarea> |
|
- | 55 | </div> |
|
- | 56 | </div></div> |
|
- | 57 | ||
- | 58 | !! ---- manage of seqliste panel |
|
- | 59 | <div id="seqliste"> |
|
- | 60 | $name_addseq |
|
- | 61 | $table_header |
|
- | 62 | <caption>$wims_name_Docs, $wims_name_Votes & $C_A</caption> |
|
- | 63 | $table_hdtr |
|
- | 64 | <th scope="col">$wims_name_title</th> |
|
- | 65 | <th scope="col">$wims_name_Status</th> |
|
- | 66 | <th scope="col">$wims_name_Position</th> |
|
- | 67 | </tr> |
|
- | 68 | !set listc=!filelist $wims_home/log/classes/$wims_class/doc |
|
- | 69 | !set listc=!replace internal c by in $listc |
|
- | 70 | !set listc=!lines2items $listc |
|
- | 71 | !set listc=!sort numeric items $listc |
|
- | 72 | ||
- | 73 | !! -- doc of the class data |
|
- | 74 | !for i=1 to $doccnt |
|
- | 75 | !set ci_=!item $(wims_sort_order[$i]) of $listc |
|
- | 76 | !set sh=!record $ci_ of wimshome/log/classes/$wims_class/doc/.index |
|
- | 77 | !distribute lines $sh into s_,t_,bidon,bidon,bidon,o_ |
|
- | 78 | !set ss_=!replace internal c by c$ $ in $s_ |
|
- | 79 | !set c_$i=!positionof item $ss_ in $(data[3;]) |
|
- | 80 | !set ss_=!replace internal c by c_ in $s_ |
|
- | 81 | !if $s_!= |
|
- | 82 | $table_tr |
|
- | 83 | <td> |
|
- | 84 | <label for="$ss_"> |
|
- | 85 | !set wims_ref_class=wims_doc_item |
|
- | 86 | !href module=adm/doc&job=read&doc=$s_&block=main $t_ |
|
- | 87 | </label> |
|
- | 88 | </td> |
|
- | 89 | <td class="wims_status_$o_"> |
|
- | 90 | !item $[$o_+1] of $wims_name_status |
|
- | 91 | !set wims_ref_class=wims_button |
|
- | 92 | !href module=adm/doc&job=prop&doc=$s_ $wims_name_change |
|
- | 93 | </td> |
|
- | 94 | <td> |
|
- | 95 | <input type="number" name="$ss_" size="5" value="$(c_$i)" id="$ss_" /> |
|
- | 96 | </td> |
|
- | 97 | </tr> |
|
- | 98 | !endif |
|
- | 99 | !next i |
|
- | 100 | ||
- | 101 | !! -- public doc data |
|
60 | !for i=1 to $docpubliccnt |
102 | !for i=1 to $docpubliccnt |
61 | !set sh=!record $i of wimshome/log/classes/$wims_class/doc/.docindex |
103 | !set sh=!record $i of wimshome/log/classes/$wims_class/doc/.docindex |
62 | !distribute lines $sh into s_,t_,ti,d_,o_ |
104 | !distribute lines $sh into s_,t_,ti,d_,o_ |
63 | $table_tr |
105 | $table_tr |
64 | <td> |
106 | <td> |
65 | !set wims_ref_class=wims_doc_item |
107 | !set wims_ref_class=wims_doc_item |
66 | <label for="doc_$i"> |
108 | <label for="doc_$i"> |
67 | !href module=$s_&$t_ $ti |
109 | !href module=$s_&$t_ $ti |
68 | </label> |
110 | </label> |
- | 111 | </td> |
|
69 |
|
112 | <td class="wims_status_$o_"> |
70 | !item $[$o_+1] of $wims_name_status |
113 | !item $[$o_+1] of $wims_name_status |
71 | !set wims_ref_class=wims_button |
114 | !set wims_ref_class=wims_button |
72 | !href module=adm/class/adddoc&job=prop&doc=$i $wims_name_change |
115 | !href module=adm/class/adddoc&job=prop&doc=$i $wims_name_change |
- | 116 | </td> |
|
73 |
|
117 | <td> |
74 | !set doc_$i=!positionof item doc $i in $(data[3;]) |
118 | !set doc_$i=!positionof item doc $i in $(data[3;]) |
75 | <input type="number" name="doc_$i" size="5" value="$(doc_$i)" id="doc_$i" /> |
119 | <input type="number" name="doc_$i" size="5" value="$(doc_$i)" id="doc_$i" /> |
- | 120 | </td> |
|
- | 121 | </tr> |
|
- | 122 | !next i |
|
- | 123 | ||
- | 124 | !! -- sheet data |
|
- | 125 | !for i=1 to $sheetcnt |
|
- | 126 | !set sh=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets |
|
- | 127 | !distribute lines $sh into ac,t_,ti |
|
- | 128 | $table_tr |
|
- | 129 | <td> |
|
- | 130 | !set wims_ref_class=wims_sheet_item |
|
- | 131 | <label for="sheet_$i"> |
|
- | 132 | !href module=adm/class/sheet&sheet=$i $ti |
|
- | 133 | </label> |
|
- | 134 | </td> |
|
- | 135 | <td class="wims_status_$ac"> |
|
- | 136 | $(wims_name_shstatus[$ac+1]) |
|
- | 137 | </td> |
|
- | 138 | <td> |
|
- | 139 | !set sheet_$i=!positionof item sheet $i in $(data[3;]) |
|
- | 140 | <input type="number" name="sheet_$i" size="5" value="$(sheet_$i)" id="sheet_$i" /> |
|
76 | </td> |
141 | </td> |
77 | </tr> |
142 | </tr> |
78 | !next i |
143 | !next i |
79 | 144 | ||
- | 145 | !! -- exam data |
|
80 | !for i=1 to |
146 | !for i=1 to $examcnt |
81 | !set sh=!record $i of wimshome/log/classes/$wims_class/ |
147 | !set sh=!record $i of wimshome/log/classes/$wims_class/exams/.exams |
82 | ! |
148 | !distribute lines $sh into ac,t_,d_,ti |
83 | $table_tr |
149 | $table_tr |
84 | <td> |
150 | <td> |
85 |
|
151 | <label for="exam_$i"> |
86 |
|
152 | !set wims_ref_class=wims_exam_item |
87 | !href module=adm/class/ |
153 | !href module=adm/class/exam&exam=$i $ti |
88 | </label> |
154 | </label> |
- | 155 | </td> |
|
89 |
|
156 | <td class="wims_status_$ac"> |
90 | $(wims_name_shstatus[$ac+1]) |
157 | $(wims_name_shstatus[$ac+1]) |
- | 158 | </td> |
|
91 |
|
159 | <td> |
92 | !set |
160 | !set exam_$i=!positionof item exam $i in $(data[3;]) |
93 | <input type |
161 | <input type="number" name="exam_$i" size="5" value="$(exam_$i)" id="exam_$i"/> |
94 | </td> |
162 | </td> |
95 | </tr> |
163 | </tr> |
96 | !next i |
164 | !next i |
97 | 165 | ||
98 | !!set examcnt=!recordcnt wimshome/log/classes/$wims_class/exams/.exams |
- | |
99 | !for i=1 to $examcnt |
- | |
100 | !set sh=!record $i of wimshome/log/classes/$wims_class/exams/.exams |
- | |
101 | !distribute lines $sh into ac,t_,d_,ti |
- | |
102 | $table_tr |
- | |
103 | <td> |
- | |
104 | <label for="exam_$i"> |
- | |
105 | !set wims_ref_class=wims_exam_item |
- | |
106 | !href module=adm/class/exam&exam=$i $ti |
- | |
107 | </label> |
- | |
108 | </td><td class="wims_status_$ac"> |
- | |
109 | $(wims_name_shstatus[$ac+1]) |
- | |
110 | </td><td> |
- | |
111 | !set exam_$i=!positionof item exam $i in $(data[3;]) |
- | |
112 | <input type="number" name="exam_$i" size="5" value="$(exam_$i)" id="exam_$i"/> |
- | |
113 | </td> |
- | |
114 | </tr> |
- | |
115 | !next i |
- | |
116 | 166 | ||
117 |
|
167 | !! -- vote data |
118 | !for i=1 to $votecnt |
168 | !for i=1 to $votecnt |
119 | !set sh=!record $i of wimshome/log/classes/$wims_class/vote/.votes |
169 | !set sh=!record $i of wimshome/log/classes/$wims_class/vote/.votes |
120 | !distribute lines $sh into st_,ti_,op_,re_ |
170 | !distribute lines $sh into st_,ti_,op_,re_ |
121 | $table_tr |
171 | $table_tr |
122 | <td> |
172 | <td> |
123 | <label for="vote_$i"> |
173 | <label for="vote_$i"> |
124 | !set wims_ref_class=wims_vote_item |
174 | !set wims_ref_class=wims_vote_item |
125 | !href module=adm/vote&job=read&vote=$i $ti_ |
175 | !href module=adm/vote&job=read&vote=$i $ti_ |
126 | </label> |
176 | </label> |
- | 177 | </td> |
|
127 |
|
178 | <td class="wims_status_$st_"> |
128 | $(wims_name_status[$st_+1]) |
179 | $(wims_name_status[$st_+1]) |
- | 180 | </td> |
|
129 |
|
181 | <td> |
130 | !set vote_$i=!positionof item vote $i in $(data[3;]) |
182 | !set vote_$i=!positionof item vote $i in $(data[3;]) |
131 | <input type="number" name="vote_$i" size="5" value="$(vote_$i)" id="vote_$i"/> |
183 | <input type="number" name="vote_$i" size="5" value="$(vote_$i)" id="vote_$i"/> |
132 | </td> |
184 | </td> |
133 | </tr> |
185 | </tr> |
134 | !next i |
186 | !next i |
135 | 187 | ||
- | 188 | !! -- tool data |
|
136 | !for i=1 to $toolcnt |
189 | !for i=1 to $toolcnt |
137 | !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.toolindex |
190 | !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.toolindex |
138 | !distribute lines $sh into s_,t_,ti,d_,o_ |
191 | !distribute lines $sh into s_,t_,ti,d_,o_ |
139 | $table_tr |
192 | $table_tr |
140 | <td> |
193 | <td> |
141 | <label for="tool_$i"> |
194 | <label for="tool_$i"> |
142 | !set wims_ref_class=wims_tool_item |
195 | !set wims_ref_class=wims_tool_item |
143 | !href module=$s_&$t_ $ti |
196 | !href module=$s_&$t_ $ti |
144 | </label> |
197 | </label> |
- | 198 | </td> |
|
145 |
|
199 | <td class="wims_status_$o_"> |
146 | !item $[$o_+1] of $wims_name_status |
200 | !item $[$o_+1] of $wims_name_status |
147 | !set wims_ref_class=wims_button |
201 | !set wims_ref_class=wims_button |
148 | !href module=adm/class/adddoc&job=prop&tool=$i $wims_name_change |
202 | !href module=adm/class/adddoc&job=prop&tool=$i $wims_name_change |
- | 203 | </td> |
|
149 |
|
204 | <td> |
150 | !set doc_$i=!positionof item tool $i in $(data[3;]) |
205 | !set doc_$i=!positionof item tool $i in $(data[3;]) |
151 | <input type="number" name="tool_$i" size="5" value="$(tool_$i)" id="tool_$i" /> |
206 | <input type="number" name="tool_$i" size="5" value="$(tool_$i)" id="tool_$i" /> |
152 | </td> |
207 | </td> |
153 | </tr> |
208 | </tr> |
154 | !next i |
209 | !next i |
155 | 210 | ||
- | 211 | !! -- glossary data |
|
156 | !for i=1 to $glossarycnt |
212 | !for i=1 to $glossarycnt |
157 | !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.glossaryindex |
213 | !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.glossaryindex |
158 | !distribute lines $sh into o_,ti |
214 | !distribute lines $sh into o_,ti |
159 | $table_tr |
215 | $table_tr |
160 | <td> |
216 | <td> |
161 | <label for="glossary_$i"> |
217 | <label for="glossary_$i"> |
162 | !set wims_ref_class=wims_glossary_item |
218 | !set wims_ref_class=wims_glossary_item |
163 | !href module=adm/tool/glossary&gl=$i $ti |
219 | !href module=adm/tool/glossary&gl=$i $ti |
164 | </label> |
220 | </label> |
- | 221 | </td> |
|
165 |
|
222 | <td class="wims_status_$o_"> |
166 | !item $[$o_+1] of $wims_name_status |
223 | !item $[$o_+1] of $wims_name_status |
167 | !set wims_ref_class=wims_button |
224 | !set wims_ref_class=wims_button |
168 | !href module=adm/class/glossary&job=chstatus&gl=$i $wims_name_change |
225 | !href module=adm/class/glossary&job=chstatus&gl=$i $wims_name_change |
- | 226 | </td> |
|
169 |
|
227 | <td> |
170 | !set glossary_$i=!positionof item glossary $i in $(data[3;]) |
228 | !set glossary_$i=!positionof item glossary $i in $(data[3;]) |
171 | <input type="number" name="glossary_$i" size="5" value="$(glossary_$i)" id="glossary_$i" /> |
229 | <input type="number" name="glossary_$i" size="5" value="$(glossary_$i)" id="glossary_$i" /> |
172 | </td> |
230 | </td> |
173 | </tr> |
231 | </tr> |
174 | !next i |
232 | !next i |
175 | 233 | ||
- | 234 | !! -- freework data |
|
176 | !for i=1 to $freeworkcnt |
235 | !for i=1 to $freeworkcnt |
177 | !set sh=!record $i of wimshome/log/classes/$wims_class/freeworks/.freeworks |
236 | !set sh=!record $i of wimshome/log/classes/$wims_class/freeworks/.freeworks |
178 | !distribute lines $sh into o_,bl,ti |
237 | !distribute lines $sh into o_,bl,ti |
179 | $table_tr |
238 | $table_tr |
180 | <td> |
239 | <td> |
181 | <label for="freework_$i"> |
240 | <label for="freework_$i"> |
182 | !set wims_ref_class=wims_freework_item |
241 | !set wims_ref_class=wims_freework_item |
183 | !href module=adm/class/freework/&freework=$i $ti |
242 | !href module=adm/class/freework/&freework=$i $ti |
184 | </label> |
243 | </label> |
- | 244 | </td> |
|
185 |
|
245 | <td class="wims_status_$o_"> |
186 | $(wims_name_shstatus[$o_+1]) |
246 | $(wims_name_shstatus[$o_+1]) |
- | 247 | </td> |
|
187 |
|
248 | <td> |
188 | !set freework_$i=!positionof item freework $i in $(data[3;]) |
249 | !set freework_$i=!positionof item freework $i in $(data[3;]) |
189 | <input type="number" name="freework_$i" size="5" value="$(freework_$i)" id="freework_$i" /> |
250 | <input type="number" name="freework_$i" size="5" value="$(freework_$i)" id="freework_$i" /> |
190 | </td> |
251 | </td> |
191 | </tr> |
252 | </tr> |
192 | !next i |
253 | !next i |
- | 254 | </div> |
|
- | 255 | $table_end |
|
- | 256 | </div> |
|
193 | 257 | ||
194 | 258 | ||
195 | $table_end |
- | |
196 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" /></div> |
259 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" /></div> |
197 | !formend |
260 | !formend |
- | 261 | </div> |