Changeset 4557 for branches/2.2.0.1


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

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

Location:
branches/2.2.0.1/calendar
Files:
3 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']), 
  • branches/2.2.0.1/calendar/js/dhtmlx/codebase/dhtmlxscheduler_debug.js

    r4529 r4557  
    31733173        if (cse) cs=cs+" "+cse; 
    31743174//alert(h); 
     3175//alert(title_view); 
     3176        var evDescription = contentB; 
     3177 
    31753178        var html = ''; 
    31763179        if(h == 41) 
     
    31863189        else 
    31873190        { 
     3191            //hide/show event description according to the preference title_view 
     3192            if(ev.title_view == 1) 
     3193            { 
     3194                evDescription = ''; 
     3195            } 
     3196             
    31883197            html='<div event_id="'+id+'" class="'+cs+'" ondblclick="javascript:callViewEvent(\''+id+'\');" title="'+contentB+'" style="position:absolute; top:'+y+'px; left:'+x+'px; width:'+(w-4)+'px; height:'+h+'px;'+(style||"")+'">'; 
    31893198            //var html='<div event_id="'+id+'" class="'+cs+'" ondblclick="javascript:callViewEvent(\''+id+'\');" title="'+contentB+'" style="position:absolute; top:'+y+'px; left:'+x+'px; width:'+(w-4)+'px; height:'+(h-(this._quirks?15:25))+'px;">'; 
     
    31913200            html+='<div class="dhx_title">'+contentA+'</div>'; 
    31923201            //html+='<div class="dhx_title" style="height:'+(h-(this._quirks?15:25))+'px;">'+contentA+'</div>'; 
    3193             html+='<div class="dhx_body" style=" width:'+(w-(this._quirks?4:14))+'px; height:'+(h-(this._quirks?20:30))+'px;">'+contentB+'</div>'; 
     3202            html+='<div class="dhx_body" style=" width:'+(w-(this._quirks?4:14))+'px; height:'+(h-(this._quirks?20:30))+'px;">'+evDescription+'</div>'; 
    31943203            html+='<div class="dhx_footer" style=" width:'+(w-8)+'px;'+(bottom?' margin-top:-1px;':'')+'" ></div></div>'; 
    31953204        } 
  • branches/2.2.0.1/calendar/templates/default/day_cal.tpl

    r4549 r4557  
    150150            } 
    151151 
     152            //hide/show event description according to the preference title_view 
    152153            if(event.title_view == 0) 
    153154            { 
    154                 if(event.descOnTitle == 1) 
     155                if(event.descOnTitle == 1) //to show, or not, description beside the title 
    155156                { 
    156157                    var eventDescOnTitle = (" - ") + event.text; 
Note: See TracChangeset for help on using the changeset viewer.