Ignore:
Timestamp:
05/31/11 17:20:18 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1946 - Itens ausentes na agenda - preferencia da agenda

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php

    r4550 r4557  
    54625462                                } 
    54635463 
     5464                                $evDescription = ''; 
    54645465                                if($title_view == 0) 
    54655466                                { 
    5466                                     if($_GET['menuaction'] ==  'calendar.uicalendar.day') 
     5467                                    $evDescription = " - ".$event['description']; 
     5468                                } 
     5469 
     5470                                if($_GET['menuaction'] ==  'calendar.uicalendar.day') 
     5471                                { 
     5472                                    $text = $event['description']; 
     5473                                } 
     5474                                elseif($_GET['menuaction'] ==  'calendar.uicalendar.week') 
     5475                                { 
     5476                                     
     5477                                    $text = ' - '.$event['end']['hour'].':'.$event['end']['min']; 
     5478 
     5479                                    //is recurrent? 
     5480                                    $text .= (isset($recur) && $recur != false) ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('recurring event').'" src="calendar/templates/'.$templateSet.'/images/recur.png"/>' : '' ; 
     5481 
     5482                                    //participants? 
     5483                                    if(count($event['participants']) > 1) 
    54675484                                    { 
    5468                                         $text = $event['description']; 
    5469                                     } 
    5470                                     elseif($_GET['menuaction'] ==  'calendar.uicalendar.week') 
    5471                                     { 
    5472                                         $text = ' - '.$event['end']['hour'].':'.$event['end']['min']; 
    5473  
    5474                                         //is recurrent? 
    5475                                         $text .= (isset($recur) && $recur != false) ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('recurring event').'" src="calendar/templates/'.$templateSet.'/images/recur.png"/>' : '' ; 
    5476  
    5477                                         //participants? 
    5478                                         if(count($event['participants']) > 1) 
    5479                                         { 
    5480                                             $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/multi_3.png"/>'; 
    5481                                         } 
    5482                                         else 
    5483                                         { 
    5484                                             $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/single.png"/>'; 
    5485                                         } 
    5486  
    5487                                         //has attachments? 
    5488                                         $text .= (isset($event['attachment']) && $event['attachment'] != '') ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('email notifications with attachments has been sent').'" src="calendar/templates/'.$templateSet.'/images/clip.png"/>' : '' ; 
    5489  
    5490                                         //is public? 
    5491                                         $text .= $isPublic == 0 ? ' ' . '<img width="11px" height="10px" border="0" title="'.$isPublicTitle.'" src="calendar/templates/'.$templateSet.'/images/private.png"/>' : '' ; 
    5492  
    5493                                         //has alarm? 
    5494                                         $text .= (isset($event['alarm']) && count($event['alarm']) >= 1) ? ' ' . '<img width="11px" height="10px" border="0" title="'.lang('alarm').'" src="calendar/templates/'.$templateSet.'/images/alarm.png"/>' : '' ; 
    5495  
    5496                                         $text .= ' - ' . $event['title']." - ".$event['description']; 
     5485                                        $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/multi_3.png"/>'; 
    54975486                                    } 
    54985487                                    else 
    54995488                                    { 
    5500                                         $text = ' - '.$event['end']['hour'].':'.$event['end']['min'] . ' - '. $event['title']." - ".$event['description']; 
     5489                                        $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/single.png"/>'; 
    55015490                                    } 
     5491 
     5492                                    //has attachments? 
     5493                                    $text .= (isset($event['attachment']) && $event['attachment'] != '') ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('email notifications with attachments has been sent').'" src="calendar/templates/'.$templateSet.'/images/clip.png"/>' : '' ; 
     5494 
     5495                                    //is public? 
     5496                                    $text .= $isPublic == 0 ? ' ' . '<img width="11px" height="10px" border="0" title="'.$isPublicTitle.'" src="calendar/templates/'.$templateSet.'/images/private.png"/>' : '' ; 
     5497 
     5498                                    //has alarm? 
     5499                                    $text .= (isset($event['alarm']) && count($event['alarm']) >= 1) ? ' ' . '<img width="11px" height="10px" border="0" title="'.lang('alarm').'" src="calendar/templates/'.$templateSet.'/images/alarm.png"/>' : '' ; 
     5500 
     5501                                    $text .= ' - ' . $event['title'].$evDescription; 
    55025502                                } 
    55035503                                else 
    55045504                                { 
    5505                                     $text = ''; 
     5505                                    $text = ' - '.$event['end']['hour'].':'.$event['end']['min'] . ' - '. $event['title'].$evDescription; 
    55065506                                } 
    55075507 
     
    55105510                                    end_date                => $event['end']['year'].'-'.$event['end']['month'].'-'.$event['end']['mday'].' '.$event['end']['hour'].':'.$event['end']['min'] . ' - ' . utf8_encode($event['title']), 
    55115511                                    text                    => utf8_encode($text), 
    5512                                     textTitle               => utf8_encode($event['description']), 
    5513                                     descOnTitle             => ($eventTime <= 30) ? 1 : 0, 
     5512                                    textTitle               => utf8_encode($event['description']), //week and month tooltip 
     5513                                    descOnTitle             => ($eventTime <= 57) ? 1 : 0, 
    55145514                                    title                   => utf8_encode($event['title']), 
    55155515                                    observation             => utf8_encode($event['observations']), 
Note: See TracChangeset for help on using the changeset viewer.