Ignore:
Timestamp:
03/16/09 11:15:36 (15 years ago)
Author:
niltonneto
Message:

Adaptação na classe para ser usada no módulo ExpressoCalendar? (nova Agenda). Tal modificação não

interfere no funcionamento do módulo atual.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.uicalendar.inc.php

    r663 r703  
    362362                                $_SESSION['calendar']['cals'] = $this->bo->list_cals(); 
    363363 
    364                         if($this->bo->printer_friendly) 
     364                        if($this->bo->printer_friendly || $_GET['plain'] == 'True') 
    365365                        {        
    366366                                $new_body = '<html>'."\n" 
     
    685685                function year() 
    686686                { 
    687                         if($this->bo->printer_friendly) 
    688                         { 
    689                                 $GLOBALS['phpgw_info']['flags']['nofooter'] = True; 
    690                         } 
    691                         echo $this->printer_friendly($this->get_year(),lang('Yearview')); 
    692                         $GLOBALS['phpgw']->common->phpgw_footer(); 
     687                        if ($_GET['plain'] == "True") 
     688                        { 
     689 
     690                                echo $this->printer_friendly($this->get_year(),lang('Yearview')); 
     691                        } 
     692                        else 
     693                        { 
     694 
     695                                if($this->bo->printer_friendly) 
     696                                { 
     697                                        $GLOBALS['phpgw_info']['flags']['nofooter'] = True; 
     698                                } 
     699                                echo $this->printer_friendly($this->get_year(),lang('Yearview')); 
     700                                $GLOBALS['phpgw']->common->phpgw_footer(); 
     701                        } 
    693702                } 
    694703 
     
    705714                        else 
    706715                        { 
    707  
    708716//NDEE: printer-friendly (year-view) 
    709717                                $print = '<body bgcolor="'.$this->theme['bg_color'].'">'; 
     
    45934601                                                                $combo_org = $this->get_organizations(trim(strtolower($context)),$user_context, $recursive); 
    45944602                                                                $footer_ext_participantes = lang("Tip: To search in the <b>Global Catalog</b>, type the <b>F9</b> key, like the ExpressoMail."); 
    4595                                                                 // Begin load array lang 
    4596                                                                 ob_start(); 
    4597                                                         @include($module_name.'/inc/load_lang.php'); 
    4598                                                         $load_lang_vars = ob_get_contents(); 
    4599                                                         ob_end_clean(); 
    4600                                                                 // End load array_lang 
    4601                                                                  
     4603 
     4604                                                                if ($param['plain'] != "True"){ 
     4605 
     4606                                                                        // Begin load array lang 
     4607                                                                        ob_start(); 
     4608                                                                        @include($module_name.'/inc/load_lang.php'); 
     4609                                                                        $load_lang_vars = ob_get_contents(); 
     4610                                                                        ob_end_clean(); 
     4611                                                                        // End load array_lang 
     4612                                                                } 
     4613 
    46024614                                                                $var['participants'] = array 
    46034615                                                                ( 
Note: See TracChangeset for help on using the changeset viewer.