Ignore:
Timestamp:
05/04/11 17:11:07 (13 years ago)
Author:
brunocosta
Message:

Ticket #1802 - Opção nos agendamentos para enviar notificações como dono.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php

    r4195 r4217  
    60156015                        } 
    60166016 
    6017 // Reminder 
     6017                        // Reminder 
    60186018                        // The user must use "Alarm Management" to change/modify an alarm 
    60196019                        // so only display the email reminder fields if this is a new event 
     
    60976097                                'data'  => '<select name="cal[recur_type]">'."\n".$str.'</select>'."\n" 
    60986098                        ); 
     6099 
     6100 
     6101                        $preferences = CreateObject('phpgwapi.preferences',(int)$this->owner); 
     6102                       $selected_creator = $selected_owner = ''; 
     6103                       if($event['notifications_owner'] == 1) 
     6104                           $selected_owner = ' selected'; 
     6105                       else 
     6106                           $selected_creator = ' selected'; 
     6107                       
     6108                       $option = '<option value="0" '.$selected_creator.' >'.$GLOBALS['phpgw']->common->grab_owner_name((int)$_SESSION['phpgw_session']['account_id']).'</option>'; 
     6109                       if($_SESSION['phpgw_session']['account_id'] != $event['owner']){ 
     6110                           $option .= '<option value="1" '.$selected_owner.' >'.$GLOBALS['phpgw']->common->grab_owner_name((int)$event['owner']).'</option>'; 
     6111                       } 
     6112 
     6113 
     6114                       $var['notifications_owner'] = Array( 
     6115                                'field' => lang('Send notificatios as'), 
     6116                                'data'  => '<select name="cal[notifications_owner]" >'.$option.'</select>' 
     6117                        ); 
     6118 
    60996119 
    61006120                        if($event['recur_enddate']['year'] != 0 && $event['recur_enddate']['month'] != 0 && $event['recur_enddate']['mday'] != 0) 
Note: See TracChangeset for help on using the changeset viewer.