Rev 13005 | Rev 16891 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12950 | guerimand | 1 | !distribute item $user_lastname,$user_firstname into lastname,firstname |
7465 | bpr | 2 | !default name_student=!nosubst $lastname, $firstname |
12950 | guerimand | 3 | |
4 | !form reply |
||
6235 | bpr | 5 | <input type="hidden" name="job" value="select" /> |
9353 | bpr | 6 | <input type="hidden" name="status" value="OK" /> |
7465 | bpr | 7 | <fieldset class="property_fields halfwidth blockcenter"> |
9500 | bpr | 8 | <legend>$name_title |
12950 | guerimand | 9 | !if $user!=$empty |
13005 | bpr | 10 | $name_student |
12950 | guerimand | 11 | !endif |
9500 | bpr | 12 | </legend> |
12950 | guerimand | 13 | <div class="field box"> |
14 | <label for="showsheet">$name_showsheet</label><br /> |
||
15 | !set wims_formselect_switch=multiple size="$[min($activelist_cnt,10)]" |
||
16 | !formselect showsheet list $activlist prompt $(shs_title[$(activlist)]) |
||
9500 | bpr | 17 | </div> |
12950 | guerimand | 18 | <div class="field box"> |
19 | $name_graphics |
||
20 | !formradio graphics list 0,1 prompt $wims_name_no,$wims_name_yes |
||
21 | </div> |
||
9500 | bpr | 22 | <div class="wimscenter wimsform"> |
7465 | bpr | 23 | <input type="submit" value="$wims_name_Show" /> |
9500 | bpr | 24 | </div> |
7465 | bpr | 25 | </fieldset> |
12950 | guerimand | 26 | !formend |
27 | !if $showsheet!=$empty |
||
28 | !default showsheet=$activlist |
||
29 | !default graphics=0 |
||
30 | !set nbth=4 |
||
31 | !if $graphics!=1 |
||
32 | !set table_id=TABLE_userlist |
||
33 | !set table_class=sortable |
||
34 | !endif |
||
35 | $table_header |
||
36 | <thead> |
||
12938 | bpr | 37 | <tr> |
13003 | bpr | 38 | <th colspan="4"></th> |
39 | !for j in $showsheet |
||
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> |
||
42 | !increase nbth |
||
43 | !increase nbth |
||
44 | !endif |
||
45 | !next j |
||
12938 | bpr | 46 | </tr> |
13003 | bpr | 47 | $table_hdtr |
12950 | guerimand | 48 | <th scope="col">$name_lastconnexion</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> |
||
51 | <th>$name_total</th> |
||
13003 | bpr | 52 | !for j in $showsheet |
53 | !if $(activ[$j])>0 |
||
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> |
||
56 | !endif |
||
57 | !next j |
||
12938 | bpr | 58 | </tr> |
12950 | guerimand | 59 | </thead> |
60 | <tbody> |
||
13003 | bpr | 61 | !set getraw=$user |
62 | !readproc script/raw.proc |
||
63 | $table_tr |
||
64 | !for h = 1 to 2*$sheetcnt + 4 |
||
65 | !set h1=$[($h+$h%2)/2-2] |
||
66 | !if $h <=4 or ($h>4 and $(activ[$h1])>0) and $h1 isitemof $showsheet |
||
67 | <td> |
||
68 | !if $h>2 and . notin $[$h/2] |
||
69 | $(data[$h]) |
||
70 | !else |
||
71 | $(data[$h]) |
||
72 | !endif |
||
73 | !if $h=3 and $(data[$h])!=$empty and $(data[-1])>0 |
||
74 | <span style="color:orange">+ $(data[-1])</span> |
||
75 | !endif |
||
76 | !set h2=$[$h%2] |
||
77 | !if $h1 isitemof $showsheet and $h2=1 |
||
78 | !if , isin $showsheet |
||
79 | !set bb=!select $databyday where column 1=$h1 |
||
80 | !else |
||
81 | !set bb=$(databyday[1;]) |
||
12488 | bpr | 82 | !endif |
13003 | bpr | 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 |
||
90 | !next h |
||
12950 | guerimand | 91 | </tr> |
13003 | bpr | 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 |
||
12488 | bpr | 99 | </tbody> |
100 | $table_end |
||
9353 | bpr | 101 | !endif |
102 | |||
13568 | bpr | 103 | !set wims_menu_items=!append line scores,1,module=adm/class/userscore&job_affi=notes&job=getuser&getuser=$user\ |
104 | livret,1,module=adm/class/livret&job=user&user=$user\ |
||
1336 | bpr | 105 | to $wims_menu_items |
12950 | guerimand | 106 | |
1038 | bpr | 107 | !tail |