!read adm/class/classname.phtml $wims_classname\
$wims_institutionname
!read adm/title.phtml 1\
$classname\
$cdt_title
<div class="wimscenter" style="font-weight:bold;">
!if $jour_begin!=$empty
$name_between <span class="wims_emph">$name_date</span>
!if $jour_begin!=$jour_end
$name_and <span class="wims_emph">$name_date2</span>
!endif
!endif
</div>
!if $cdt_description!=$empty
<br />$cdt_description
!endif
<br class="spacer" />
!if $cdt_nbdate=0
$name_noinfo1.
!else
!if $nbligne=0
!if $jour_begin=$jour_end
$name_noinfo2.
!else
$name_noinfo3.
!endif
!endif
!endif
$table_header
$table_hdtr
<th>$name_Day</th>
!if no isin $cdt_supervise
<th>$name_discipline</th>
!endif
<th>$name_inclass</th><th>$name_worktodo</th><th style="width:30px">$name_for</th>
!if $wims_user=supervisor and yes isin $cdt_supervise
<th>$wims_name_action</th>
!endif
</tr>
!for i=1 to $nbligne
!! !let mem_tr=$table_tr
!if $cdt_reversedate=1
!let don=!line $nbligne+1-$i of $list
!else
!let don=!line $i of $list
!endif
!distribute item
$don into jour
,file,matiere
!let m_filedir=$wims_ref_name?session=$wims_session&cmd=getfile&special_parm=cdt/$file
!let
file=wimshome
/log/classes
/$file/cdt
/def
/$jour
!read $file
!let nbtodo=!itemcnt $date_todo
!let snbtodo
=$
[max(1,$nbtodo)]
<tr class="$(table_colors[$i%2+1])">
<td rowspan="$snbtodo">
!read adm/lang/datemenu.phtml.$moduclass_lang 5,$jour
</td>
!if no isin $cdt_supervise
<td rowspan="$snbtodo">$matiere</td>
!endif
<td rowspan="$snbtodo" valign="top">
!read $file content
</td>
!if $nbtodo>0
<td valign="top">
!read $file todo1
</td>
<td>
!read adm/lang/datemenu.phtml.$moduclass_lang 5,$date_todo
</td>
!else
<td> </td><td> </td>
!endif
!if $wims_user=supervisor and yes isin $cdt_supervise
<td rowspan="$snbtodo">
!set wims_ref_class=wims_button
!href cmd=new&job=adddate&filename=$jour $wims_name_change
!set wims_ref_class=wims_button
!href cmd=new&job=del&filename=$jour $wims_name_erase
</td>
!endif
</tr>
!if $nbtodo>1
!let bgcolor=!positionof char # in $mem_tr
!let bgcolor=!char $bgcolor to $[$bgcolor+6] of $mem_tr
!for j=2 to $nbtodo
<tr class="$(table_colors[$i%2+1])">
<td valign="top">
!read $file todo$j
</td>
<td>
!let tmp=!item $j of $date_todo
!read adm/lang/datemenu.phtml.$moduclass_lang 5,$tmp
</td>
</tr>
!endif
$table_end
!if $nbligne>0
<p class="wimscenter">
!set wims_ref_class=wims_button
!href target=wims_new module=$module&cmd=new&job=work&job2=print&jday=$jday&jmonth=$jmonth&jyear=$jyear&jyear2=$jyear2&jmonth2=$jmonth2&jday2=$jday2 $wims_name_print
</p>
!set wims_menu_items=!append line printable,1,module=$module&cmd=new&job=work&job2=print&jday=$jday&jmonth=$jmonth&jyear=$jyear&jyear2=$jyear2&jmonth2=$jmonth2&jday2=$jday2\
,0,\
to $wims_menu_items
!endif
<hr style="width:40%;" />
!read form.phtml
!tail