Changeset 3193
- Timestamp:
- 09/01/10 11:39:58 (14 years ago)
- Location:
- branches/2.2/calendar
- Files:
-
- 3 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 ); -
branches/2.2/calendar/templates/default/day.tpl
r855 r3193 7 7 <tr> 8 8 <td class="calendar_dayview_table_header"> 9 {date} <span class="calendar_user_identifier">: {username} :</span>9 <b>{prev_day_link}</b> :: {date} <span class="calendar_user_identifier">: {username} :</span> :: <b>{next_day_link}</b> 10 10 <br /> 11 11 </td> -
branches/2.2/calendar/templates/default/week.tpl
r937 r3193 1 <table id="calendar_index_table" border="0" width="100%" cols="5"> 2 <tr> 3 <td align="left" valign="top" width="20%"> 4 </td> 5 <td align="center" valign="middle" width="15%"> 6 <b>{prev_week_link}</b> 7 </td> 8 <td align="center" width="30%"> 9 <span class="calendar_month_identifier"> 10 {week_identifier} 11 </span> 12 <br /> 13 <span class="calendar_user_identifier"> 14 : {username} : 15 </span> 16 </td> 17 <td align="center" valign="middle" width="15%"> 18 {next_week_link} 19 </td> 20 <td align="right" valign="top" width="20%"> 21 </td> 22 </tr> 23 </table> 1 24 {week_display} 2 25 <!-- from month_day.tpl -->
Note: See TracChangeset
for help on using the changeset viewer.