Ignore:
Timestamp:
05/10/11 12:10:47 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1858 - Colocar ícones na visão semanal da agenda

File:
1 edited

Legend:

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

    r4270 r4311  
    53775377 
    53785378                        $events_to_show_json = array(); 
    5379  
     5379                        $templateSet = $GLOBALS['phpgw_info']['server']['template_set']; 
    53805380                        foreach($dates as $day) 
    53815381                        { 
     
    54025402                                } 
    54035403 
    5404                                 if($_GET['menuaction'] ==  'calendar.uicalendar.day') 
    5405                                 { 
    5406                                     $text = $event['description']; 
    5407                                 } 
    5408                                 else 
    5409                                 { 
    5410                                         $text = ' - '.$event['end']['hour'].':'.$event['end']['min'].' - '.$event['title']." - ".$event['description']; 
    5411                                 } 
    5412  
    54135404                                $isPublic = 1; 
    54145405                                if(($event['type'] == E && $event['public'] == 0)) 
    54155406                                { 
    54165407                                    $isPublic = 0; 
    5417                                     $isPublicTitle = "Restrito"; 
     5408                                    $isPublicTitle = lang('restrict'); 
    54185409                                } 
    54195410 
     
    54215412                                { 
    54225413                                    $isPublic = 0; 
    5423                                     $isPublicTitle = "Privado"; 
     5414                                    $isPublicTitle = lang('private'); 
    54245415                                } 
    54255416 
     
    54445435                                } 
    54455436                                if($event['users_status'] == 'R') 
     5437                                { 
    54465438                                    $rejected = TRUE; 
     5439                                } 
    54475440                                else 
     5441                                { 
    54485442                                    $rejected = FALSE; 
     5443                                } 
     5444 
     5445                                if($_GET['menuaction'] ==  'calendar.uicalendar.day') 
     5446                                { 
     5447                                    $text = $event['description']; 
     5448                                } 
     5449                                elseif($_GET['menuaction'] ==  'calendar.uicalendar.week') 
     5450                                { 
     5451                                    $text = ' - '.$event['end']['hour'].':'.$event['end']['min']; 
     5452 
     5453                                    //is recurrent? 
     5454                                    $text .= (isset($recur) && $recur != false) ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('recurring event').'" src="calendar/templates/'.$templateSet.'/images/recur.png"/>' : '' ; 
     5455                                     
     5456                                    //participants? 
     5457                                    if(count($event['participants']) > 1) 
     5458                                    { 
     5459                                        $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/multi_3.png"/>'; 
     5460                                    } 
     5461                                    else 
     5462                                    { 
     5463                                        $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/single.png"/>'; 
     5464                                    } 
     5465 
     5466                                    //has attachments? 
     5467                                    $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"/>' : '' ; 
     5468 
     5469                                    //is public? 
     5470                                    $text .= $isPublic == 0 ? ' ' . '<img width="11px" height="10px" border="0" title="'.$isPublicTitle.'" src="calendar/templates/'.$templateSet.'/images/private.png"/>' : '' ; 
     5471 
     5472                                    //has alarm? 
     5473                                    $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"/>' : '' ; 
     5474                                     
     5475                                    $text .= ' - ' . $event['title']." - ".$event['description']; 
     5476                                } 
     5477                                else 
     5478                                { 
     5479                                    $text = ' - '.$event['end']['hour'].':'.$event['end']['min'] . ' - '. $event['title']." - ".$event['description']; 
     5480                                } 
    54495481 
    54505482                                $events_to_show_json[] = array( 
     
    54605492                                    participants_title      => $participants, 
    54615493                                    attachments             => $event['attachment'] ? 1 : 0 , 
     5494                                    attachmentsTitle        => utf8_encode(lang('email notifications with attachments has been sent')), 
    54625495                                    isPublic                => $isPublic, 
    5463                                     isPublicTitle           => $isPublicTitle, 
     5496                                    isPublicTitle           => utf8_encode($isPublicTitle), 
    54645497                                    alarm                   => (isset($event['alarm']) && count($event['alarm']) >= 1) ? 1 : 0, 
     5498                                    alarmTitle              => utf8_encode(lang('alarm')), 
    54655499                                    recur                   => $recur, 
     5500                                    recurTitle              => utf8_encode(lang('recurring event')), 
    54665501                                    intersection            => $intersection, 
    54675502                                    rejected                => $rejected 
Note: See TracChangeset for help on using the changeset viewer.