Changeset 6438 for branches/2.4


Ignore:
Timestamp:
06/06/12 15:29:59 (12 years ago)
Author:
eduardow
Message:

Ticket #2839 - Inconsistência ao abrir email de confirmação de agendamento.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/inc/class.imap_functions.inc.php

    r6333 r6438  
    16701670 
    16711671                    case 'REPLY': 
    1672                           include_once(dirname(__FILE__).'/../../header.inc.php'); 
    1673                           include_once(dirname(__FILE__).'/../../calendar/inc/class.boicalendar.inc.php'); 
    1674                           $boicalendar = new boicalendar(); 
    1675  
    1676                           $ical = $icalService->getComponent('vevent'); 
    1677                           $content.= '<b>'.$this->functions->getLang('Event Calendar').'</b><br /><br />'; 
    1678                           $content.= '<span style="font-size: 12" >'; 
    1679                           $notExist = false; 
    1680  
    1681                           foreach ($ical['attendee'] as $attendee) 
    1682                           { 
    1683                                 if($attendee['params']['PARTSTAT'] == 'ACCEPTED') 
    1684                                 { 
    1685                                     if($boicalendar->updateExParticipantState($ical['uid']['value'],$attendee['value'],'ACCEPTED',$attendee['params']['CN'])) 
    1686                                     { 
    1687                                         $content.= $this->functions->getLang('User').' '; 
    1688                                         if($attendee['params']['CN']) 
    1689                                             $content.= '<b>'.$attendee['params']['CN'].'</b> '; 
    1690                                         else 
    1691                                             $content.= '<b>'.$attendee['value'].'</b> '; 
    1692  
    1693                                         $content.= $this->functions->getLang('accepted your event'); 
    1694                                     } 
    1695                                     else 
    1696                                         $notExist = true; 
    1697                                 } 
    1698  
    1699                                 if($attendee['params']['PARTSTAT'] == 'TENTATIVE') 
    1700                                 { 
    1701                                     if($boicalendar->updateExParticipantState($ical['uid']['value'],$attendee['value'],'TENTATIVE',$attendee['params']['CN'])) 
    1702                                     { 
    1703                                         $content.= $this->functions->getLang('User').' '; 
    1704                                         if($attendee['params']['CN']) 
    1705                                             $content.= '<b>'.$attendee['params']['CN'].'</b> '; 
    1706                                         else 
    1707                                             $content.= '<b>'.$attendee['value'].'</b> '; 
    1708  
    1709                                         if($ical['description']['value']) 
    1710                                             $content.= ' <br /> '.str_replace('\n','<br />',nl2br($ical['description']['value'])); 
    1711                                         else 
    1712                                             $content.= $this->functions->getLang('provisionally accepted you event'); 
    1713                                     } 
    1714                                     else 
    1715                                          $notExist = true; 
    1716                                 } 
    1717  
    1718                                 if($attendee['params']['PARTSTAT'] == 'DECLINED') 
    1719                                 { 
    1720                                     if($boicalendar->updateExParticipantState($ical['uid']['value'],$attendee['value'],'DECLINED',$attendee['params']['CN'])) 
    1721                                     { 
    1722                                         $content.= $this->functions->getLang('User').' '; 
    1723                                         if($attendee['params']['CN']) 
    1724                                             $content.= '<b>'.$attendee['params']['CN'].'</b> '; 
    1725                                         else 
    1726                                             $content.= '<b>'.$attendee['value'].'</b> '; 
    1727  
    1728                                         if($ical['description']['value']) 
    1729                                             $content.= ' <br /> '.str_replace('\n','<br />',nl2br($ical['description']['value'])); 
    1730                                         else 
    1731                                             $content.= $this->functions->getLang('provisionally decline you event'); 
    1732                                     } 
    1733                                     else 
    1734                                         $notExist = true; 
    1735                                 } 
    1736                           } 
    1737                           if($notExist) 
    1738                             $content.= '<b><span style="color:red">'.$this->functions->getLang('This event does not exist on its agenda').'.</span></b>'; 
    1739                           $content.= '</span><br /><br />'; 
    1740  
    17411672                        break; 
    17421673 
Note: See TracChangeset for help on using the changeset viewer.