forked from extern/egroupware
got printerfriendly working again
This commit is contained in:
parent
ab4fe582bf
commit
4e51415640
@ -612,27 +612,13 @@
|
|||||||
{
|
{
|
||||||
if($this->bo->printer_friendly)
|
if($this->bo->printer_friendly)
|
||||||
{
|
{
|
||||||
$new_body = '<html>'."\n"
|
$GLOBALS['phpgw_info']['flags']['headonly'] = True;
|
||||||
.'<head>'."\n"
|
|
||||||
.'<STYLE type="text/css">'."\n"
|
|
||||||
.'<!--'."\n"
|
|
||||||
.' body { margin-top: 0px; margin-right: 0px; margin-left: 0px; font-family: "'.$GLOBALS['phpgw_info']['theme']['font'].'" }'."\n"
|
|
||||||
.' .tablink { color: #000000; }'."\n"
|
|
||||||
.' '.$this->css()."\n"
|
|
||||||
.'-->'."\n"
|
|
||||||
.'</STYLE>'."\n"
|
|
||||||
.'</head>'."\n"
|
|
||||||
.$this->bo->debug_string.$body
|
|
||||||
.'</body>'."\n"
|
|
||||||
.'</html>'."\n";
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->cal_header($func_header && $GLOBALS['phpgw_info']['user']['template'] == 'idots' ? $func_header : '');
|
$this->cal_header($func_header && $GLOBALS['phpgw_info']['user']['template'] == 'idots' ? $func_header : '');
|
||||||
|
|
||||||
$new_body = $this->bo->debug_string.$body;
|
|
||||||
}
|
}
|
||||||
return $new_body;
|
return $this->bo->debug_string . $body;
|
||||||
}
|
}
|
||||||
|
|
||||||
function month()
|
function month()
|
||||||
@ -1587,6 +1573,11 @@
|
|||||||
|
|
||||||
$event = $this->bo->read_entry($GLOBALS['HTTP_GET_VARS']['cal_id']);
|
$event = $this->bo->read_entry($GLOBALS['HTTP_GET_VARS']['cal_id']);
|
||||||
$this->view_event($event);
|
$this->view_event($event);
|
||||||
|
$GLOBALS['phpgw']->template->set_var(array(
|
||||||
|
'button_left' => '',
|
||||||
|
'button_center' => '',
|
||||||
|
'button_right' => ''
|
||||||
|
));
|
||||||
$GLOBALS['phpgw']->template->fp('phpgw_body','view_event',True);
|
$GLOBALS['phpgw']->template->fp('phpgw_body','view_event',True);
|
||||||
|
|
||||||
echo $this->get_response($event['id']);
|
echo $this->get_response($event['id']);
|
||||||
|
@ -22,11 +22,14 @@
|
|||||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
|
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
|
||||||
<tr valign="top" width="100%">
|
<tr valign="top" width="100%">
|
||||||
<td>
|
<td>
|
||||||
<!-- <xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$current_app = 'help'"> -->
|
<xsl:when test="$current_app = 'help'">
|
||||||
<xsl:call-template name="help"/>
|
<xsl:call-template name="help"/>
|
||||||
<!-- </xsl:when>
|
</xsl:when>
|
||||||
</xsl:choose> -->
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of disable-output-escaping="yes" select="body_data"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
|
Loading…
Reference in New Issue
Block a user