Rev 5894 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1988 | bpr | 1 | !!!###language independant |
2 | |||
1587 | bpr | 3 | !read adm/title.phtml 1\ |
1607 | bpr | 4 | $classname\ |
5 | $name_workdetail |
||
23 | reyssat | 6 | |
1587 | bpr | 7 | <center><b> |
927 | bpr | 8 | !if $wims_user=supervisor |
2397 | bpr | 9 | !href cmd=reply&job=userprop&getuser=$getuser $name_student1 |
5426 | guerimand | 10 | !if $getuser isitemof $wims_connectedlogin |
5917 | bpr | 11 | <img src="gifs/themes/$wims_theme_icon/connected.png" width="15px"/> |
5225 | guerimand | 12 | !endif |
1293 | bpr | 13 | !else |
2397 | bpr | 14 | $name_student1 |
1293 | bpr | 15 | !endif |
5727 | bpr | 16 | </b><br/><font size="-1">$wims_name_Login: <tt>$getuser</tt> |
5660 | bpr | 17 | !if $user_external_auth!=$empty |
18 | (<tt>$user_external_auth</tt>) |
||
19 | !endif |
||
23 | reyssat | 20 | !if $user_email!=$empty |
5754 | bpr | 21 | <br/> |
5660 | bpr | 22 | $wims_name_email: <a href="mailto:$user_email">$user_email</a> |
23 | reyssat | 23 | !endif |
1791 | bpr | 24 | </font> |
1587 | bpr | 25 | </center> |
937 | bpr | 26 | !if $user_photourl!= |
5917 | bpr | 27 | <img src="$user_photourl" width="100px" style="position:absolute;top:50px;right:5%;" alt="$name_student2" /> |
937 | bpr | 28 | !endif |
23 | reyssat | 29 | !if $eremain>0 |
3087 | bpr | 30 | <div class="emptyline"> </div> |
1587 | bpr | 31 | $name_activesession: |
23 | reyssat | 32 | !href cmd=reply&job=userexam&getuser=$getuser $esession |
33 | !else |
||
4594 | czzmrn | 34 | !if $wims_user=supervisor and $wims_supertype iswordof 2 4 |
23 | reyssat | 35 | !readproc adm/gateway/transfer $getuser test |
36 | !if $transfer_test>0 |
||
1587 | bpr | 37 | !href cmd=reply&job=transfer&getuser=$getuser $name_transfert |
23 | reyssat | 38 | !endif |
39 | !endif |
||
40 | !endif |
||
3087 | bpr | 41 | <div class="emptyline"> </div> |
23 | reyssat | 42 | |
43 | !if $manual>0 and $gcnt>0 and $teacher!=$empty |
||
44 | $table_header |
||
45 | <caption><small> |
||
1603 | bpr | 46 | $name_minmax: |
23 | reyssat | 47 | $min_glob/$mean_glob/$max_glob</small></caption> |
5727 | bpr | 48 | $table_hdtr<th>$wims_name_name<th>$(name_thsheet[6])<th>$(name_thsheet[7])</th></tr> |
1876 | bpr | 49 | $table_hdtr<td>$name_manualscore</td> |
1895 | bpr | 50 | <td align="center">$manual%</td> |
1887 | bpr | 51 | !read adm/class/colors $[ceil(10*$mav/$scoremax)] |
5727 | bpr | 52 | <td style=$style_note>$mav</td></tr> |
1587 | bpr | 53 | $table_hdtr<td>$name_autoscore |
1895 | bpr | 54 | <td align="center">$[100-$manual]%</td> |
1887 | bpr | 55 | !read adm/class/colors $[ceil(10*$per/$scoremax)] |
5727 | bpr | 56 | <td style=$style_note>$per</td></tr> |
1876 | bpr | 57 | $table_tr<td><b>$name_globalaverage</b> (/ $scoremax)</td> |
1895 | bpr | 58 | <td align="center">100%</td> |
1887 | bpr | 59 | !read adm/class/colors $[ceil(10*$globalav/$scoremax)] |
5727 | bpr | 60 | <td style=$style_note>$globalav</td></tr> |
3087 | bpr | 61 | $table_end |
3593 | bpr | 62 | $table_header$table_hdtr<th colspan="3">$name_manualscore |
1876 | bpr | 63 | !if $wims_user=supervisor |
5754 | bpr | 64 | <br/> |
1538 | bpr | 65 | !href lang=$lang&module=adm/class/grades&method=user&un=$getuser $wims_name_change |
927 | bpr | 66 | !endif |
5727 | bpr | 67 | </th></tr> |
68 | $table_hdtr<th>$(name_thsheet[2])<th>$(name_thsheet[4])<th>$(name_thsheet[9])</th></tr> |
||
23 | reyssat | 69 | !set v_=0 |
70 | !for i=1 to $gcnt |
||
1988 | bpr | 71 | $table_tr<td>$(titles[2+$i])<td align="center">$(w$i)</td> |
1887 | bpr | 72 | !read adm/class/colors $[10*ceil($(g_$i))/$scoremax] |
5727 | bpr | 73 | <td style=$style_note>$(g_$i)</td></tr> |
23 | reyssat | 74 | !next i |
3593 | bpr | 75 | $table_hdtr<td colspan="2">$name_Average</td> |
1887 | bpr | 76 | !read adm/class/colors $[ceil(10*$mav/$scoremax)] |
5727 | bpr | 77 | <td style=$style_note>$mav</td></tr> |
3087 | bpr | 78 | $table_end |
23 | reyssat | 79 | !else |
1603 | bpr | 80 | <center> |
1587 | bpr | 81 | $name_globalaverage: <b>$per</b> / $scoremax. |
23 | reyssat | 82 | !if $min_glob<$scoremax |
5727 | bpr | 83 | <br/><small>$name_minmax: |
23 | reyssat | 84 | $min_glob/$mean_glob/$max_glob</small> |
85 | !endif |
||
3087 | bpr | 86 | </center> |
87 | <div class="emptyline"> </div> |
||
23 | reyssat | 88 | !endif |
89 | |||
1317 | reyssat | 90 | |
91 | !!readdef wimshome/log/classes/$wims_class/.def |
||
92 | !!default class_topscores=0 |
||
93 | !if $class_topscores>0 |
||
3087 | bpr | 94 | |
3593 | bpr | 95 | $table_header$table_hdtr<th colspan="2">$name_topten</td></tr> |
1317 | reyssat | 96 | !for i=1 to $class_topscores |
97 | !set L=!line $i of $TT |
||
2582 | reyssat | 98 | !if $class_anonymtopscores=yes |
99 | !set name=$i |
||
100 | !else |
||
101 | !set name=!item 1 of $L |
||
102 | !set firstname=!item 2 of $L |
||
103 | !set name=$name $firstname |
||
104 | !endif |
||
1317 | reyssat | 105 | !set avg=!item 4 of $L |
5727 | bpr | 106 | $table_tr<td align="right"><b><small>$name </small></b><td align="left"><small> $avg</small></td></tr> |
1317 | reyssat | 107 | !next i |
3087 | bpr | 108 | $table_end |
109 | |||
1317 | reyssat | 110 | !endif |
111 | |||
23 | reyssat | 112 | !if $eactivecnt>0 |
3593 | bpr | 113 | $table_header$table_hdtr<th colspan="4">$name_examnote |
603 | bpr | 114 | !if $wims_user=supervisor or $class_examshow!=no |
1023 | bpr | 115 | <small> |
1587 | bpr | 116 | !href cmd=reply&job=examcheck&checkuser=$getuser [$wims_name_detail] |
23 | reyssat | 117 | </small> |
603 | bpr | 118 | !endif |
5917 | bpr | 119 | </th></tr> |
120 | $table_hdtr<th>$(name_thsheet[1])</th><th>$(name_thsheet[2])</th><th>$(name_thsheet[9])/$scoremax |
||
121 | </th></tr> |
||
23 | reyssat | 122 | !for i in $activexams |
123 | !set l=!record $i of wimshome/log/classes/$wims_class/exams/.exams |
||
124 | !set t=!line 4 of $l |
||
125 | |||
5917 | bpr | 126 | $table_tr<td align="center">$i</td> |
5727 | bpr | 127 | <td align="center">$t</td> |
1895 | bpr | 128 | !if $[rint(10*$(es_$i)*$scoremax)/100]>0 |
129 | !read adm/class/color $[ceil($(es_$i))] |
||
5727 | bpr | 130 | <td style=$style_note>$[rint(10*$(es_$i)*$scoremax)/100]</td> |
1895 | bpr | 131 | !else |
5727 | bpr | 132 | <td align="center">--</td> |
1895 | bpr | 133 | !endif |
5727 | bpr | 134 | </tr> |
23 | reyssat | 135 | !next i |
3087 | bpr | 136 | $table_end |
23 | reyssat | 137 | !endif |
138 | |||
139 | !for i=1 to $activecnt |
||
140 | !set l_=!line $i of $activesheets |
||
141 | !distribute items $l_ into n_,e_ |
||
142 | !set L_=!line $n_ of $defaultformula |
||
143 | !distribute word $L_ into A_,B_ |
||
2632 | reyssat | 144 | !default A_=1 |
145 | !default B_=2 |
||
23 | reyssat | 146 | !set t_=!item 3 to -1 of $l_ |
147 | !set t_=!char 1 to $title_limit of $t_ |
||
148 | !set v_=!getscorerequire sheet=$n_ user=$getuser |
||
149 | !set w_=!wordcnt $v_ |
||
150 | !set S_=0 |
||
151 | !for k=1 to $w_ |
||
152 | !set a_=!word $k of $v_ |
||
153 | !set S_=$[$S_+$a_] |
||
154 | !next k |
||
155 | !if $S_<=0 |
||
156 | !goto next |
||
157 | !endif |
||
1627 | bpr | 158 | !set seq_open=!defof sequence_open in wimshome/log/classes/$wims_class/seq/.def |
159 | !if $seq_open!=yes |
||
160 | !set hat=$name_Sheet $n_ : $t_ |
||
161 | !else |
||
162 | !set hat=$wims_name_sequence $(t_[1]) : $(t_[2..-1]) |
||
163 | !endif |
||
5894 | bpr | 164 | <a id="sheet$n_"></a> |
3087 | bpr | 165 | <div class="emptyline"> </div> |
3593 | bpr | 166 | $table_header$table_hdtr<th colspan="7"> |
3162 | bpr | 167 | !href module=adm/sheet&sh=$n_ $hat |
5754 | bpr | 168 | <small>$(name_thsheet[4]) $A_, $(name_thsheet[8]) $B_<br/> |
23 | reyssat | 169 | !set A_=!line $n_ of $percents |
170 | !distribute words $A_ into p1,p2 |
||
171 | !if $p2!=$empty |
||
172 | !distribute item $[$p1/100],$[$p2/10] into x_,y_ |
||
173 | !set p_=$[rint(100*$scoremax*$(f_$i))/100] |
||
1587 | bpr | 174 | $name_done:$p1% , $(name_thsheet[7]) $p2/10, $name_equiv <b>$p_</b> / $scoremax. |
23 | reyssat | 175 | !if $(min_$i)<$scoremax |
5727 | bpr | 176 | <br/>$name_minmax: $(min_$i)/$(mean_$i)/$(max_$i) |
23 | reyssat | 177 | !endif |
178 | !endif |
||
179 | </small> |
||
1885 | bpr | 180 | $table_hdtr<th>$(name_thsheet[1])<th>$(name_thsheet[2])</th><th>$(name_thsheet[3])</th><th>$(name_thsheet[4]) |
5727 | bpr | 181 | <th>$(name_thsheet[5])</th><th>$(name_thsheet[6])</th><th>$(name_thsheet[7])</th></tr> |
23 | reyssat | 182 | !for j=1 to $e_ |
1952 | guerimand | 183 | !let d=!record $j of wimshome/log/classes/$wims_class/sheets/.sheet$n_ |
184 | !distribute line $d into t,t,req_,weight_,title_,t |
||
185 | $table_tr<td align="center">$j</td> |
||
186 | <td>$(title_)</td> |
||
187 | <td align="center">$(req_)</td> |
||
188 | <td align="center">$(weight_)</td> |
||
23 | reyssat | 189 | !set d_=!getscore user=$getuser sheet=$n_ work=$j |
190 | !default d_=0 |
||
1952 | guerimand | 191 | !read adm/class/colors $[ceil(10*$d_/$(req_))] |
1885 | bpr | 192 | !if $d_>0 |
1895 | bpr | 193 | <td style=$style_note> |
194 | $d_ |
||
1885 | bpr | 195 | !else |
1895 | bpr | 196 | <td align="center">-- |
1885 | bpr | 197 | !endif |
198 | </td> |
||
1952 | guerimand | 199 | !if $(req_)>0 |
200 | !read adm/class/colors $[ceil(10*$d_/$(req_))] |
||
1885 | bpr | 201 | !if $d_>0 |
3049 | bpr | 202 | <td align="right" style=$style_note> |
1952 | guerimand | 203 | $[round(100*$d_/$(req_))]% |
1885 | bpr | 204 | !else |
1895 | bpr | 205 | <td align="center">-- |
206 | !endif |
||
23 | reyssat | 207 | !else |
1895 | bpr | 208 | <td align="center">--- |
23 | reyssat | 209 | !endif |
1885 | bpr | 210 | </td> |
23 | reyssat | 211 | !set d_=!getscoremean user=$getuser sheet=$n_ work=$j |
212 | !default d_=0 |
||
1887 | bpr | 213 | !read adm/class/colors $[ceil($d_)] |
1885 | bpr | 214 | !if $d_>0 |
1893 | bpr | 215 | <td style=$style_note> |
216 | $d_ |
||
1885 | bpr | 217 | !else |
1895 | bpr | 218 | <td align="center">-- |
1885 | bpr | 219 | !endif |
220 | </td> |
||
5727 | bpr | 221 | </tr> |
23 | reyssat | 222 | !next j |
3087 | bpr | 223 | $table_end |
23 | reyssat | 224 | :next |
225 | !next i |
||
1607 | bpr | 226 | |
23 | reyssat | 227 | !if $exologs!=$empty |
1791 | bpr | 228 | !set wims_menu_items=!append line reg_ex,1,module=adm/class/exolog&cmd=new&job=list&checkuser=$getuser\ |
229 | to $wims_menu_items |
||
23 | reyssat | 230 | !endif |
1607 | bpr | 231 | |
3087 | bpr | 232 | |
23 | reyssat | 233 | !if $wims_user=supervisor |
1336 | bpr | 234 | !set wims_menu_items=!append line rawdata,1,cmd=reply&job=getraw&getraw=$getuser\ |
1295 | bpr | 235 | delprep,1,cmd=reply&job=delprep&delprep=$getuser\ |
1603 | bpr | 236 | passwd,1,module=adm/class/passwd&job=part&part=$getuser\ |
1295 | bpr | 237 | part_list,1,cmd=resume\ |
1336 | bpr | 238 | to $wims_menu_items |
3095 | guerimand | 239 | !if (($wims_supertype<3 and $wims_typename=class) or ($wims_supertype=4 and $wims_typename=course)) and $wims_showlivret!=no |
1845 | guerimand | 240 | !set wims_menu_items=!append line livret,1,module=adm/class/livret&job=user&user=$getuser to $wims_menu_items |
241 | !endif |
||
23 | reyssat | 242 | !else |
3095 | guerimand | 243 | !if $wims_showlivret!=no |
1871 | bpr | 244 | !set livret_nbcomp=!recordcnt wimshome/log/classes/$wims_class/livret/.comps |
3095 | guerimand | 245 | !if $livret_nbcomp >0 |
246 | !set wims_menu_items=!append line livret,1,module=adm/class/livret to $wims_menu_items |
||
247 | !endif |
||
1871 | bpr | 248 | !endif |
23 | reyssat | 249 | !endif |
3087 | bpr | 250 | <div class="emptyline"> </div> |
23 | reyssat | 251 |