Subversion Repositories wimsdev

Rev

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