|
65 | 65 |
|
66 | 66 | $skip = date("w",$time); |
67 | 67 |
|
68 | | - echo '<!-- MEDIA TOP 1in --><P><span class="center">'; |
69 | | - echo '<TABLE style="border: solid 2px; background-color: #fff;" class="cellpadding-3">'."\n"; |
| 68 | + echo '<!-- MEDIA TOP 1in --><P class="center">'; |
| 69 | + echo '<TABLE style="background-color: #fff;" class="cellpadding-3 width-100p">'."\n"; |
70 | 70 | if($_REQUEST['_ROSARIO_PDF']) |
71 | 71 | if(is_file('assets/dailymenu'.UserSchool().'.jpg')) |
72 | 72 | { |
73 | | - echo '<TR class="center"><TD colspan="7"><img src="assets/dailymenu'.UserSchool().'.jpg"></TD></TR>'."\n"; |
| 73 | + echo '<TR class="center"><TD colspan="3"><img src="assets/dailymenu'.UserSchool().'.jpg" /></TD></TR>'."\n"; |
74 | 74 | } |
75 | 75 | else |
76 | | - echo '<TR class="center"><TD colspan="7"><span style="color:black" class="sizep2"><b>'.GetSchool(UserSchool()).'</b></span></TD></TR>'."\n"; |
| 76 | + echo '<TR class="center"><TD colspan="3"><span style="color:black" class="sizep2"><b>'.GetSchool(UserSchool()).'</b></span></TD></TR>'."\n"; |
77 | 77 | //modif Francois: display locale with strftime() |
78 | | - echo '<TR class="center"><TD colspan="2">'.$menus_RET[$_REQUEST['menu_id']][1]['TITLE'].'</TD><TD colspan="3"><span style="color:black" class="sizep2"><b>'.ProperDate(date('Y.m.d',mktime(0,0,0,$_REQUEST['month'],1,$_REQUEST['year']))).'</b></span></TD><TD colspan="2">'.$menus_RET[$_REQUEST['menu_id']][1]['TITLE'].'</TD></TR>'."\n"; |
79 | | - echo '<TR style="text-align:center; background-color:#808080">'."\n"; |
80 | | - echo '<TD style="width:100px;"><span style="color:white"><b>'._('Sunday').'</b></span></TD><TD style="width:100px;"><span style="color:white"><b>'._('Monday').'</b></span></TD><TD style="width:100px;"><span style="color:white"><b>'._("Tuesday").'</b></span></TD><TD style="width:100px;"><span style="color:white"><b>'._("Wednesday").'</b></span></TD><TD style="width:100px;"><span style="color:white"><b>'._("Thursday").'</b></span></TD><TD style="width:100px;"><span style="color:white"><b>'._("Friday").'</b></span></TD><TD style="width:100px;"><span style="color:white"><b>'._("Saturday").'</b></span></TD>'."\n"; |
81 | | - echo '</TR>'; |
| 78 | + echo '<TR class="center"><TD>'.$menus_RET[$_REQUEST['menu_id']][1]['TITLE'].'</TD><TD><span style="color:black" class="sizep2"><b>'.ProperDate(date('Y.m.d',mktime(0,0,0,$_REQUEST['month'],1,$_REQUEST['year']))).'</b></span></TD><TD>'.$menus_RET[$_REQUEST['menu_id']][1]['TITLE'].'</TD></TR></TABLE>'."\n"; |
| 79 | + echo '<TABLE style="border: solid 2px; background-color: #fff;" class="cellpadding-3" id="calendar"><THEAD><TR style="text-align:center; background-color:#808080; color:white;">'."\n"; |
| 80 | + echo '<TH>'.mb_substr(_('Sunday'),0,3).'<span>'.mb_substr(_('Sunday'),3).'</span>'.'</TH><TH>'.mb_substr(_('Monday'),0,3).'<span>'.mb_substr(_('Monday'),3).'</span>'.'</TH><TH>'.mb_substr(_('Tuesday'),0,3).'<span>'.mb_substr(_('Tuesday'),3).'</span>'.'</TH><TH>'.mb_substr(_('Wednesday'),0,3).'<span>'.mb_substr(_('Wednesday'),3).'</span>'.'</TH><TH>'.mb_substr(_('Thursday'),0,3).'<span>'.mb_substr(_('Thursday'),3).'</span>'.'</TH><TH>'.mb_substr(_('Friday'),0,3).'<span>'.mb_substr(_('Friday'),3).'</span>'.'</TH><TH>'.mb_substr(_('Saturday'),0,3).'<span>'.mb_substr(_('Saturday'),3).'</span>'.'</TH>'."\n"; |
| 81 | + echo '</TR></THEAD><TBODY>'; |
82 | 82 |
|
83 | 83 | if($skip) |
84 | | - echo '<TR style="height:100px;"><TD style="background-color:#C0C0C0;" colspan="'.$skip.'"> </TD>'."\n"; |
| 84 | + echo '<TR><TD style="background-color:#C0C0C0;" colspan="'.$skip.'"> </TD>'."\n"; |
85 | 85 |
|
86 | 86 | for($i = 1; $i <= $last; $i++) |
87 | 87 | { |
88 | 88 | if($skip%7==0) |
89 | | - echo '<TR style="height:0px;">'; |
| 89 | + echo '<TR>'; |
90 | 90 | $day_time = mktime(0,0,0,$_REQUEST['month'],$i,$_REQUEST['year']); |
91 | 91 | $date = mb_strtoupper(date('d-M-y',$day_time)); |
92 | 92 |
|
93 | | - echo '<TD style="width:100px;" class="valign-top"><b>'.$i.'</b>'; |
| 93 | + echo '<TD class="valign-top" style="height:100%; '.(count($events_RET[$date]) ? 'background-color:#ffaaaa;' : '').'"><TABLE class="calendar-day'.(count($events_RET[$date]) ? ' hover"><TR><TD><b>'.$i.'</b>' : '"><TR><TD>'.$i); |
94 | 94 |
|
95 | 95 | if(count($events_RET[$date])) |
96 | 96 | { |
|
101 | 101 | echo '<BR />'.htmlspecialchars($event['DESCRIPTION'],ENT_QUOTES); |
102 | 102 | } |
103 | 103 | } |
104 | | - echo '</TD>'; |
| 104 | + echo '</TD></TR></TABLE></TD>'; |
105 | 105 |
|
106 | 106 | $skip++; |
107 | 107 |
|
|
111 | 111 | if($skip%7!=0) |
112 | 112 | echo '<TD style="background-color:#C0C0C0;" colspan="'.(7-$skip%7).'"> </TD></TR>'; |
113 | 113 |
|
114 | | - echo '</TABLE>'; |
115 | | - echo '</span></P>'; |
| 114 | + echo '</TBODY></TABLE></P>'; |
116 | 115 | } |
117 | 116 | else |
118 | 117 | { |
|
0 commit comments