Rev 14833 | Rev 17180 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
15268 | guerimand | 1 | !if $cdt_supervise=no |
2 | <div class="wims_msg info"> |
||
3 | !if $wims_user=supervisor |
||
4 | $name_nosupervise |
||
5 | !else |
||
6 | $name_nosuperviseforuser |
||
7 | !endif |
||
8 | </div> |
||
9 | !endif |
||
12714 | bpr | 10 | !if $cdt_description!=$empty |
11 | <br />$cdt_description |
||
12 | !endif |
||
14300 | guerimand | 13 | !read proc/searchform.phtml |
9561 | guerimand | 14 | |
9054 | obado | 15 | <div class="wims_content"> |
12714 | bpr | 16 | <div class="wimscenter bold"> |
17 | $name_workdone |
||
18 | !if $jour_begin!=$jour_end |
||
19 | $name_between <span class="wims_emph"> |
||
20 | !read date.phtml $jour_begin,notime |
||
21 | </span> |
||
22 | $name_and <span class="wims_emph"> |
||
23 | !read date.phtml $jour_end,notime |
||
24 | </span> |
||
25 | !else |
||
26 | $name_the <span class="wims_emph"> |
||
27 | !read date.phtml $jour_begin,notime |
||
28 | </span> |
||
29 | !endif |
||
30 | </div> |
||
23 | reyssat | 31 | |
9561 | guerimand | 32 | |
12714 | bpr | 33 | <br class="spacer" /> |
23 | reyssat | 34 | |
12714 | bpr | 35 | !if $cdt_nbdate=0 |
14043 | bpr | 36 | $name_noinfo1. |
37 | !goto end |
||
12714 | bpr | 38 | !else |
14043 | bpr | 39 | !if $nbligne=0 |
40 | !if $jour_begin=$jour_end |
||
41 | $name_noinfo2. |
||
42 | !else |
||
43 | $name_noinfo3. |
||
44 | !endif |
||
45 | !goto end |
||
23 | reyssat | 46 | !endif |
12714 | bpr | 47 | !endif |
23 | reyssat | 48 | |
13610 | obado | 49 | !set table_class=sortable |
50 | !set table_id=TABLE_cdt_work |
||
12714 | bpr | 51 | $table_header |
52 | <thead> |
||
13610 | obado | 53 | $table_hdtr |
54 | <th>$name_Day</th> |
||
55 | !if no isin $cdt_supervise |
||
56 | <th>$name_discipline</th> |
||
57 | !endif |
||
58 | <th>$name_inclass</th><th>$name_worktodo</th><th style="width:30px">$name_for</th> |
||
59 | !if $wims_user=supervisor and yes isin $cdt_supervise |
||
60 | <th>$wims_name_action</th> |
||
61 | !endif |
||
62 | </tr> |
||
12714 | bpr | 63 | </thead> |
64 | <tbody> |
||
65 | !for i=1 to $nbligne |
||
9054 | obado | 66 | !! !let mem_tr=$table_tr |
12714 | bpr | 67 | !if $cdt_reversedate=1 |
68 | !let don=!line $nbligne+1-$i of $list |
||
69 | !else |
||
70 | !let don=!line $i of $list |
||
71 | !endif |
||
72 | !distribute item $don into jour,file,matiere |
||
73 | !let m_filedir=$wims_ref_name?session=$wims_session&cmd=getfile&special_parm=cdt/$file |
||
74 | !let file=wimshome/log/classes/$file/cdt/def/$jour |
||
75 | !read $file |
||
76 | !let nbtodo=!itemcnt $date_todo |
||
77 | !let snbtodo=$[max(1,$nbtodo)] |
||
78 | <tr class="$(table_colors[$i%2+1])"> |
||
79 | <td rowspan="$snbtodo"> |
||
13610 | obado | 80 | !read adm/lang/datemenu.phtml.$moduclass_lang 5,$jour,$dateoption |
12714 | bpr | 81 | </td> |
82 | !if no isin $cdt_supervise |
||
83 | <td rowspan="$snbtodo">$matiere</td> |
||
84 | !endif |
||
85 | <td rowspan="$snbtodo" valign="top"> |
||
13610 | obado | 86 | !read $file content |
12714 | bpr | 87 | </td> |
88 | !if $nbtodo>0 |
||
89 | <td valign="top"> |
||
13610 | obado | 90 | !read $file todo1 |
12714 | bpr | 91 | </td> |
92 | <td> |
||
13610 | obado | 93 | !read adm/lang/datemenu.phtml.$moduclass_lang 5,$date_todo,$dateoption |
12714 | bpr | 94 | </td> |
95 | !else |
||
96 | <td> </td><td> </td> |
||
97 | !endif |
||
98 | !if $wims_user=supervisor and yes isin $cdt_supervise |
||
99 | <td rowspan="$snbtodo"> |
||
100 | !set wims_ref_class=wims_button |
||
101 | !href cmd=new&job=adddate&filename=$jour $wims_name_change |
||
102 | $ |
||
103 | !set wims_ref_class=wims_button wims_warning |
||
104 | !href cmd=new&job=del&filename=$jour $wims_name_erase |
||
105 | </td> |
||
106 | !endif |
||
107 | </tr> |
||
108 | !if $nbtodo>1 |
||
109 | !let bgcolor=!positionof char # in $mem_tr |
||
110 | !let bgcolor=!char $bgcolor to $[$bgcolor+6] of $mem_tr |
||
111 | !for j=2 to $nbtodo |
||
112 | <tr class="$(table_colors[$i%2+1])"> |
||
3049 | bpr | 113 | <td valign="top"> |
12714 | bpr | 114 | !read $file todo$j |
23 | reyssat | 115 | </td> |
116 | <td> |
||
12714 | bpr | 117 | !let tmp=!item $j of $date_todo |
118 | !read adm/lang/datemenu.phtml.$moduclass_lang 5,$tmp,$dateoption |
||
23 | reyssat | 119 | </td> |
12714 | bpr | 120 | </tr> |
121 | !next j |
||
122 | !endif |
||
123 | !next i |
||
124 | </tbody> |
||
125 | $table_end |
||
13610 | obado | 126 | !read tablesort.phtml |
9451 | bpr | 127 | |
12714 | bpr | 128 | !if $nbligne>0 |
129 | <p class="wimscenter"> |
||
130 | !set wims_ref_class=wims_button |
||
12751 | guerimand | 131 | !href target=wims_new module=$module&cmd=new&job=work&job2=print&jdate=$jdate&jdate2=$jdate2 $wims_name_print |
12714 | bpr | 132 | </p> |
12751 | guerimand | 133 | !set wims_menu_items=!append line printable,1,module=$module&cmd=new&job=work&job2=print&jdate=$jdate&jdate2=$jdate2\ |
12714 | bpr | 134 | itemsep,0,\ |
135 | to $wims_menu_items |
||
136 | !endif |
||
9451 | bpr | 137 | |
12714 | bpr | 138 | :end |
139 | <hr style="width:40%;" /> |
||
9054 | obado | 140 | </div> |
1005 | bpr | 141 | !tail |