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