Rev 17440 | Rev 18138 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17440 | Rev 18127 | ||
---|---|---|---|
Line 88... | Line 88... | ||
88 | !set s_=!record $num of wimshome/log/classes/$wims_class/sheets/.sheets |
88 | !set s_=!record $num of wimshome/log/classes/$wims_class/sheets/.sheets |
89 | !set sevlist=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity |
89 | !set sevlist=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity |
90 | !distribute lines $s_ into a_,t_,ti,de,b,b,b,b,b,indivtechvar |
90 | !distribute lines $s_ into a_,t_,ti,de,b,b,b,b,b,indivtechvar |
91 | !if $wims_user!=supervisor |
91 | !if $wims_user!=supervisor |
92 | !! ------test if sheet is hidden for this user |
92 | !! ------test if sheet is hidden for this user |
93 |
|
93 | !! !set h_=!line 9 of $s_ |
94 |
|
94 | !! !if $h_!=$empty |
95 |
|
95 | !! !readproc adm/vfilter/ishiddensheet.proc $h_ |
96 |
|
96 | !! !endif |
97 | !! -----end test |
97 | !! -----end test |
- | 98 | !set tmp_sheetstatus=!getsheetstatus sheet=$num user=$wims_user |
|
98 | !endif |
99 | !endif |
- | 100 | !if $tmp_sheetstatus iswordof 1 2 |
|
99 |
|
101 | !!if $a_>=1 and $a_<=2 and $hidden_sheet!=1 |
100 | !set formula_list=!record 0 of adm/class/sheetformula |
102 | !set formula_list=!record 0 of adm/class/sheetformula |
101 | !set scoremax=!line 1 of $sevlist |
103 | !set scoremax=!line 1 of $sevlist |
102 | !default scoremax=10 |
104 | !default scoremax=10 |
103 | !set sev_$num=!line $num + 1 of $sevlist |
105 | !set sev_$num=!line $num + 1 of $sevlist |
104 | !distribute word $(sev_$num) into w_$num,s,ss |
106 | !distribute word $(sev_$num) into w_$num,s,ss |
Line 107... | Line 109... | ||
107 | !set f_$num=!item $s+1 of $formula_list |
109 | !set f_$num=!item $s+1 of $formula_list |
108 | !set f_$num=!replace internal I by I$ss in $(f_$num) |
110 | !set f_$num=!replace internal I by I$ss in $(f_$num) |
109 | !set pe=!line $num of $percents |
111 | !set pe=!line $num of $percents |
110 | !set try=!getscoretry sheet=$num |
112 | !set try=!getscoretry sheet=$num |
111 | !set try0=!text select 123456789 in $try |
113 | !set try0=!text select 123456789 in $try |
112 | !increase seq_item |
114 | !increase seq_item |
113 | <li class="wims_sheet_item" id="sh$num"> |
115 | <li class="wims_sheet_item" id="sh$num"> |
114 | <span class="wims_seq_item_n">$seq_item</span> |
116 | <span class="wims_seq_item_n">$seq_item</span> |
115 | !href module=adm/sheet&sh=$num&seq=$i $ti |
117 | !href module=adm/sheet&sh=$num&seq=$i $ti |
116 | <ul class="wims_sheet_info"> |
118 | <ul class="wims_sheet_info"> |
117 | !if showshweight iswordof $class_option |
119 | !if showshweight iswordof $class_option |
118 | <li class="wims_sheet_weight small">$wims_name_coeff <span class="sheet_weight_num">$(w_$num)</span></li> |
120 | <li class="wims_sheet_weight small">$wims_name_coeff <span class="sheet_weight_num">$(w_$num)</span></li> |
119 | !endif |
121 | !endif |
- | 122 | !if tmp_status>=2 |
|
120 |
|
123 | !!if $a_>=2 |
121 | <li class="wims_user_sheet_expire"><span class="wims_status wims_status_2">$U_expired</span></li> |
124 | <li class="wims_user_sheet_expire"><span class="wims_status wims_status_2">$U_expired</span></li> |
122 | !else |
125 | !else |
123 | !if showshexpire iswordof $class_option |
126 | !if showshexpire iswordof $class_option |
124 | <li class="wims_user_sheet_expire small"> |
127 | <li class="wims_user_sheet_expire small"> |
125 | !read misc/expire.phtml.$lang $t_ |
128 | !read misc/expire.phtml.$lang $t_ |
126 | </li> |
129 | </li> |
127 | !endif |
130 | !endif |
128 | !endif |
131 | !endif |
129 | </ul> |
132 | </ul> |
130 | <div class="wims_user_info"> |
133 | <div class="wims_user_info"> |
131 | !if $try0!=$empty |
134 | !if $try0!=$empty |
132 | !distribute words $pe into p1,p2,p3,p4 |
135 | !distribute words $pe into p1,p2,p3,p4 |
133 | !distribute item $[$p1/100],$[$p2/10],$[$p3/100],$[$p4/100] into x0_,y_,x1_,x2_ |
136 | !distribute item $[$p1/100],$[$p2/10],$[$p3/100],$[$p4/100] into x0_,y_,x1_,x2_ |
Line 181... | Line 184... | ||
181 | !set v_=!record $num of wimshome/log/classes/$wims_class/vote/.votes |
184 | !set v_=!record $num of wimshome/log/classes/$wims_class/vote/.votes |
182 | !distribute lines $v_ into a_,t_ |
185 | !distribute lines $v_ into a_,t_ |
183 | !if $a_>=1 and $a_<=2 |
186 | !if $a_>=1 and $a_<=2 |
184 | !increase seq_item |
187 | !increase seq_item |
185 | <li class="wims_vote_item"> |
188 | <li class="wims_vote_item"> |
186 | <span class="wims_seq_item_n">$seq_item</span> |
189 | <span class="wims_seq_item_n">$seq_item</span> |
187 | !href module=adm/vote&job=read&vote=$num&seq=$i $t_ |
190 | !href module=adm/vote&job=read&vote=$num&seq=$i $t_ |
188 | </li> |
191 | </li> |
189 | !endif |
192 | !endif |
190 | !reset a_,t_ |
193 | !reset a_,t_ |
191 | !endif |
194 | !endif |
Line 210... | Line 213... | ||
210 | !if $type=exam |
213 | !if $type=exam |
211 | !reset hidden_sheet |
214 | !reset hidden_sheet |
212 | !set e_=!record $num of wimshome/log/classes/$wims_class/exams/.exams |
215 | !set e_=!record $num of wimshome/log/classes/$wims_class/exams/.exams |
213 | !distribute lines $e_ into a_,ex_,du_,title_,de_,bl,bl,h_ |
216 | !distribute lines $e_ into a_,ex_,du_,title_,de_,bl,bl,h_ |
214 | !! ------test if exam is hidden for this user |
217 | !! ------test if exam is hidden for this user |
215 |
|
218 | !if $h_!=$empty |
216 |
|
219 | !readproc adm/vfilter/ishiddensheet.proc $h_ |
217 |
|
220 | !endif |
218 | !! -----end test |
221 | !! -----end test |
- | 222 | !set tmp_sheetstatus=!getsheetstatus exam=$num user=$wims_user |
|
- | 223 | !if $tmp_sheetstatus iswordof 1 2 |
|
219 |
|
224 | !!if $a_>=1 and $a_<=2 and $hidden_sheet!=1 |
220 | !increase seq_item |
225 | !increase seq_item |
221 | <li class="wims_exam_item"> |
226 | <li class="wims_exam_item"> |
222 | <span class="wims_seq_item_n">$seq_item</span> |
227 | <span class="wims_seq_item_n">$seq_item</span> |
223 | !href module=adm/class/exam&exam=$num&seq=$i $title_ |
228 | !href module=adm/class/exam&exam=$num&seq=$i $title_ |
224 | <span class="wims_user_exam_expire"> |
229 | <span class="wims_user_exam_expire"> |
- | 230 | !if $tmp_sheetstatus iswordof 2 3 |
|
225 |
|
231 | !!if $a_>=2 |
226 | <span class="wims_status wims_status_2">$U_expired</span> |
232 | <span class="wims_status wims_status_2">$U_expired</span> |
227 | !else |
233 | !else |
228 | !if showexexpire iswordof $class_option |
234 | !if showexexpire iswordof $class_option |
229 | !read misc/expire.phtml.$lang $ex_ |
235 | !read misc/expire.phtml.$lang $ex_ |
230 | !else |
236 | !else |