Changeset 3193 for branches/2.2/calendar/inc/class.uicalendar.inc.php
- Timestamp:
- 09/01/10 11:39:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/calendar/inc/class.uicalendar.inc.php
r1949 r3193 684 684 { 685 685 686 //NDEE: printer-friendly what?686 //NDEE: printer-friendly what? 687 687 $minical_this = ''; 688 688 $minical_prev = ''; … … 700 700 { 701 701 702 //NDEE: printer-friendly (weekly-view)702 //NDEE: printer-friendly (weekly-view) 703 703 $printer = '<body bgcolor="'.$this->theme['bg_color'].'">'; 704 704 $prev_week_link = ''; … … 727 727 'print' => $print 728 728 ); 729 //todo729 //todo 730 730 $p = CreateObject('phpgwapi.Template',$this->template_dir); 731 731 $p->set_file( … … 1709 1709 function day() 1710 1710 { 1711 1712 1711 $this->bo->read_holidays(); 1712 1713 $next = $GLOBALS['phpgw']->datetime->makegmttime(0,0,0,$this->bo->month,$this->bo->day + 1,$this->bo->year); 1714 $prev = $GLOBALS['phpgw']->datetime->makegmttime(0,0,0,$this->bo->month,$this->bo->day - 1,$this->bo->year); 1713 1715 1714 1716 if (!$this->bo->printer_friendly || ($this->bo->printer_friendly && @$this->bo->prefs['calendar']['display_minicals'])) … … 1726 1728 { 1727 1729 1728 //NDEE: printer-friendly (what?)1730 //NDEE: printer-friendly (what?) 1729 1731 $minical = ''; 1730 1732 } … … 1733 1735 { 1734 1736 $printer = ''; 1737 $prev_day_link = '<a href="'.$this->page('day','&date='.$prev['full']).'"><<</a>'; 1738 $next_day_link = '<a href="'.$this->page('day','&date='.$next['full']).'">>></a>'; 1735 1739 $param = '&date='.sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day).'&friendly=1'; 1736 1740 $print = '<a href="'.$this->page('day'.$param)."\" TARGET=\"cal_printer_friendly\" onMouseOver=\"window.status = '".lang('Generate printer-friendly version')."'\">[".lang('Printer Friendly').']</a>'; … … 1739 1743 { 1740 1744 1741 //NDEE: printer-friendly (daily-view)1745 //NDEE: printer-friendly (daily-view) 1742 1746 $GLOBALS['phpgw_info']['flags']['nofooter'] = True; 1743 1747 $printer = '<body bgcolor="'.$this->theme['bg_color'].'">'; … … 1771 1775 'date' => $this->bo->long_date($now), 1772 1776 'username' => $GLOBALS['phpgw']->common->grab_owner_name($this->bo->owner), 1777 'prev_day_link' => $prev_day_link, 1778 'next_day_link' => $next_day_link, 1773 1779 'print' => $print, 1774 1780 'lang_todos' => $todo_label, 1775 1781 'todos' => $this->bo->printer_friendly ? $todos : 1776 1782 1777 //NDEE: todo's layout1783 //NDEE: todo's layout 1778 1784 "<div style=\"overflow: auto; max-height: 200px\">\n$todos</div>\n" 1779 1785 );
Note: See TracChangeset
for help on using the changeset viewer.