forked from extern/egroupware
fix for day view warning
This commit is contained in:
parent
f29617cc5c
commit
c851f3f32d
@ -70,9 +70,9 @@
|
|||||||
|
|
||||||
$now = $phpgw->calendar->splitdate(mktime (2, 0, 0, $thismonth, $thisday, $thisyear));
|
$now = $phpgw->calendar->splitdate(mktime (2, 0, 0, $thismonth, $thisday, $thisyear));
|
||||||
|
|
||||||
$phpgw->template->set_file(array("day" => "day.tpl"));
|
$phpgw->template->set_file(array("day_t" => "day.tpl"));
|
||||||
|
|
||||||
//$phpgw->template->set_block("day");
|
//$phpgw->template->set_block("day_t");
|
||||||
|
|
||||||
if ($friendly) {
|
if ($friendly) {
|
||||||
$phpgw->template->set_var("printer_friendly","<body bgcolor=\"".$phpgw_info["theme"]["bg_color"]."\">");
|
$phpgw->template->set_var("printer_friendly","<body bgcolor=\"".$phpgw_info["theme"]["bg_color"]."\">");
|
||||||
@ -91,12 +91,12 @@
|
|||||||
if (!$friendly) {
|
if (!$friendly) {
|
||||||
$param = "year=".$now["year"]."&month=".$now["month"]."&day=".$now["day"]."&friendly=1";
|
$param = "year=".$now["year"]."&month=".$now["month"]."&day=".$now["day"]."&friendly=1";
|
||||||
$phpgw->template->set_var("print","<a href=\"".$phpgw->link($PHP_SELF,$param)."\" TARGET=\"cal_printer_friendly\" onMouseOver=\"window.status = '".lang("Generate printer-friendly version")."'\">[".lang("Printer Friendly")."]</A>");
|
$phpgw->template->set_var("print","<a href=\"".$phpgw->link($PHP_SELF,$param)."\" TARGET=\"cal_printer_friendly\" onMouseOver=\"window.status = '".lang("Generate printer-friendly version")."'\">[".lang("Printer Friendly")."]</A>");
|
||||||
$phpgw->template->parse("out","day");
|
$phpgw->template->parse("out","day_t");
|
||||||
$phpgw->template->pparse("out","day");
|
$phpgw->template->pparse("out","day_t");
|
||||||
$phpgw->common->phpgw_footer();
|
$phpgw->common->phpgw_footer();
|
||||||
} else {
|
} else {
|
||||||
$phpgw->template->set_var("print","");
|
$phpgw->template->set_var("print","");
|
||||||
$phpgw->template->parse("out","day");
|
$phpgw->template->parse("out","day_t");
|
||||||
$phpgw->template->pparse("out","day");
|
$phpgw->template->pparse("out","day_t");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<!-- $Id$ -->
|
<!-- $Id$ -->
|
||||||
<!-- BEGIN day -->
|
|
||||||
{printer_friendly}
|
{printer_friendly}
|
||||||
<table border="0" width="100%">
|
<table border="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
@ -30,4 +29,4 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{print}
|
{print}
|
||||||
<!-- END day -->
|
|
||||||
|
Loading…
Reference in New Issue
Block a user