Rev 17036 | Rev 17094 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16903 | guerimand | 1 | |
2 | !if $wims_user=supervisor |
||
3 | <div class="box_content"> |
||
4 | <div class="title_box"> |
||
5 | <h2 class="wims_title">$(name_choose)</h2> |
||
6 | </div> |
||
7 | <div class="box_content"> |
||
8 | !for k=1 to $nbuser |
||
9 | !set wims_ref_class=wims_button |
||
10 | !distribute item $(llist[$k]),$(flist[$k]) into lastname,fistname |
||
11 | !href cmd=reply&+module=adm/class/activity&+user=$(ulist[$k]) $name_studentname |
||
12 | !next k |
||
13 | </div> |
||
14 | </div> |
||
15 | !endif |
||
16 | |||
17 | !if $user=$empty |
||
18 | !exit |
||
19 | !endif |
||
20 | |||
21 | <div class="box_content"> |
||
22 | !if $wims_user=supervisor |
||
23 | <div class="title_box"> |
||
24 | !let k=!positionof item $user in $ulist |
||
25 | !distribute item $(llist[$k]),$(flist[$k]) into lastname,fistname |
||
26 | <h2 class="wims_title">$(name_activityof) $name_studentname</h2> |
||
27 | </div> |
||
28 | !endif |
||
17036 | guerimand | 29 | |
30 | !if $lt_month=$empty |
||
31 | <div class="wims_msg alert"> |
||
32 | <strong>$wims_name_Error:</strong> |
||
33 | !read msg.phtml noactivity |
||
34 | </div> |
||
35 | !exit |
||
36 | !endif |
||
37 | |||
38 | !if / isin $wims_class |
||
39 | <div class="wims_msg info"> |
||
40 | $name_notsingleclass |
||
41 | </div> |
||
42 | !endif |
||
43 | |||
17037 | guerimand | 44 | <table class="wimstable border"> |
16903 | guerimand | 45 | <head> |
46 | <tr> |
||
47 | <th></th> |
||
17036 | guerimand | 48 | !let nb=!linecnt $lt_month |
16903 | guerimand | 49 | !for k=1 to $nb |
50 | !let dl=!line $k of $lt_month |
||
51 | !distribute item $dl into wnum,m |
||
52 | <th colspan="$wnum">$(name_listmonths[$[$m]])</th> |
||
53 | !next k |
||
54 | </tr> |
||
55 | </head> |
||
56 | <body> |
||
57 | !for k=1 to 7 |
||
58 | <tr> |
||
59 | <th>$(name_listdays[$k])</th> |
||
60 | !for j=1 to $nb_dtl |
||
61 | <td> |
||
62 | !let tmp=$(data[$j;$k]) |
||
17037 | guerimand | 63 | !if $tmp!=. |
16903 | guerimand | 64 | !distribute word $tmp into col,date,activity |
65 | !readproc date.phtml $date,notime |
||
66 | !if $col!=1 |
||
67 | !let activity=$activity $name_min |
||
68 | !endif |
||
69 | <div class="wims_seed_item" style="background-color:$(ltcolor[$col])" title="$slib_out : $activity"></div> |
||
70 | !endif |
||
71 | </td> |
||
72 | !next j |
||
73 | </tr> |
||
74 | !next k |
||
75 | </body> |
||
76 | </table> |
||
77 | </div> |
||
78 | |||
79 | |||
80 | <div class="box_content"> |
||
81 | <div class="title_box"> |
||
82 | <h2 class="wims_title">$wims_name_legend</h2> |
||
83 | </div> |
||
84 | <div class="wims_score_bar"> |
||
85 | <div class="inline wims_score_column"> |
||
86 | <div class="inline wims_seed_item" style="background-color:$(ltcolor[1])" title=""></div>$(name_lgword[5]) |
||
87 | </div> |
||
88 | <div class="inline wims_score_column"> |
||
89 | <div class="inline wims_seed_item" style="background-color:$(ltcolor[2])" title=""> </div>$(name_lgword[1]) $utime $name_min |
||
90 | </div> |
||
91 | <div class="inline wims_score_column"> |
||
92 | <div class="inline wims_seed_item" style="background-color:$(ltcolor[3])" title=""> </div>$(name_lgword[2]) $utime $name_min $(name_lgword[3]) $[2*$utime] $name_min |
||
93 | </div> |
||
94 | <div class="inline wims_score_column"> |
||
95 | <div class="inline wims_seed_item" style="background-color:$(ltcolor[4])" title=""> </div>$(name_lgword[2]) $[2*$utime] $(name_lgword[3]) $[3*$utime] $name_min |
||
96 | </div> |
||
97 | <div class="inline wims_score_column"> |
||
98 | <div class="inline wims_seed_item" style="background-color:$(ltcolor[5])" title=""> </div>$(name_lgword[4]) $[3*$utime] $name_min |
||
99 | </div> |
||
100 | </div> |
||
101 | </div> |