Subversion Repositories wimsdev

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1383 bpr 1
!read adm/title.phtml 1\
2
$wims_classname - $wims_institutionname\
3
$cdt_title
4
 
1336 bpr 5
<center> <b><font size="+1">
23 reyssat 6
 !if $jour_begin!=$empty
579 bpr 7
  between <font color=green>$jyear/$jmonth/$jday</font>
23 reyssat 8
  !if $jour_begin!=$jour_end
579 bpr 9
   and <font color=green>$jyear2/$jmonth2/$jday2</font>
23 reyssat 10
  !endif
11
 !endif
12
 </font></b>
13
</center>
14
 
15
!if $cdt_description!=$empty
16
 <br>$cdt_description
17
!endif
18
<p><p>
19
 
20
!if $cdt_nbdate=0
579 bpr 21
 no information.
23 reyssat 22
 !goto end
23
!else
24
 !if $nbligne=0
25
  !if $jour_begin=$jour_end
579 bpr 26
   no information for this day.
23 reyssat 27
  !else
579 bpr 28
   no information for this period.
23 reyssat 29
  !endif
30
  !goto end
31
 !endif
32
!endif
33
 
34
<center>
35
 $table_header
36
 $table_hdtr
579 bpr 37
  <th>Day</th>
23 reyssat 38
  !if no isin $cdt_supervise
579 bpr 39
   <th>Discipline</th>
23 reyssat 40
  !endif
579 bpr 41
  <th>In class</th><th>Work to do</th><th width=30>for</th>
23 reyssat 42
  !if $wims_user=supervisor and yes isin $cdt_supervise
579 bpr 43
   <th>Action</th>
23 reyssat 44
  !endif
45
 </tr>
46
 !for i=1 to $nbligne
47
  !let mem_tr=$table_tr
48
  !let don=!line $i of $list
49
  !distribute item $don into jour,file,matiere
50
  !let m_filedir=$wims_ref_name?session=$wims_session&cmd=getfile&special_parm=cdt/$file
51
  !let file=wimshome/log/classes/$file/cdt/def/$jour
52
  !read $file
53
  !let nbtodo=!itemcnt $date_todo
54
  $mem_tr
55
   <td rowspan=$nbtodo>
56
    !read proc/date.phtml $jour
57
   </td>
58
   !if no isin $cdt_supervise
59
    <td rowspan=$nbtodo>$matiere</td>
60
   !endif
61
   <td rowspan=$nbtodo valign=top>
62
    !read $file content
63
   </td>
64
   !if $nbtodo>0
65
    <td valign=top>
66
    !read $file todo1
67
    </td>
68
    <td>
69
     !read proc/date.phtml $date_todo
70
    </td>
71
   !else
72
    <td>&nbsp;</td><td>&nbsp;</td>
73
   !endif
74
   !if $wims_user=supervisor and yes isin $cdt_supervise
75
    <td rowspan=$nbtodo>
579 bpr 76
    !href cmd=new&job=adddate&filename=$jour Modify
23 reyssat 77
    &nbsp;
579 bpr 78
    !href cmd=new&job=del&filename=$jour Delete
23 reyssat 79
   !endif
80
  </tr>
81
   !if $nbtodo>1
82
    !let bgcolor=!positionof char # in $mem_tr
83
    !let bgcolor=!char $bgcolor to $[$bgcolor+6] of $mem_tr
84
    !for j=2 to $nbtodo
1009 bpr 85
     <tr bgcolor="$bgcolor">
23 reyssat 86
      <td valign=top>
87
       !read $file todo$j
88
      </td>
89
      <td>
90
       !let tmp=!item $j of $date_todo
91
       !read proc/date.phtml $tmp
92
      </td>
93
     </tr>
94
    !next j
95
   !endif
96
 !next i
97
 $table_end
98
!if $nbligne>0
99
 <p>
579 bpr 100
 !href target=wims_new module=$module&cmd=new&job=work&job2=print&jday=$jday&jmonth=$jmonth&jyear=$jyear&jyear2=$jyear2&jmonth2=$jmonth2&jday2=$jday2 Print
23 reyssat 101
!endif
102
 </center>
103
 
104
 
105
:end
1005 bpr 106
<p><hr width="40%"> <p>
23 reyssat 107
!read form.phtml
1005 bpr 108
!tail