Subversion Repositories wimsdev

Rev

Rev 17322 | Go to most recent revision | 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
 
20
<div class="box_content">
21
!if $wims_user=supervisor
22
  <div class="title_box">
23
      !let k=!positionof item $user in $ulist
17538 bpr 24
      !distribute item $(llist[$k]),$(flist[$k]) into lastname,fistname
16903 guerimand 25
      <h2 class="wims_title">$(name_activityof) $name_studentname</h2>
26
  </div>
27
!endif
17036 guerimand 28
 
29
!if $lt_month=$empty
17538 bpr 30
  <div class="wims_msg info">
31
    !!<strong>$wims_name_Error:</strong>
17036 guerimand 32
    !read msg.phtml noactivity
33
  </div>
34
  !exit
35
!endif
36
 
17094 guerimand 37
!if $wims_class!=$statclass
38
  !readproc date.phtml $newccsum,notime noprint
17036 guerimand 39
  <div class="wims_msg info">
40
    $name_notsingleclass
41
  </div>
42
!endif
43
 
17153 guerimand 44
<div class="table-scroll">
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
17153 guerimand 52
        !distribute item $dl into wnum,m,yy
17322 guerimand 53
        <th colspan="$wnum">$(months[$[$m]]) $yy</th>
16903 guerimand 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
17538 bpr 70
                <div class="wims_seed_item" style="background-color:$(wtime_ltcolor[$col])" title="$slib_out : $activity"></div>
16903 guerimand 71
              !endif
72
            </td>
73
          !next j
74
        </tr>
75
      !next k
76
  </body>
77
</table>
78
</div>
17153 guerimand 79
</div>
16903 guerimand 80
 
81
 
82
<div class="box_content">
83
  <div class="title_box">
84
      <h2 class="wims_title">$wims_name_legend</h2>
85
  </div>
86
<div class="wims_score_bar">
87
  <div class="inline wims_score_column">
17153 guerimand 88
    <div class="inline wims_seed_item" style="background-color:$(wtime_ltcolor[1])" title=""></div>$(name_lgword[5])
16903 guerimand 89
  </div>
90
  <div class="inline wims_score_column">
17153 guerimand 91
    <div class="inline wims_seed_item" style="background-color:$(wtime_ltcolor[2])" title=""> </div>$(name_lgword[1]) $(wtime_subval) $name_min
16903 guerimand 92
  </div>
17153 guerimand 93
  !for k=2 to $wtime_nbsub-1
94
    <div class="inline wims_score_column">
17538 bpr 95
      <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 96
    </div>
97
  !next k
16903 guerimand 98
  <div class="inline wims_score_column">
17538 bpr 99
    <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 100
  </div>
101
</div>
102
</div>