Changeset 470
- Timestamp:
- 11/25/08 16:47:14 (1 month ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/apps/intranet/modules/homepage/templates/indexSuccess.php
r461 r470 312 312 $tmps = array(); 313 313 foreach($visits as $visit): 314 $tmps[ ] = array('id' => $visit->getId(), 'type' => 'visit', 'start_at' => $visit->getVisitDate(), 'end_at' => $visit->getEndAt(), 'group' => ucfirst('visite'), 'location' => ($visit->getSales() ? $visit->getSales()->getEstate()->getAddress1().', '.$visit->getSales()->getEstate()->getCityValue() : null), 'description' => ($visit->getContact() ? $visit->getContact()->getLastname().' '.$visit->getContact()->getTelFirst() : null));314 $tmps[$visit->getVisitDate().$visit->getId().'1'] = array('id' => $visit->getId(), 'type' => 'visit', 'start_at' => $visit->getVisitDate(), 'end_at' => $visit->getEndAt(), 'group' => ucfirst('visite'), 'location' => ($visit->getSales() ? $visit->getSales()->getEstate()->getAddress1().', '.$visit->getSales()->getEstate()->getCityValue() : null), 'description' => ($visit->getContact() ? $visit->getContact()->getLastname().' '.$visit->getContact()->getTelFirst() : null)); 315 315 endforeach; 316 316 317 317 foreach($calendars as $calendar): 318 $tmps[ ] = array('id' => $calendar->getId(), 'type' => 'calendar', 'start_at' => $calendar->getDateStart(), 'end_at' => $calendar->getDateEnd(), 'group' => $calendar->getCalendar_group(), 'location' => $calendar->getLocation(), 'description' => $calendar->getDescription());318 $tmps[$calendar->getDateStart().$calendar->getId().'2'] = array('id' => $calendar->getId(), 'type' => 'calendar', 'start_at' => $calendar->getDateStart(), 'end_at' => $calendar->getDateEnd(), 'group' => $calendar->getCalendar_group(), 'location' => $calendar->getLocation(), 'description' => $calendar->getDescription()); 319 319 endforeach; 320 321 ksort($tmps); 320 322 ?> 321 323 <h3>Rendez-vous à venir</h3>
