Subversion Repositories wimsdev

Rev

Rev 12950 | Rev 13005 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12950 Rev 13003
Line 33... Line 33...
33
    !set table_class=sortable
33
    !set table_class=sortable
34
  !endif
34
  !endif
35
  $table_header
35
  $table_header
36
  <thead>
36
  <thead>
37
    <tr>
37
    <tr>
38
      <th colspan="5"></th>
38
      <th colspan="4"></th>
39
      !for j in $showsheet
39
  !for j in $showsheet
40
        !if $(activ[$j])>0
40
    !if $(activ[$j])>0
41
          <th colspan="2" class="small">$wims_name_Sheet $j <br />$(shs_title[$j])<br />($(nbexo$j) $name_exo)</th>
41
      <th colspan="2" class="small">$wims_name_Sheet $j <br />$(shs_title[$j])<br />($(nbexo$j) $name_exo)</th>
42
          !increase nbth
42
      !increase nbth
43
          !increase nbth
43
      !increase nbth
44
        !endif
44
    !endif
45
      !next j
45
  !next j
46
    </tr>
46
    </tr>
47
    $table_hdtr
47
  $table_hdtr
48
      <th scope="col">$name_lastconnexion</th>
48
      <th scope="col">$name_lastconnexion</th>
49
      <th scope="col" data-sort-method="number">$name_nbsessions</th>
49
      <th scope="col" data-sort-method="number">$name_nbsessions</th>
50
      <th scope="col" class="small" data-sort-method="number">$wims_name_cnt_exo<br /> ($nbexototal $name_exo)</th>
50
      <th scope="col" class="small" data-sort-method="number">$wims_name_cnt_exo<br /> ($nbexototal $name_exo)</th>
51
      <th>$name_total</th>
51
      <th>$name_total</th>
52
      !for j in $showsheet
52
  !for j in $showsheet
53
        !if $(activ[$j])>0
53
    !if $(activ[$j])>0
54
          <th class="small" scope="col" data-sort-method="number">$name_cnt_exo</th>
54
      <th class="small" scope="col" data-sort-method="number">$name_cnt_exo</th>
55
          <th class="small" scope="col" data-sort-method="number">$name_time</th>
55
      <th class="small" scope="col" data-sort-method="number">$name_time</th>
56
        !endif
56
    !endif
57
      !next j
57
  !next j
58
    </tr>
58
    </tr>
59
  </thead>
59
  </thead>
60
  <tbody>
60
  <tbody>
61
    !set getraw=$user
61
  !set getraw=$user
62
    !readproc script/raw.proc
62
  !readproc script/raw.proc
63
    $table_tr
63
  $table_tr
64
      !for h = 1 to 2*$sheetcnt + 4
64
  !for h = 1 to 2*$sheetcnt + 4
65
        !set h1=$[($h+$h%2)/2-2]
65
    !set h1=$[($h+$h%2)/2-2]
66
        !if $h <=4 or ($h>4 and $(activ[$h1])>0) and $h1 isitemof $showsheet
66
    !if $h <=4 or ($h>4 and $(activ[$h1])>0) and $h1 isitemof $showsheet
67
          <td>
67
      <td>
68
            !if $h>2 and . notin $[$h/2]
68
      !if $h>2 and . notin $[$h/2]
69
              $(data[$h])
69
        $(data[$h])
70
            !else
70
      !else
71
              $(data[$h])
71
        $(data[$h])
72
            !endif
72
      !endif
73
            !if $h=3 and $(data[$h])!=$empty and $(data[-1])>0
73
      !if $h=3 and $(data[$h])!=$empty and $(data[-1])>0
74
              <span style="color:orange">+ $(data[-1])</span>
74
        <span style="color:orange">+ $(data[-1])</span>
75
            !endif
75
      !endif
76
            !set h2=$[$h%2]
76
      !set h2=$[$h%2]
77
            !if $h1 isitemof $showsheet and $h2=1
77
      !if $h1 isitemof $showsheet and $h2=1
78
              !if , isin $showsheet
78
        !if , isin $showsheet
79
                !set bb=!select $databyday where column 1=$h1
79
          !set bb=!select $databyday where column 1=$h1
80
              !else
80
        !else
81
                !set bb=$(databyday[1;])
81
          !set bb=$(databyday[1;])
82
              !endif
-
 
83
              !if $bb!=$empty
-
 
84
                !set bb=!exec pari vecsum($(bb[6]))
-
 
85
                <span style="color:orange">+ $bb</span>
-
 
86
              !endif
-
 
87
            !endif
-
 
88
          </td>
-
 
89
        !endif
82
        !endif
90
      !next h
-
 
91
    </tr>
-
 
92
    !if $graphics=1
83
        !if $bb!=$empty
93
      $table_tr
84
          !set bb=!exec pari vecsum($(bb[6]))
94
        <td colspan="$[$nbth+1]" style="text-align:left;">
85
            <span style="color:orange">+ $bb</span>
95
        !read script/exobyday.phtml
86
        !endif
96
        </td>
87
      !endif
97
      </tr>
88
      </td>
98
    !endif
89
    !endif
-
 
90
  !next h
-
 
91
    </tr>
-
 
92
  !if $graphics=1
-
 
93
    $table_tr
-
 
94
      <td colspan="$[$nbth+1]" style="text-align:left;">
-
 
95
    !read script/exobyday.phtml
-
 
96
      </td>
-
 
97
    </tr>
-
 
98
  !endif
99
  </tbody>
99
  </tbody>
100
  $table_end
100
  $table_end
101
!endif
101
!endif
102
 
102
 
103
!set wims_menu_items=!append line myscore,1,module=adm/class/userscore&job_affi=notes\
103
!set wims_menu_items=!append line myscore,1,module=adm/class/userscore&job_affi=notes\