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