Rev 14769 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1407 | bpr | 1 | !distribute items $wims_read_parm into i,j |
11999 | obado | 2 | !default j=1 |
3 | !set seq_=!record $j of wimshome/log/classes/$wims_class/seq/.sequence$i |
||
4 | !distribute line $seq_ into tis_,cos_,obj_,o_ |
||
5 | <div id="wims_seq_$i" class="wims_seq"> |
||
6 | <h2 class="wims_title_seq"> |
||
7 | <span class="wims_seq_id">$sequence_Title $i</span> |
||
8 | <span class="wims_title_item">$tis_</span> |
||
12555 | bpr | 9 | !if $wims_user=supervisor |
16156 | guerimand | 10 | <span class="wims_status wims_status_$o_">($(wims_name_shstatus[$o_+1]))</span> |
12555 | bpr | 11 | !endif |
12 | </h2> |
||
13 | <div class="wims_content_seq"> |
||
14 | !if $wims_user=supervisor |
||
15 | <div class="wims_seq_actions"> |
||
16 | !set wims_ref_class=wims_button |
||
17 | !href module=adm/class/sequence&job=addseq&seq=$i $wims_name_change |
||
18 | !if $i>1 |
||
19 | !set wims_ref_class=wims_button |
||
20 | !href cmd=reply&job=moveup&moveup=$i $wims_name_up |
||
12336 | bpr | 21 | !endif |
12555 | bpr | 22 | !set wims_ref_class=wims_button wims_warning |
23 | !href cmd=reply&job=delete&seq=$i $wims_name_erase |
||
24 | !if $o_=1 |
||
12336 | bpr | 25 | !set wims_ref_class=wims_button |
16156 | guerimand | 26 | !href cmd=reply&job=changeopt&seq=$i&option=0 $(wims_name_actionlist[3]) |
12555 | bpr | 27 | !else |
28 | !set wims_ref_class=wims_button |
||
16156 | guerimand | 29 | !href cmd=reply&job=changeopt&seq=$i&option=1 $(wims_name_actionlist[1]) |
12336 | bpr | 30 | !endif |
12555 | bpr | 31 | </div> |
32 | !endif |
||
7762 | bpr | 33 | |
12336 | bpr | 34 | <div class="wims_comment_item">$cos_</div> |
11999 | obado | 35 | |
12336 | bpr | 36 | <ul class="wims_work_list"> |
37 | !set dcnt=!itemcnt $obj_ |
||
38 | !set listc=!filelist $wims_home/log/classes/$wims_class/doc |
||
39 | !for i_=1 to $dcnt |
||
40 | !distribute word $(obj_[$i_]) into type,num |
||
41 | !if $type=c |
||
42 | !set d_=!nospace $(obj_[$i_]) |
||
43 | !set num=!positionof line $d_ in $listc |
||
13675 | bpr | 44 | !set d_=!record $num of wimshome/log/classes/$wims_class/doc/.index |
45 | !distribute lines $d_ into s_,t_,bidon,bidon,bidon,o_,bidon,bidon,de_ |
||
46 | <li class="wims_doc_item"> |
||
47 | !href module=adm/doc&job=read&doc=$s_&block=main&seq=$i $t_ |
||
48 | <span class="wims_status wims_status_$[min($o_,1)]">($(wims_name_status[$[min($o_+1,2)]]))</span> |
||
49 | <div class="wims_doc_desc">$de_</div> |
||
50 | </li> |
||
51 | !reset s_,t_,bidon,bidon,bidon,o_ |
||
52 | !endif |
||
12336 | bpr | 53 | !if $type=doc |
54 | !set d_=!record $num of wimshome/log/classes/$wims_class/doc/.docindex |
||
55 | !distribute lines $d_ into s_,t_,ti_,de_,o_ |
||
56 | <li class="wims_doc_item"> |
||
57 | !href module=$s_&$t_&seq=$i&name=$wims_name_sequence $ti_ |
||
58 | <span class="wims_status wims_status_$[min($o_,1)]">($(wims_name_status[$[min($o_+1,2)]]))</span> |
||
59 | <div class="wims_doc_desc">$de_</div> |
||
60 | </li> |
||
61 | !reset s_,t_,ti_,de_,o_ |
||
62 | !endif |
||
12569 | bpr | 63 | !if $type=glossary |
64 | !set d_=!record $num of wimshome/log/classes/$wims_class/tool/.glossaryindex |
||
65 | !distribute lines $d_ into o_,ti_,de_ |
||
66 | <li class="wims_glossary_item"> |
||
67 | !href module=adm/tool/glossary&gl=$num&seq=$i&name=$wims_name_sequence $ti_ |
||
68 | <span class="wims_status wims_status_$[min($o_,1)]">($(wims_name_status[$[min($o_+1,2)]]))</span> |
||
69 | <div class="wims_glossary_desc">$de_</div> |
||
70 | </li> |
||
71 | !reset ti_,o_,de_ |
||
72 | !endif |
||
12336 | bpr | 73 | !if $type=sheet |
74 | !set s_=!record $num of wimshome/log/classes/$wims_class/sheets/.sheets |
||
75 | !distribute lines $s_ into a_,t_,ti,de_ |
||
76 | <li class="wims_sheet_item"> |
||
77 | !href module=adm/sheet&sh=$num&seq=$i $ti |
||
78 | <span class="wims_status wims_status_$a_">($(wims_name_shstatus[$a_+1]))</span> |
||
79 | <div class="wims_sheet_desc">$de_</div> |
||
80 | </li> |
||
81 | !reset a_,t_,ti,de_ |
||
82 | !endif |
||
14769 | guerimand | 83 | !if $type=freework |
84 | !set s_=!record $num of wimshome/log/classes/$wims_class/freeworks/.freeworks |
||
85 | !distribute lines $s_ into a_,t_,ti,de_ |
||
86 | <li class="wims_freework_item"> |
||
87 | !href module=adm/class/freework&freework=$num&seq=$i $ti |
||
88 | <span class="wims_status wims_status_$a_">($(wims_name_shstatus[$a_+1]))</span> |
||
89 | <div class="wims_freework_desc">$de_</div> |
||
90 | </li> |
||
91 | !reset a_,t_,ti,de_ |
||
92 | !endif |
||
12336 | bpr | 93 | !if $type=vote |
94 | !set v_=!record $num of wimshome/log/classes/$wims_class/vote/.votes |
||
13654 | bpr | 95 | !distribute lines $v_ into a_,t_ |
12336 | bpr | 96 | <li class="wims_vote_item"> |
97 | !href module=adm/vote&job=read&vote=$num&seq=$i $t_ |
||
98 | <span class="wims_status wims_status_$a_">($(wims_name_status[$a_+1]))</span> |
||
99 | </li> |
||
100 | !reset a_,t_,ti,de_ |
||
101 | !endif |
||
102 | !if $type=exam |
||
103 | !set e_=!record $num of wimshome/log/classes/$wims_class/exams/.exams |
||
104 | !distribute lines $e_ into a_,ex_,du_,t_,de_ |
||
105 | <li class="wims_exam_item"> |
||
106 | !href module=adm/class/exam&exam=$num&seq=$i $t_ |
||
107 | <span class="wims_status wims_status_$a_">($(wims_name_shstatus[$a_+1]))</span> |
||
108 | <div class="wims_exam_desc">$de_</div> |
||
109 | </li> |
||
110 | !reset a_,ex_,du_,nb_,t_,de_ |
||
111 | !endif |
||
12341 | bpr | 112 | !if $type=tool |
113 | !set d_=!record $num of wimshome/log/classes/$wims_class/tool/.toolindex |
||
114 | !distribute lines $d_ into s_,t_,ti_,de_,o_ |
||
115 | <li class="wims_tool_item"> |
||
116 | !href module=$s_&$t_&seq=$i&name=$wims_name_sequence $ti_ |
||
117 | <span class="wims_status wims_status_$[min($o_,1)]">($(wims_name_status[$[min($o_+1,2)]]))</span> |
||
118 | <div class="wims_tool_desc">$de_</div> |
||
119 | </li> |
||
120 | !reset s_,t_,ti_,de_,o_ |
||
121 | !endif |
||
12336 | bpr | 122 | !next i_ |
123 | </ul> |
||
11999 | obado | 124 | </div> |
7977 | bpr | 125 | </div> |