Subversion Repositories wimsdev

Rev

Rev 16001 | Rev 16156 | Go to most recent revision | 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
15988 guerimand 45
        <input id="seq_title" name="seq_title" size="65" value="$(data[1;])" required="required" maxlength="$title_limit" />
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;])
51
        !formselect visible list 0,1 prompt $wims_name_status
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>
16143 guerimand 58
!! ------------------ to be deleted
59
!!      <div class="field box">
60
!!        <label for="hidedate">$name_hidedate</label>
61
!!        !set hidedate=$(data[5;])
62
!!        !default hidedate=$class_creation
63
!!        !set wims_ref_class=wims_button_help float_right
64
!!        !href target=wims_mhelp cmd=help&special_parm=hide $wims_name_help
65
!!        !read adm/datepickerform.phtml $hidedate\
66
!!hidedate\
67
!!"$class_creation","$class_expiration"
68
!!        <div class="formHelp">$name_desc_hidedate</div>
69
!!      </div>
70
!!      <div class="field box">
71
!!        <label for="showdate">$name_showdate</label>
72
!!        !set showdate=$(data[6;])
73
!!        !default showdate=$class_creation
74
!!        !set wims_ref_class=wims_button_help float_right
75
!!        !href target=wims_mhelp cmd=help&special_parm=show $wims_name_help
76
!!        !read adm/datepickerform.phtml $showdate\
77
!!showdate\
78
!!"$class_creation","$class_expiration"
79
!!        <div class="formHelp">$name_desc_showdate</div>
80
!!      </div>
81
!! ---------------- end of deleted
82
 
83
!! --------------- add for selecte show
84
  <div class="field box">
85
    <label for="allowtype">$(name_showhidetitle)</label>
86
    !set wims_ref_class=wims_button_help float_right
87
    !href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help
88
    <select id="allowtype" name="allowtype"
89
            onchange="toggle_allowtype(this,{'select': '#js_restricted_time','techvar': '#js_restricted_techvar'})"
90
      >
91
      !if $tv_listname=$empty
92
        !set list_allowtype=all,none,select
93
      !else
94
        !set list_allowtype=all,none,select,techvar
95
      !endif
96
      !let nboption=!itemcnt $list_allowtype
97
      !for i=1 to $nboption
98
        !if $(list_allowtype[$i])=$allowtype
99
          <option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option>
100
        !else
101
          <option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option>
102
        !endif
103
      !next i
104
    </select>
105
 
106
    <div id="js_restricted_time"
107
      !if $allowtype=select
108
        style="display:block"
109
      !else
110
        style="display:none"
111
      !endif
112
      >
113
      !readproc adm/scorerestriction get
114
      !read adm/scorerestriction html
115
    </div>
116
 
117
    <div id="js_restricted_techvar"
118
      !if $allowtype=techvar
119
        style="display:block"
120
      !else
121
        style="display:none"
122
      !endif
123
      >
124
      !read adm/vfilter/scoreregform.phtml
125
    </div>
126
    !read js/interface/ui_utils.js.phtml
127
 
128
    !default allowshare=0
129
    !if $sharers!=$empty
130
      <div>
131
        <label for="allowshare">$(name_shinfo[7])</label>
132
        !formselect allowshare list 0,1 prompt $wims_name_no,$wims_name_yes
15998 guerimand 133
      </div>
16143 guerimand 134
    !else
135
      <input type="hidden" name="allowshare" value="0" />
136
    !endif
137
  </div>
138
 
139
 
140
!! ---------------- end of add
141
 
142
 
143
 
15987 guerimand 144
    </div></div>
145
 
146
    !! ---- manage of seqliste panel
147
    <div id="seqliste">
148
     $name_addseq
149
     $table_header
150
      <caption>$wims_name_Docs, $wims_name_Votes & $C_A</caption>
151
      $table_hdtr
152
        <th scope="col">$wims_name_title</th>
153
        <th scope="col">$wims_name_Status</th>
154
        <th scope="col">$wims_name_Position</th>
155
      </tr>
156
      !set listc=!filelist $wims_home/log/classes/$wims_class/doc
157
      !set listc=!replace internal c by in $listc
158
      !set listc=!lines2items $listc
159
      !set listc=!sort numeric items $listc
160
 
161
      !! -- doc of the class data
162
      !for i=1 to $doccnt
163
        !set ci_=!item $(wims_sort_order[$i]) of $listc
164
        !set sh=!record $ci_ of wimshome/log/classes/$wims_class/doc/.index
165
        !distribute lines $sh into s_,t_,bidon,bidon,bidon,o_
166
        !set ss_=!replace internal c by c$ $ in $s_
167
        !set c_$i=!positionof item $ss_ in $(data[3;])
168
        !set ss_=!replace internal c by c_ in $s_
169
        !if $s_!=
170
          $table_tr
171
            <td>
172
              <label for="$ss_">
173
                !set wims_ref_class=wims_doc_item
174
                !href module=adm/doc&job=read&doc=$s_&block=main $t_
175
              </label>
176
            </td>
177
            <td class="wims_status_$o_">
178
              !item $[$o_+1] of $wims_name_status
179
              !set wims_ref_class=wims_button
180
              !href module=adm/doc&job=prop&doc=$s_ $wims_name_change
181
            </td>
182
            <td>
183
             <input type="number" name="$ss_" size="5" value="$(c_$i)" id="$ss_" />
184
            </td>
185
          </tr>
186
        !endif
187
      !next i
188
 
189
      !! -- public doc data
190
      !for i=1 to $docpubliccnt
191
        !set sh=!record $i of wimshome/log/classes/$wims_class/doc/.docindex
192
        !distribute lines $sh into s_,t_,ti,d_,o_
193
        $table_tr
194
          <td>
195
            !set wims_ref_class=wims_doc_item
196
            <label for="doc_$i">
197
              !href module=$s_&$t_ $ti
198
            </label>
199
          </td>
200
          <td class="wims_status_$o_">
201
            !item $[$o_+1] of $wims_name_status
202
            !set wims_ref_class=wims_button
203
            !href module=adm/class/adddoc&job=prop&doc=$i $wims_name_change
204
          </td>
205
          <td>
206
            !set doc_$i=!positionof item doc $i in $(data[3;])
207
            <input type="number" name="doc_$i" size="5" value="$(doc_$i)" id="doc_$i" />
208
          </td>
209
        </tr>
210
      !next i
211
 
212
      !! -- sheet data
213
      !for i=1 to $sheetcnt
214
        !set sh=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets
215
        !distribute lines $sh into ac,t_,ti
216
        $table_tr
217
        <td>
218
          !set wims_ref_class=wims_sheet_item
219
          <label for="sheet_$i">
220
            !href module=adm/class/sheet&sheet=$i $ti
221
          </label>
222
        </td>
223
        <td class="wims_status_$ac">
224
          $(wims_name_shstatus[$ac+1])
225
        </td>
226
        <td>
227
          !set sheet_$i=!positionof item sheet $i in $(data[3;])
228
          <input type="number" name="sheet_$i" size="5" value="$(sheet_$i)" id="sheet_$i" />
229
        </td>
230
      </tr>
231
    !next i
14268 obado 232
 
15987 guerimand 233
    !! -- exam data
234
    !for i=1 to $examcnt
235
      !set sh=!record $i of wimshome/log/classes/$wims_class/exams/.exams
236
      !distribute lines $sh into ac,t_,d_,ti
237
      $table_tr
238
        <td>
239
          <label for="exam_$i">
240
            !set wims_ref_class=wims_exam_item
241
            !href module=adm/class/exam&exam=$i $ti
242
          </label>
243
        </td>
244
        <td class="wims_status_$ac">
245
          $(wims_name_shstatus[$ac+1])
246
        </td>
247
        <td>
248
          !set exam_$i=!positionof item exam $i in $(data[3;])
249
          <input type="number" name="exam_$i" size="5" value="$(exam_$i)" id="exam_$i"/>
250
        </td>
251
      </tr>
252
    !next i
13669 bpr 253
 
14268 obado 254
 
15987 guerimand 255
    !! -- vote data
256
      !for i=1 to $votecnt
257
        !set sh=!record $i of wimshome/log/classes/$wims_class/vote/.votes
258
        !distribute lines $sh into st_,ti_,op_,re_
259
        $table_tr
260
        <td>
261
          <label for="vote_$i">
262
            !set wims_ref_class=wims_vote_item
263
            !href module=adm/vote&job=read&vote=$i $ti_
264
          </label>
265
        </td>
266
        <td class="wims_status_$st_">
267
          $(wims_name_status[$st_+1])
268
        </td>
269
        <td>
270
          !set vote_$i=!positionof item vote $i in $(data[3;])
271
          <input type="number" name="vote_$i" size="5" value="$(vote_$i)" id="vote_$i"/>
272
        </td>
273
      </tr>
274
    !next i
14268 obado 275
 
15987 guerimand 276
    !! -- tool data
277
    !for i=1 to $toolcnt
278
      !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.toolindex
279
        !distribute lines $sh into s_,t_,ti,d_,o_
280
        $table_tr
281
          <td>
282
            <label for="tool_$i">
283
              !set wims_ref_class=wims_tool_item
284
              !href module=$s_&$t_ $ti
285
            </label>
286
          </td>
287
          <td class="wims_status_$o_">
288
            !item $[$o_+1] of $wims_name_status
289
            !set wims_ref_class=wims_button
290
            !href module=adm/class/adddoc&job=prop&tool=$i $wims_name_change
291
          </td>
292
          <td>
293
            !set doc_$i=!positionof item tool $i in $(data[3;])
294
            <input type="number" name="tool_$i" size="5" value="$(tool_$i)" id="tool_$i" />
295
          </td>
296
        </tr>
297
      !next i
14268 obado 298
 
15987 guerimand 299
      !! -- glossary data
300
      !for i=1 to $glossarycnt
301
        !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.glossaryindex
302
        !distribute lines $sh into o_,ti
303
        $table_tr
304
        <td>
305
          <label for="glossary_$i">
306
            !set wims_ref_class=wims_glossary_item
307
            !href module=adm/tool/glossary&gl=$i $ti
308
          </label>
309
        </td>
310
        <td class="wims_status_$o_">
311
          !item $[$o_+1] of $wims_name_status
312
          !set wims_ref_class=wims_button
313
          !href module=adm/class/glossary&job=chstatus&gl=$i $wims_name_change
314
        </td>
315
        <td>
316
          !set glossary_$i=!positionof item glossary $i in $(data[3;])
317
          <input type="number" name="glossary_$i" size="5" value="$(glossary_$i)" id="glossary_$i" />
318
        </td>
319
      </tr>
320
    !next i
14268 obado 321
 
15987 guerimand 322
    !! -- freework data
323
    !for i=1 to $freeworkcnt
324
        !set sh=!record $i of wimshome/log/classes/$wims_class/freeworks/.freeworks
325
        !distribute lines $sh into o_,bl,ti
326
        $table_tr
327
          <td>
328
            <label for="freework_$i">
329
              !set wims_ref_class=wims_freework_item
330
              !href module=adm/class/freework/&freework=$i $ti
331
            </label>
332
          </td>
333
          <td class="wims_status_$o_">
334
            $(wims_name_shstatus[$o_+1])
335
          </td>
336
          <td>
337
            !set freework_$i=!positionof item freework $i in $(data[3;])
338
            <input type="number" name="freework_$i" size="5" value="$(freework_$i)" id="freework_$i" />
339
          </td>
340
        </tr>
341
    !next i
342
  </div>
343
  $table_end
344
</div>
14268 obado 345
 
346
 
16143 guerimand 347
<div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" name="save" /></div>
5926 bpr 348
!formend
15987 guerimand 349
</div>