Fixed fotter problem with printer friendly version

This commit is contained in:
jengo 2000-08-18 16:41:04 +00:00
parent 17a881df6a
commit 5112cf23af
3 changed files with 17 additions and 14 deletions

View File

@ -14,8 +14,9 @@
/* $Id$ */
if ($friendly)
if ($friendly) {
$phpgw_flags["noheader"] = True;
}
$phpgw_flags["currentapp"] = "calendar";
include("../header.inc.php");
@ -63,6 +64,10 @@
/* Pre-Load the repeated events for quckier access */
$repeated_events = read_repeated_events();
if ($friendly) {
echo "<body bgcolor=\"".$phpgw_info["theme"][bg_color]."\">";
}
?>
<TABLE BORDER=0 WIDTH=100%>
<TR><TD VALIGN="top" WIDTH=70%"><TR><TD>

View File

@ -352,13 +352,13 @@
. "\">"
. "<IMG SRC=\"".$phpgw_info["server"]["app_images"]."/new.gif\" WIDTH=10 HEIGHT=10 ALT=\""
. 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\">";
// This is only a temporey fix

View File

@ -14,7 +14,7 @@
/* $Id$ */
if (! $friendly) {
if ($friendly) {
$phpgw_flags["noheader"] = True;
}
@ -49,11 +49,10 @@
$prevmonth = date("m",$prev);
$prevdate = date("Ymd");
if (! $friendly) {
$phpgw->common->header();
} else
if ($friendly) {
echo "<body bgcolor=\"".$phpgw_info["theme"][bg_color]."\">";
$view = "month";
$view = "month";
}
?>
<HEAD>
@ -170,6 +169,5 @@
. "status = '" . lang_calendar("Generate printer-friendly version"). "'";
echo "<a href=\"".$phpgw->link($PHP_SELF,$param)."\">";
echo "[". lang_calendar("Printer Friendly") . "]</A>";
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
}
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
?>