Subversion Repositories wimsdev

Rev

Rev 14769 | Rev 15988 | 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
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
102
      !for i=1 to $docpubliccnt
103
        !set sh=!record $i of wimshome/log/classes/$wims_class/doc/.docindex
104
        !distribute lines $sh into s_,t_,ti,d_,o_
105
        $table_tr
106
          <td>
107
            !set wims_ref_class=wims_doc_item
108
            <label for="doc_$i">
109
              !href module=$s_&$t_ $ti
110
            </label>
111
          </td>
112
          <td class="wims_status_$o_">
113
            !item $[$o_+1] of $wims_name_status
114
            !set wims_ref_class=wims_button
115
            !href module=adm/class/adddoc&job=prop&doc=$i $wims_name_change
116
          </td>
117
          <td>
118
            !set doc_$i=!positionof item doc $i in $(data[3;])
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" />
141
        </td>
142
      </tr>
143
    !next i
14268 obado 144
 
15987 guerimand 145
    !! -- exam data
146
    !for i=1 to $examcnt
147
      !set sh=!record $i of wimshome/log/classes/$wims_class/exams/.exams
148
      !distribute lines $sh into ac,t_,d_,ti
149
      $table_tr
150
        <td>
151
          <label for="exam_$i">
152
            !set wims_ref_class=wims_exam_item
153
            !href module=adm/class/exam&exam=$i $ti
154
          </label>
155
        </td>
156
        <td class="wims_status_$ac">
157
          $(wims_name_shstatus[$ac+1])
158
        </td>
159
        <td>
160
          !set exam_$i=!positionof item exam $i in $(data[3;])
161
          <input type="number" name="exam_$i" size="5" value="$(exam_$i)" id="exam_$i"/>
162
        </td>
163
      </tr>
164
    !next i
13669 bpr 165
 
14268 obado 166
 
15987 guerimand 167
    !! -- vote data
168
      !for i=1 to $votecnt
169
        !set sh=!record $i of wimshome/log/classes/$wims_class/vote/.votes
170
        !distribute lines $sh into st_,ti_,op_,re_
171
        $table_tr
172
        <td>
173
          <label for="vote_$i">
174
            !set wims_ref_class=wims_vote_item
175
            !href module=adm/vote&job=read&vote=$i $ti_
176
          </label>
177
        </td>
178
        <td class="wims_status_$st_">
179
          $(wims_name_status[$st_+1])
180
        </td>
181
        <td>
182
          !set vote_$i=!positionof item vote $i in $(data[3;])
183
          <input type="number" name="vote_$i" size="5" value="$(vote_$i)" id="vote_$i"/>
184
        </td>
185
      </tr>
186
    !next i
14268 obado 187
 
15987 guerimand 188
    !! -- tool data
189
    !for i=1 to $toolcnt
190
      !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.toolindex
191
        !distribute lines $sh into s_,t_,ti,d_,o_
192
        $table_tr
193
          <td>
194
            <label for="tool_$i">
195
              !set wims_ref_class=wims_tool_item
196
              !href module=$s_&$t_ $ti
197
            </label>
198
          </td>
199
          <td class="wims_status_$o_">
200
            !item $[$o_+1] of $wims_name_status
201
            !set wims_ref_class=wims_button
202
            !href module=adm/class/adddoc&job=prop&tool=$i $wims_name_change
203
          </td>
204
          <td>
205
            !set doc_$i=!positionof item tool $i in $(data[3;])
206
            <input type="number" name="tool_$i" size="5" value="$(tool_$i)" id="tool_$i" />
207
          </td>
208
        </tr>
209
      !next i
14268 obado 210
 
15987 guerimand 211
      !! -- glossary data
212
      !for i=1 to $glossarycnt
213
        !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.glossaryindex
214
        !distribute lines $sh into o_,ti
215
        $table_tr
216
        <td>
217
          <label for="glossary_$i">
218
            !set wims_ref_class=wims_glossary_item
219
            !href module=adm/tool/glossary&gl=$i $ti
220
          </label>
221
        </td>
222
        <td class="wims_status_$o_">
223
          !item $[$o_+1] of $wims_name_status
224
          !set wims_ref_class=wims_button
225
          !href module=adm/class/glossary&job=chstatus&gl=$i $wims_name_change
226
        </td>
227
        <td>
228
          !set glossary_$i=!positionof item glossary $i in $(data[3;])
229
          <input type="number" name="glossary_$i" size="5" value="$(glossary_$i)" id="glossary_$i" />
230
        </td>
231
      </tr>
232
    !next i
14268 obado 233
 
15987 guerimand 234
    !! -- freework data
235
    !for i=1 to $freeworkcnt
236
        !set sh=!record $i of wimshome/log/classes/$wims_class/freeworks/.freeworks
237
        !distribute lines $sh into o_,bl,ti
238
        $table_tr
239
          <td>
240
            <label for="freework_$i">
241
              !set wims_ref_class=wims_freework_item
242
              !href module=adm/class/freework/&freework=$i $ti
243
            </label>
244
          </td>
245
          <td class="wims_status_$o_">
246
            $(wims_name_shstatus[$o_+1])
247
          </td>
248
          <td>
249
            !set freework_$i=!positionof item freework $i in $(data[3;])
250
            <input type="number" name="freework_$i" size="5" value="$(freework_$i)" id="freework_$i" />
251
          </td>
252
        </tr>
253
    !next i
254
  </div>
255
  $table_end
256
</div>
14268 obado 257
 
258
 
259
<div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" /></div>
5926 bpr 260
!formend
15987 guerimand 261
</div>