Subversion Repositories wimsdev

Rev

Rev 17037 | Rev 17153 | 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
 
17094 guerimand 38
!if $wims_class!=$statclass
39
  !readproc date.phtml $newccsum,notime noprint
17036 guerimand 40
  <div class="wims_msg info">
41
    $name_notsingleclass
42
  </div>
43
!endif
44
 
17037 guerimand 45
<table class="wimstable border">
16903 guerimand 46
  <head>
47
    <tr>
48
      <th></th>
17036 guerimand 49
      !let nb=!linecnt $lt_month
16903 guerimand 50
      !for k=1 to $nb
51
        !let dl=!line $k of $lt_month
52
        !distribute item $dl into wnum,m
53
        <th colspan="$wnum">$(name_listmonths[$[$m]])</th>
54
      !next k
55
    </tr>
56
  </head>
57
  <body>
58
      !for k=1 to 7
59
        <tr>
60
          <th>$(name_listdays[$k])</th>
61
          !for j=1 to $nb_dtl
62
            <td>
63
              !let tmp=$(data[$j;$k])
17037 guerimand 64
              !if $tmp!=.
16903 guerimand 65
                !distribute word $tmp into col,date,activity
66
                !readproc date.phtml $date,notime
67
                !if $col!=1
68
                  !let activity=$activity $name_min
69
                !endif
70
                <div class="wims_seed_item" style="background-color:$(ltcolor[$col])" title="$slib_out : $activity"></div>              
71
              !endif
72
            </td>
73
          !next j
74
        </tr>
75
      !next k
76
  </body>
77
</table>
78
</div>
79
 
80
 
81
<div class="box_content">
82
  <div class="title_box">
83
      <h2 class="wims_title">$wims_name_legend</h2>
84
  </div>
85
<div class="wims_score_bar">
86
  <div class="inline wims_score_column">
87
    <div class="inline wims_seed_item" style="background-color:$(ltcolor[1])" title=""></div>$(name_lgword[5])
88
  </div>
89
  <div class="inline wims_score_column">
90
    <div class="inline wims_seed_item" style="background-color:$(ltcolor[2])" title=""> </div>$(name_lgword[1]) $utime $name_min
91
  </div>
92
  <div class="inline wims_score_column">
93
    <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
94
  </div>
95
  <div class="inline wims_score_column">
96
    <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
97
  </div>
98
  <div class="inline wims_score_column">
99
    <div class="inline wims_seed_item" style="background-color:$(ltcolor[5])" title=""> </div>$(name_lgword[4]) $[3*$utime] $name_min
100
  </div>
101
</div>
102
</div>