Subversion Repositories wimsdev

Rev

Rev 14300 | Rev 15268 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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