Subversion Repositories wimsdev

Rev

Rev 6342 | Rev 7973 | 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
 
5861 bpr 8
<div class="wimscenter" style="font-weight:bold;">
23 reyssat 9
 !if $jour_begin!=$empty
5894 bpr 10
  $name_between <span class="wims_emph">$name_date</span>
23 reyssat 11
  !if $jour_begin!=$jour_end
5894 bpr 12
   $name_and <span class="wims_emph">$name_date2</span>
23 reyssat 13
  !endif
14
 !endif
5861 bpr 15
</div>
23 reyssat 16
 
17
!if $cdt_description!=$empty
6235 bpr 18
 <br />$cdt_description
23 reyssat 19
!endif
6342 bpr 20
<br class="spacer" />
23 reyssat 21
 
22
!if $cdt_nbdate=0
1837 bpr 23
 $name_noinfo1.
23 reyssat 24
 !goto end
25
!else
26
 !if $nbligne=0
27
  !if $jour_begin=$jour_end
1837 bpr 28
   $name_noinfo2.
23 reyssat 29
  !else
1837 bpr 30
   $name_noinfo3.
23 reyssat 31
  !endif
32
  !goto end
33
 !endif
34
!endif
35
 
36
 $table_header
37
 $table_hdtr
1837 bpr 38
  <th>$name_Day</th>
23 reyssat 39
  !if no isin $cdt_supervise
1837 bpr 40
   <th>$name_discipline</th>
23 reyssat 41
  !endif
6019 bpr 42
  <th>$name_inclass</th><th>$name_worktodo</th><th style="width:30px">$name_for</th>
23 reyssat 43
  !if $wims_user=supervisor and yes isin $cdt_supervise
1837 bpr 44
   <th>$wims_name_action</th>
23 reyssat 45
  !endif
46
 </tr>
47
 !for i=1 to $nbligne
4287 guerimand 48
!!  !let mem_tr=$table_tr
6366 guerimand 49
  !if $cdt_reversedate=1
50
   !let don=!line $nbligne+1-$i of $list
51
  !else
52
   !let don=!line $i of $list
53
  !endif
23 reyssat 54
  !distribute item $don into jour,file,matiere
55
  !let m_filedir=$wims_ref_name?session=$wims_session&cmd=getfile&special_parm=cdt/$file
56
  !let file=wimshome/log/classes/$file/cdt/def/$jour
57
  !read $file
58
  !let nbtodo=!itemcnt $date_todo
5668 guerimand 59
  !let snbtodo=$[max(1,$nbtodo)]
4287 guerimand 60
  <tr class="$(table_colors[$i%2+1])">
5668 guerimand 61
   <td rowspan="$snbtodo">
5246 bpr 62
    !read adm/lang/datemenu.phtml.$moduclass_lang 5,$jour
23 reyssat 63
   </td>
64
   !if no isin $cdt_supervise
5668 guerimand 65
    <td rowspan="$snbtodo">$matiere</td>
23 reyssat 66
   !endif
5668 guerimand 67
   <td rowspan="$snbtodo" valign="top">
23 reyssat 68
    !read $file content
69
   </td>
70
   !if $nbtodo>0
3049 bpr 71
    <td valign="top">
23 reyssat 72
    !read $file todo1
73
    </td>
74
    <td>
5246 bpr 75
     !read adm/lang/datemenu.phtml.$moduclass_lang 5,$date_todo
23 reyssat 76
    </td>
77
   !else
78
    <td>&nbsp;</td><td>&nbsp;</td>
79
   !endif
80
   !if $wims_user=supervisor and yes isin $cdt_supervise
5668 guerimand 81
    <td rowspan="$snbtodo">
82
     !set wims_ref_class=wims_button
83
     !href cmd=new&job=adddate&filename=$jour $wims_name_change
84
     &nbsp;
85
     !set wims_ref_class=wims_button
86
     !href cmd=new&job=del&filename=$jour $wims_name_erase
87
    </td>
23 reyssat 88
   !endif
89
  </tr>
90
   !if $nbtodo>1
91
    !let bgcolor=!positionof char # in $mem_tr
92
    !let bgcolor=!char $bgcolor to $[$bgcolor+6] of $mem_tr
93
    !for j=2 to $nbtodo
4287 guerimand 94
     <tr class="$(table_colors[$i%2+1])">
3049 bpr 95
      <td valign="top">
23 reyssat 96
       !read $file todo$j
97
      </td>
98
      <td>
99
       !let tmp=!item $j of $date_todo
5246 bpr 100
       !read adm/lang/datemenu.phtml.$moduclass_lang 5,$tmp
23 reyssat 101
      </td>
102
     </tr>
103
    !next j
5668 guerimand 104
   !endif
23 reyssat 105
 !next i
106
 $table_end
107
!if $nbligne>0
5861 bpr 108
 <p class="wimscenter">
4310 bpr 109
!set wims_ref_class=wims_button
1837 bpr 110
 !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
5861 bpr 111
</p>
2516 bpr 112
!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\
113
  ,0,\
114
to $wims_menu_items
23 reyssat 115
!endif
116
 
117
 
5861 bpr 118
 
23 reyssat 119
:end
6235 bpr 120
<hr style="width:40%;" />
23 reyssat 121
!read form.phtml
1005 bpr 122
!tail