mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
maybe fixes for templates
This commit is contained in:
parent
392a6861cd
commit
22f9d3d668
@ -59,9 +59,9 @@
|
|||||||
|
|
||||||
$view = "month";
|
$view = "month";
|
||||||
|
|
||||||
$phpgw->template->set_file(array("index" => "index.tpl"));
|
$phpgw->template->set_file(array("index_t" => "index.tpl"));
|
||||||
|
|
||||||
$phpgw->template->set_block("index");
|
$phpgw->template->set_block("index_t","index");
|
||||||
|
|
||||||
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"]."\">");
|
||||||
@ -82,12 +82,12 @@
|
|||||||
$param = "year=".$now["year"]."&month=".$now["month"]."&friendly=1";
|
$param = "year=".$now["year"]."&month=".$now["month"]."&friendly=1";
|
||||||
$phpgw->template->set_var("print","<a href=\"".$phpgw->link($PHP_SELF,$param)."\" TARGET=\"cal_printer_friendly\" onMouseOver=\"window."
|
$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>");
|
. "status = '" . lang("Generate printer-friendly version"). "'\">[". lang("Printer Friendly") . "]</a>");
|
||||||
$phpgw->template->parse("out","index");
|
$phpgw->template->parse("out","index_t");
|
||||||
$phpgw->template->pparse("out","index");
|
$phpgw->template->pparse("out","index_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","index");
|
$phpgw->template->parse("out","index_t");
|
||||||
$phpgw->template->pparse("out","index");
|
$phpgw->template->pparse("out","index_t");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<!-- $Id$ -->
|
<!-- $Id$ -->
|
||||||
<!-- BEGIN index -->
|
|
||||||
{printer_friendly}
|
{printer_friendly}
|
||||||
<head>
|
<head>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
@ -27,4 +26,4 @@
|
|||||||
<p>
|
<p>
|
||||||
<p>
|
<p>
|
||||||
{print}
|
{print}
|
||||||
<!-- END index -->
|
|
||||||
|
Loading…
Reference in New Issue
Block a user