Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
17308 | guerimand | 1 | !! display log list for participant duser |
2 | |||
3 | !reset table_center |
||
4 | !if $nbwork=0 |
||
5 | <div class="wimscenter"> |
||
6 | !line 1 of $name_logwork |
||
7 | </div> |
||
8 | !exit |
||
9 | !endif |
||
10 | |||
11 | <div> |
||
12 | !line 2 of $name_logwork |
||
13 | </div> |
||
14 | !if $minwork>1 |
||
15 | <div> |
||
16 | !line 4 of $name_logwork |
||
17 | </div> |
||
18 | !endif |
||
19 | !!set table_id=TABLE_userwork |
||
20 | !!set table_class=sortable |
||
21 | $table_header |
||
22 | <thead> |
||
23 | $table_hdtr |
||
24 | <th scope="col">$(name_logworktab[1])</th> |
||
25 | <th scope="col">$(name_logworktab[2])</th> |
||
26 | <th scope="col">$(name_logworktab[3])</th> |
||
27 | </tr> |
||
28 | </thead> |
||
29 | <tbody> |
||
30 | !for i=$nbwork+1 to $minwork step -1 |
||
31 | !if $i<=$nbwork |
||
32 | !set data=!record $i of wimshome/log/classes/$wims_class/swork/log.$duser |
||
33 | !endif |
||
34 | !if $data!=$empty |
||
35 | $table_tr |
||
36 | <td> |
||
37 | !readproc date.phtml $(data[1]),noprint |
||
38 | !replace internal - by $name_at in $slib_out |
||
39 | </td> |
||
40 | <td> |
||
41 | !if $(data[2])!=$empty |
||
42 | !readproc date.phtml $(data[2]),noprint |
||
43 | !replace internal - by $name_at in $slib_out |
||
44 | !endif |
||
45 | </td> |
||
46 | !set data=!item 3 to -1 of $data |
||
47 | !set nbexo=!itemcnt $data |
||
48 | <td><table border="0"><tr> |
||
49 | !for k=1 to $nbexo |
||
50 | !distribute word $(data[$k]) into sh,ex,tar,get |
||
51 | <td> |
||
52 | !if $sh!=$empty |
||
53 | $sh.$ex $tar |
||
54 | !if $tar<=$get |
||
55 | ✅ |
||
56 | !else |
||
57 | ❌ |
||
58 | !endif |
||
59 | !endif |
||
60 | </td> |
||
61 | !next k |
||
62 | </tr></table></td> |
||
63 | </tr> |
||
64 | !endif |
||
65 | !next i |
||
66 | </tbody> |
||
67 | $table_end |
||
68 | <div class="wimscenter"> |
||
69 | ✅ $(name_legendtab[1]) |
||
70 | ❌ $(name_legendtab[3]) |
||
71 | </div> |
||
72 | !!read tablesort.phtml |