Changeset 4323


Ignore:
Timestamp:
05/10/11 17:21:23 (13 years ago)
Author:
airton
Message:

Ticket #1820 - Colocar icones na visao semanal da agenda

Location:
sandbox/2.2.0.2/calendar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/calendar/inc/class.uicalendar.inc.php

    r4321 r4323  
    53785378 
    53795379                        $events_to_show_json = array(); 
    5380  
     5380                                                $templateSet = $GLOBALS['phpgw_info']['server']['template_set']; 
     5381                                                 
    53815382                        foreach($dates as $day) 
    53825383                        { 
     
    54035404                                } 
    54045405 
    5405                                 if($_GET['menuaction'] ==  'calendar.uicalendar.day') 
    5406                                 { 
    5407                                     $text = $event['description']; 
    5408                                 } 
    5409                                 else 
    5410                                 { 
    5411                                         $text = ' - '.$event['end']['hour'].':'.$event['end']['min'].' - '.$event['title']." - ".$event['description']; 
    5412                                 } 
    54135406 
    54145407                                $isPublic = 1; 
     
    54165409                                { 
    54175410                                    $isPublic = 0; 
    5418                                     $isPublicTitle = "Restrito"; 
     5411                                    $isPublicTitle = lang('private'); 
    54195412                                } 
    54205413 
     
    54455438                                } 
    54465439                                if($event['users_status'] == 'R') 
     5440                                                                { 
    54475441                                    $rejected = TRUE; 
     5442                                } 
     5443                                                                else 
     5444                                                                { 
     5445                                    $rejected = FALSE; 
     5446                                                                } 
     5447                                                                 
     5448                                                                if($_GET['menuaction'] ==  'calendar.uicalendar.day') 
     5449                                { 
     5450                                    $text = $event['description']; 
     5451                                } 
     5452                                elseif($_GET['menuaction'] ==  'calendar.uicalendar.week') 
     5453                                { 
     5454                                    $text = ' - '.$event['end']['hour'].':'.$event['end']['min']; 
     5455 
     5456                                    //is recurrent? 
     5457                                    $text .= (isset($recur) && $recur != false) ? ' ' . '<img width="10px" height="10px" border="0" title="'.lang('recurring event').'" src="calendar/templates/'.$templateSet.'/images/recur.png"/>' : '' ; 
     5458                                     
     5459                                    //participants? 
     5460                                    if(count($event['participants']) > 1) 
     5461                                    { 
     5462                                        $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/multi_3.png"/>'; 
     5463                                    } 
     5464                                    else 
     5465                                    { 
     5466                                        $text .= " " . '<img width="11px" height="10px" border="0" title="'.$participants.'" src="calendar/templates/'.$templateSet.'/images/single.png"/>'; 
     5467                                    } 
     5468 
     5469                                    //has attachments? 
     5470                                    $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"/>' : '' ; 
     5471 
     5472                                    //is public? 
     5473                                    $text .= $isPublic == 0 ? ' ' . '<img width="11px" height="10px" border="0" title="'.$isPublicTitle.'" src="calendar/templates/'.$templateSet.'/images/private.png"/>' : '' ; 
     5474 
     5475                                    //has alarm? 
     5476                                    $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"/>' : '' ; 
     5477                                     
     5478                                    $text .= ' - ' . $event['title']." - ".$event['description']; 
     5479                                } 
    54485480                                else 
    5449                                     $rejected = FALSE; 
    5450  
     5481                                { 
     5482                                    $text = ' - '.$event['end']['hour'].':'.$event['end']['min'] . ' - '. $event['title']." - ".$event['description']; 
     5483                                } 
     5484                                                                 
     5485                                                                 
     5486                                                                 
    54515487                                $events_to_show_json[] = array( 
    54525488                                    start_date              => $event['start']['year'].'-'.$event['start']['month'].'-'.$event['start']['mday'].' '.$event['start']['hour'].':'.$event['start']['min'], 
     
    54615497                                    participants_title      => $participants, 
    54625498                                    attachments             => $event['attachment'] ? 1 : 0 , 
     5499                                                                        attachmentsTitle        => utf8_encode(lang('email notifications with attachments has been sent')), 
    54635500                                    isPublic                => $isPublic, 
    5464                                     isPublicTitle           => $isPublicTitle, 
     5501                                    isPublicTitle           => utf8_encode($isPublicTitle), 
    54655502                                    alarm                   => (isset($event['alarm']) && count($event['alarm']) >= 1) ? 1 : 0, 
     5503                                                                        alarmTitle              => utf8_encode(lang('alarm')), 
    54665504                                    recur                   => $recur, 
     5505                                                                        recurTitle              => utf8_encode(lang('recurring event')), 
    54675506                                    intersection            => $intersection, 
    54685507                                    rejected                => $rejected 
  • sandbox/2.2.0.2/calendar/templates/default/day_cal.tpl

    r4322 r4323  
    114114            if(event.recur && event.recur != false) 
    115115            { 
    116                 imgs += '<img width="10px" height="10px" border="0" title="Evento recorrente" src="calendar/templates/{templateSet}/images/recur.png"/>'; 
     116                imgs += '<img width="10px" height="10px" border="0" title="'+event.recurTitle+'" src="calendar/templates/{templateSet}/images/recur.png"/>'; 
    117117            } 
    118118 
     
    128128            if(event.attachments == 1) 
    129129            { 
    130                 imgs += " " + '<img width="10px" height="10px" border="0" title="Foram enviadas notificações com anexos" src="calendar/templates/{templateSet}/images/clip.png"/>'; 
     130                imgs += " " + '<img width="10px" height="10px" border="0" title="'+event.attachmentsTitle+'" src="calendar/templates/{templateSet}/images/clip.png"/>'; 
    131131            } 
    132132 
     
    138138            if(event.alarm == 1) 
    139139            { 
    140                 imgs += " " + '<img width="11px" height="10px" border="0" title="Alarme" src="calendar/templates/{templateSet}/images/alarm.png"/>'; 
     140                imgs += " " + '<img width="11px" height="10px" border="0" title="'+event.alarmTitle+'" src="calendar/templates/{templateSet}/images/alarm.png"/>'; 
    141141            } 
    142142 
Note: See TracChangeset for help on using the changeset viewer.