Rev 18144 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18144 | Rev 18147 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | !if $type=sheet |
86 | !if $type=sheet |
87 | !reset hidden_sheet |
87 | !reset hidden_sheet |
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 |
- | |
92 |
|
91 | !set tmp_sheetstatus=!getsheetstatus sheet=$num |
93 |
|
92 | !if $tmp_sheetstatus iswordof 1 2 |
94 | !if $h_!=$empty |
- | |
95 | !readproc adm/vfilter/ishiddensheet.proc $h_ |
- | |
96 | !endif |
- | |
97 | !! -----end test |
- | |
98 | !endif |
- | |
99 | !if $a_>=1 and $a_<=2 and $hidden_sheet!=1 |
- | |
100 | !set formula_list=!record 0 of adm/class/sheetformula |
93 | !set formula_list=!record 0 of adm/class/sheetformula |
101 | !set scoremax=!line 1 of $sevlist |
94 | !set scoremax=!line 1 of $sevlist |
102 | !default scoremax=10 |
95 | !default scoremax=10 |
103 | !set sev_$num=!line $num + 1 of $sevlist |
96 | !set sev_$num=!line $num + 1 of $sevlist |
104 | !distribute word $(sev_$num) into w_$num,s,ss |
97 | !distribute word $(sev_$num) into w_$num,s,ss |
Line 109... | Line 102... | ||
109 | !set pe=!line $num of $percents |
102 | !set pe=!line $num of $percents |
110 | !set try=!getscoretry sheet=$num |
103 | !set try=!getscoretry sheet=$num |
111 | !set try0=!text select 123456789 in $try |
104 | !set try0=!text select 123456789 in $try |
112 | !increase seq_item |
105 | !increase seq_item |
113 | <li class="wims_sheet_item" id="sh$num"> |
106 | <li class="wims_sheet_item" id="sh$num"> |
114 | <span class="wims_seq_item_n">$seq_item</span> |
107 | <span class="wims_seq_item_n">$seq_item</span> |
115 | !href module=adm/sheet&sh=$num&seq=$i $ti |
108 | !href module=adm/sheet&sh=$num&seq=$i $ti |
116 | <ul class="wims_sheet_info"> |
109 | <ul class="wims_sheet_info"> |
117 | !if showshweight iswordof $class_option |
110 | !if showshweight iswordof $class_option |
118 | <li class="wims_sheet_weight small">$wims_name_coeff <span class="sheet_weight_num">$(w_$num)</span></li> |
111 | <li class="wims_sheet_weight small">$wims_name_coeff <span class="sheet_weight_num">$(w_$num)</span></li> |
119 | !endif |
112 | !endif |
120 | !if $a_>=2 |
113 | !if $a_>=2 |
121 | <li class="wims_user_sheet_expire"><span class="wims_status wims_status_2">$U_expired</span></li> |
114 | <li class="wims_user_sheet_expire"><span class="wims_status wims_status_2">$U_expired</span></li> |
122 | !else |
115 | !else |
123 | !if showshexpire iswordof $class_option |
116 | !if showshexpire iswordof $class_option |
124 | <li class="wims_user_sheet_expire small"> |
117 | <li class="wims_user_sheet_expire small"> |
125 | !read misc/expire.phtml.$lang $t_ |
118 | !read misc/expire.phtml.$lang $t_ |
126 | </li> |
119 | </li> |
127 | !endif |
120 | !endif |
128 | !endif |
121 | !endif |
129 | </ul> |
122 | </ul> |
130 | <div class="wims_user_info"> |
123 | <div class="wims_user_info"> |
131 | !if $try0!=$empty |
124 | !if $try0!=$empty |
132 | !distribute words $pe into p1,p2,p3,p4 |
125 | !distribute words $pe into p1,p2,p3,p4 |
133 | !distribute item $[$p1/100],$[$p2/10],$[$p3/100],$[$p4/100] into x0_,y_,x1_,x2_ |
126 | !distribute item $[$p1/100],$[$p2/10],$[$p3/100],$[$p4/100] into x0_,y_,x1_,x2_ |
Line 209... | Line 202... | ||
209 | !endif |
202 | !endif |
210 | !if $type=exam |
203 | !if $type=exam |
211 | !reset hidden_sheet |
204 | !reset hidden_sheet |
212 | !set e_=!record $num of wimshome/log/classes/$wims_class/exams/.exams |
205 | !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_ |
206 | !distribute lines $e_ into a_,ex_,du_,title_,de_,bl,bl,h_ |
214 |
|
207 | !set tmp_sheetstatus=!getsheetstatus exam=$num |
215 | !if $h_!=$empty |
- | |
216 | !readproc adm/vfilter/ishiddensheet.proc $h_ |
- | |
217 | !endif |
- | |
218 | !! -----end test |
- | |
219 | !if |
208 | !if $tmp_sheetstatus isworof 1 2 |
220 | !increase seq_item |
209 | !increase seq_item |
221 | <li class="wims_exam_item"> |
210 | <li class="wims_exam_item"> |
222 | <span class="wims_seq_item_n">$seq_item</span> |
211 | <span class="wims_seq_item_n">$seq_item</span> |
223 | !href module=adm/class/exam&exam=$num&seq=$i $title_ |
212 | !href module=adm/class/exam&exam=$num&seq=$i $title_ |
224 | <span class="wims_user_exam_expire"> |
213 | <span class="wims_user_exam_expire"> |