mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Fixed fotter problem with printer friendly version
This commit is contained in:
parent
17a881df6a
commit
5112cf23af
@ -14,8 +14,9 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
if ($friendly)
|
if ($friendly) {
|
||||||
$phpgw_flags["noheader"] = True;
|
$phpgw_flags["noheader"] = True;
|
||||||
|
}
|
||||||
|
|
||||||
$phpgw_flags["currentapp"] = "calendar";
|
$phpgw_flags["currentapp"] = "calendar";
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
@ -63,6 +64,10 @@
|
|||||||
/* Pre-Load the repeated events for quckier access */
|
/* Pre-Load the repeated events for quckier access */
|
||||||
$repeated_events = read_repeated_events();
|
$repeated_events = read_repeated_events();
|
||||||
|
|
||||||
|
if ($friendly) {
|
||||||
|
echo "<body bgcolor=\"".$phpgw_info["theme"][bg_color]."\">";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<TABLE BORDER=0 WIDTH=100%>
|
<TABLE BORDER=0 WIDTH=100%>
|
||||||
<TR><TD VALIGN="top" WIDTH=70%"><TR><TD>
|
<TR><TD VALIGN="top" WIDTH=70%"><TR><TD>
|
||||||
|
@ -352,13 +352,13 @@
|
|||||||
. "\">"
|
. "\">"
|
||||||
. "<IMG SRC=\"".$phpgw_info["server"]["app_images"]."/new.gif\" WIDTH=10 HEIGHT=10 ALT=\""
|
. "<IMG SRC=\"".$phpgw_info["server"]["app_images"]."/new.gif\" WIDTH=10 HEIGHT=10 ALT=\""
|
||||||
. lang_calendar("New Entry") . "\" BORDER=0 ALIGN=right></A>";
|
. lang_calendar("New Entry") . "\" BORDER=0 ALIGN=right></A>";
|
||||||
|
echo "[ " . "<a href=\"".$phpgw->link("day.php","month=".date("m",$date)
|
||||||
|
."&day=".date("d",$date)."&year=".date("Y",$date))
|
||||||
|
. "\">" . date("d", $date) . "</a> ]<BR>\n";
|
||||||
|
} else {
|
||||||
|
echo "[ " . date("d", $date) . " ]<BR>\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
echo "[ " . "<a href=\"".$phpgw->link("day.php",
|
|
||||||
"month=".date("m",$date)
|
|
||||||
."&day=".date("d",$date)
|
|
||||||
."&year=".date("Y",$date))
|
|
||||||
. "\">" . date("d", $date)
|
|
||||||
. "</a> ]<BR>\n";
|
|
||||||
echo "<FONT SIZE=\"2\">";
|
echo "<FONT SIZE=\"2\">";
|
||||||
|
|
||||||
// This is only a temporey fix
|
// This is only a temporey fix
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
if (! $friendly) {
|
if ($friendly) {
|
||||||
$phpgw_flags["noheader"] = True;
|
$phpgw_flags["noheader"] = True;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,11 +49,10 @@
|
|||||||
$prevmonth = date("m",$prev);
|
$prevmonth = date("m",$prev);
|
||||||
$prevdate = date("Ymd");
|
$prevdate = date("Ymd");
|
||||||
|
|
||||||
if (! $friendly) {
|
if ($friendly) {
|
||||||
$phpgw->common->header();
|
|
||||||
} else
|
|
||||||
echo "<body bgcolor=\"".$phpgw_info["theme"][bg_color]."\">";
|
echo "<body bgcolor=\"".$phpgw_info["theme"][bg_color]."\">";
|
||||||
$view = "month";
|
$view = "month";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<HEAD>
|
<HEAD>
|
||||||
@ -170,6 +169,5 @@
|
|||||||
. "status = '" . lang_calendar("Generate printer-friendly version"). "'";
|
. "status = '" . lang_calendar("Generate printer-friendly version"). "'";
|
||||||
echo "<a href=\"".$phpgw->link($PHP_SELF,$param)."\">";
|
echo "<a href=\"".$phpgw->link($PHP_SELF,$param)."\">";
|
||||||
echo "[". lang_calendar("Printer Friendly") . "]</A>";
|
echo "[". lang_calendar("Printer Friendly") . "]</A>";
|
||||||
|
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||||
}
|
}
|
||||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
|
||||||
?>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user