Changeset 3914


Ignore:
Timestamp:
03/25/11 13:47:32 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1671 - Feriados não são destacados na visão diária e mensal

Location:
branches/2.2/calendar/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/calendar/inc/class.boholiday.inc.php

    r2 r3914  
    256256                                } 
    257257//                              echo 'Loading from: '.$load_from.'/holidays.'.strtoupper($locale).'.csv'."<br>\n"; 
    258                                 $lines = $network->gethttpsocketfile($load_from.'/holidays.'.strtoupper($locale).'.csv'); 
     258                                if(isset($GLOBALS['phpgw_info']['server']['holidays_url_path']) && $GLOBALS['phpgw_info']['server']['holidays_url_path'] != 'localhost') 
     259                                { 
     260                                    $lines = $network->gethttpsocketfile($load_from.'/holidays.'.strtoupper($locale).'.csv'); 
     261                                } 
     262                                else 
     263                                { 
     264                                    $lines = explode(chr(0x0A),file_get_contents($load_from.'/holidays.'.strtoupper($locale).'.csv')); 
     265                                } 
    259266                                if (!$lines) 
    260267                                { 
  • branches/2.2/calendar/inc/class.uicalendar.inc.php

    r3910 r3914  
    392392                                                { 
    393393//NDEE: class def what for? 
    394                                                         $str = '<a href="'.$this->page($params['link'],'&date='.$date).'" class="'.$day_params['class'].'">'.$day.'</a>'; 
     394                                                        $str = '<a href="'.$this->page($params['link'],'&date='.$date).'" class="'.$day_params['class'].'" ' . ($day_params['class']=='bminicalhol' || $day_params['class']=='minicalhol'?' title="' . $day_params['holidays'][0] . '" ' :'') . ' >'.$day.'</a>'; 
    395395                                                } 
    396396                                                else 
     
    545545                                $minical_next = ''; 
    546546                        } 
    547  
     547                        $this->bo->read_holidays($params['year']); 
    548548                        if($_POST['year']) {                     
    549549         
     
    666666                        if (isset($this->bo->prefs['calendar']['display_minicals']) && $this->bo->prefs['calendar']['display_minicals'] == "1" && !$this->bo->printer_friendly) 
    667667                        { 
    668                                 $minical_this = $this->mini_calendar( 
    669                                         Array( 
    670                                                 'day'   => $this->bo->day, 
    671                                                 'month' => $this->bo->month, 
    672                                                 'year'  => $this->bo->year, 
    673                                                 'link'  => 'day', 
    674                                                 'butons'        => 'none', 
    675                                                 'outside_month' => False 
    676                                         ) 
    677                                 ); 
    678668                                $minical_prev = $this->mini_calendar( 
    679669                                        Array( 
     
    693683                                                'link'  => 'day', 
    694684                                                'butons'        => 'right', 
     685                                                'outside_month' => False 
     686                                        ) 
     687                                ); 
     688                                $minical_this = $this->mini_calendar( 
     689                                        Array( 
     690                                                'day'   => $this->bo->day, 
     691                                                'month' => $this->bo->month, 
     692                                                'year'  => $this->bo->year, 
     693                                                'link'  => 'day', 
     694                                                'butons'        => 'none', 
    695695                                                'outside_month' => False 
    696696                                        ) 
     
    57735773                                        $appts = False; 
    57745774                                } 
    5775  
    57765775                                $holidays = $this->bo->cached_holidays[$date]; 
    57775776                                if($weekly) 
Note: See TracChangeset for help on using the changeset viewer.