Changeset 4323 for sandbox/2.2.0.2/calendar/inc/class.uicalendar.inc.php
- Timestamp:
- 05/10/11 17:21:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/calendar/inc/class.uicalendar.inc.php
r4321 r4323 5378 5378 5379 5379 $events_to_show_json = array(); 5380 5380 $templateSet = $GLOBALS['phpgw_info']['server']['template_set']; 5381 5381 5382 foreach($dates as $day) 5382 5383 { … … 5403 5404 } 5404 5405 5405 if($_GET['menuaction'] == 'calendar.uicalendar.day')5406 {5407 $text = $event['description'];5408 }5409 else5410 {5411 $text = ' - '.$event['end']['hour'].':'.$event['end']['min'].' - '.$event['title']." - ".$event['description'];5412 }5413 5406 5414 5407 $isPublic = 1; … … 5416 5409 { 5417 5410 $isPublic = 0; 5418 $isPublicTitle = "Restrito";5411 $isPublicTitle = lang('private'); 5419 5412 } 5420 5413 … … 5445 5438 } 5446 5439 if($event['users_status'] == 'R') 5440 { 5447 5441 $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 } 5448 5480 else 5449 $rejected = FALSE; 5450 5481 { 5482 $text = ' - '.$event['end']['hour'].':'.$event['end']['min'] . ' - '. $event['title']." - ".$event['description']; 5483 } 5484 5485 5486 5451 5487 $events_to_show_json[] = array( 5452 5488 start_date => $event['start']['year'].'-'.$event['start']['month'].'-'.$event['start']['mday'].' '.$event['start']['hour'].':'.$event['start']['min'], … … 5461 5497 participants_title => $participants, 5462 5498 attachments => $event['attachment'] ? 1 : 0 , 5499 attachmentsTitle => utf8_encode(lang('email notifications with attachments has been sent')), 5463 5500 isPublic => $isPublic, 5464 isPublicTitle => $isPublicTitle,5501 isPublicTitle => utf8_encode($isPublicTitle), 5465 5502 alarm => (isset($event['alarm']) && count($event['alarm']) >= 1) ? 1 : 0, 5503 alarmTitle => utf8_encode(lang('alarm')), 5466 5504 recur => $recur, 5505 recurTitle => utf8_encode(lang('recurring event')), 5467 5506 intersection => $intersection, 5468 5507 rejected => $rejected
Note: See TracChangeset
for help on using the changeset viewer.