Changeset 4557 for branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
- Timestamp:
- 05/31/11 17:20:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
r4550 r4557 5462 5462 } 5463 5463 5464 $evDescription = ''; 5464 5465 if($title_view == 0) 5465 5466 { 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) 5467 5484 { 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"/>'; 5497 5486 } 5498 5487 else 5499 5488 { 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"/>'; 5501 5490 } 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; 5502 5502 } 5503 5503 else 5504 5504 { 5505 $text = ' ';5505 $text = ' - '.$event['end']['hour'].':'.$event['end']['min'] . ' - '. $event['title'].$evDescription; 5506 5506 } 5507 5507 … … 5510 5510 end_date => $event['end']['year'].'-'.$event['end']['month'].'-'.$event['end']['mday'].' '.$event['end']['hour'].':'.$event['end']['min'] . ' - ' . utf8_encode($event['title']), 5511 5511 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, 5514 5514 title => utf8_encode($event['title']), 5515 5515 observation => utf8_encode($event['observations']),
Note: See TracChangeset
for help on using the changeset viewer.