mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
- printer-friendly view of week and year work now for date other than the actual date - prev. and next-week arrows/links removed from printer-friendly view - prev. and next-week arrows/links are align=center und valing=middle now
This commit is contained in:
parent
bdf2cb9d91
commit
8727041c6b
@ -733,13 +733,13 @@
|
||||
$printer = '';
|
||||
$prev_week_link = '<a href="'.$this->page('week','&date='.$prev['full']).'"><<</a>';
|
||||
$next_week_link = '<a href="'.$this->page('week','&date='.$next['full']).'">>></a>';
|
||||
$print = '<a href="'.$this->page('week','&friendly=1')."\" TARGET=\"cal_printer_friendly\" onMouseOver=\"window.status = '".lang('Generate printer-friendly version')."'\">[".lang('Printer Friendly').']</a>';
|
||||
$print = '<a href="'.$this->page('week','&friendly=1&date='.sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day))."\" TARGET=\"cal_printer_friendly\" onMouseOver=\"window.status = '".lang('Generate printer-friendly version')."'\">[".lang('Printer Friendly').']</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$printer = '<body bgcolor="'.$this->theme['bg_color'].'">';
|
||||
$prev_week_link = '<<';
|
||||
$next_week_link = '>>';
|
||||
$prev_week_link = '';
|
||||
$next_week_link = '';
|
||||
$print = '';
|
||||
$GLOBALS['phpgw_info']['flags']['nofooter'] = True;
|
||||
}
|
||||
@ -856,7 +856,7 @@
|
||||
$left_link = '<a href="'.$this->page('year','&year='.($this->bo->year - 1)).'"><<</a>';
|
||||
$right_link = '<a href="'.$this->page('year','&year='.($this->bo->year + 1)).'">>></a>';
|
||||
$link = 'day';
|
||||
$printer = '<a href="'.$this->page('year','&friendly=1').'" target="cal_printer_friendly" onMouseOver="window.status = '."'".lang('Generate printer-friendly version')."'".'">['.lang('Printer Friendly').']</a>';
|
||||
$printer = '<a href="'.$this->page('year','&friendly=1&year='.$this->bo->year).'" target="cal_printer_friendly" onMouseOver="window.status = '."'".lang('Generate printer-friendly version')."'".'">['.lang('Printer Friendly').']</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2794,7 +2794,7 @@
|
||||
$this->link_tpl->set_var('link_link',$this->page('view','&cal_id='.$event['id'].'&date='.$date));
|
||||
$this->link_tpl->set_var('lang_view',lang('View this entry'));
|
||||
$this->link_tpl->parse('picture','link_open',True);
|
||||
|
||||
|
||||
if($event['priority'] == 3)
|
||||
{
|
||||
$picture[] = Array(
|
||||
@ -2884,10 +2884,6 @@
|
||||
$this->output_template_array($this->link_tpl,'picture','pict',$var);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= '<font size="-2" face="'.$this->theme['font'].'">'.nl2br($this->bo->get_short_field($event,$is_private,'description')).'</font>'.$GLOBALS['phpgw']->browser->br;
|
||||
}
|
||||
if ($text)
|
||||
{
|
||||
$var = Array(
|
||||
|
@ -5,14 +5,14 @@
|
||||
<td align="left" valign="top" width="20%">
|
||||
{small_calendar_prev}
|
||||
</td>
|
||||
<td align="left" valign="top" width="20%">
|
||||
{prev_week_link}
|
||||
<td align="center" valign="middle" width="20%">
|
||||
<b>{prev_week_link}</b>
|
||||
</td>
|
||||
<td align="center" valign="top" width="20%">
|
||||
{small_calendar_this}
|
||||
</td>
|
||||
<td align="right" valign="top" width="20%">
|
||||
{next_week_link}
|
||||
<td align="center" valign="middle" width="20%">
|
||||
<b>{next_week_link}</b>
|
||||
</td>
|
||||
<td align="right" valign="top" width="20%">
|
||||
{small_calendar_next}
|
||||
|
Loading…
Reference in New Issue
Block a user