Changeset 5110


Ignore:
Timestamp:
10/10/11 18:43:03 (12 years ago)
Author:
alexandrecorreia
Message:

Ticket #2279 - Corrigido bug de Exportar todos contendo agenda compartilhada

Location:
branches/2.2/calendar
Files:
1 added
2 edited

Legend:

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

    r4700 r5110  
    11291129                function export_all() 
    11301130                { 
     1131                        //UserCurrent 
     1132                        $exportUserId = $_POST['exportUserId']; 
     1133                         
    11311134                        $temp_path = $GLOBALS['phpgw_info']['server']['temp_dir'] . SEP; 
    11321135                        srand((double)microtime()*1000000); 
     
    11361139                        $attach_fd = fopen($filename,"w+"); 
    11371140                        $event_ids = $this->bo->search_keywords($_POST['keywords']); 
     1141                         
    11381142                        foreach($event_ids as $key => $id) 
    11391143                        { 
    11401144                                $event[$key]=$this->bo->read_entry($id); 
    11411145                        } 
     1146                         
     1147                        if( is_array($event) ) 
     1148                        { 
     1149                                foreach( $event as $key => $ev ) 
     1150                                { 
     1151                                        if( $ev['owner'] != $exportUserId ) 
     1152                                                unset( $event[$key] ); 
     1153                                } 
     1154                        }        
     1155                         
    11421156                        include_once('class.bocalendar.inc.php'); 
    11431157                        $cal = new bocalendar; 
     
    31273141 
    31283142                function footer() 
    3129                 { 
     3143                {        
    31303144                        $menuaction = $_GET['menuaction']; 
    31313145                        list(,,$method) = explode('.',$menuaction); 
     
    31413155                                Array( 
    31423156                                        'footer'        => 'footer.tpl', 
    3143                                         'form_button'   => 'form_button_script.tpl' 
     3157                                        'form_button_1' => 'form_button_script.tpl', 
     3158                                        'form_button_2' => 'form_button_script_2.tpl' 
    31443159                                ) 
    31453160                        ); 
     
    33393354                                'action_extra_field'    => '' 
    33403355                        ); 
    3341                         $this->output_template_array($p,'b_row','form_button',$var); 
     3356                        $this->output_template_array($p,'b_row','form_button_1',$var); 
    33423357                         
    33433358                        $var = Array( 
    33443359                                'submit_button'         => lang('Submit'), 
    3345                                 'action_url'    => $this->page($method,''), 
     3360                                'action_url'            => $this->page($method,''), 
     3361                                'onclick_export'        => "onclick='getUserSelect()';", 
    33463362                                'action_url_button'     => $GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.export_all'), 
    33473363                                'action_text_button'    => lang('Export all'), 
     
    33493365                                'action_extra_field'    => '' 
    33503366                        ); 
    3351                         $this->output_template_array($p,'b_row2','form_button',$var); 
     3367                        $this->output_template_array($p,'b_row2','form_button_2',$var); 
    33523368                                         
    33533369                        $p->parse('table_row','blank_row',True); 
  • branches/2.2/calendar/templates/default/form_button_dropdown.tpl

    r663 r5110  
    22<td width="{form_width}%" align="center" valign="top" style="padding-top:16px"> 
    33        <span style="font-size:10px"><b>{title}:</b> 
    4     {hidden_vars}     
    5     <select name="{form_name}" onchange="document.{form_name}form.submit()"> 
     4    {hidden_vars} 
     5    <select {id_form_select} name="{form_name}" onchange="document.{form_name}form.submit()"> 
    66                {form_options} 
    77        </select> 
Note: See TracChangeset for help on using the changeset viewer.