Ignore:
Timestamp:
01/07/11 15:42:51 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1480 - Modulo de relatorios renomeado para reports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/reports1_0/inc/class.uireports_cota.inc.php

    r3471 r3666  
    3131                function uireports_cota() 
    3232                { 
    33                         $this->user                     = CreateObject('reports1_0.user'); 
     33                        $this->user                     = CreateObject('reports.user'); 
    3434                        $this->nextmatchs       = CreateObject('phpgwapi.nextmatchs'); 
    35                         $this->functions        = CreateObject('reports1_0.functions'); 
    36                         $this->ldap_functions = CreateObject('reports1_0.ldap_functions'); 
    37                         $this->db_functions = CreateObject('reports1_0.db_functions'); 
    38                         $this->imap_functions = CreateObject('reports1_0.imap_functions'); 
    39                         $this->fpdf = CreateObject('reports1_0.uireports_fpdf'); // Class para PDF 
    40 //                      $this->fpdf = CreateObject('reports1_0.fpdf'); // Class para PDF 
     35                        $this->functions        = CreateObject('reports.functions'); 
     36                        $this->ldap_functions = CreateObject('reports.ldap_functions'); 
     37                        $this->db_functions = CreateObject('reports.db_functions'); 
     38                        $this->imap_functions = CreateObject('reports.imap_functions'); 
     39                        $this->fpdf = CreateObject('reports.uireports_fpdf'); // Class para PDF 
     40//                      $this->fpdf = CreateObject('reports.fpdf'); // Class para PDF 
    4141                                                 
    42                         $c = CreateObject('phpgwapi.config','reports1_0'); // cria o objeto relatorio no $c 
     42                        $c = CreateObject('phpgwapi.config','reports'); // cria o objeto relatorio no $c 
    4343                        $c->read_repository(); // na classe config do phpgwapi le os dados da tabela phpgw_config where relatorio, como passagem acima 
    4444                        $this->current_config = $c->config_data; // carrega os dados em do array no current_config 
     
    4848                                $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 
    4949                        } 
    50                         $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports1_0'); 
     50                        $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports'); 
    5151                } 
    5252 
     
    7676                        if (!$this->functions->check_acl($account_lid,'list_sectors')) 
    7777                        { 
    78                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     78                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    7979                        } 
    8080 
     
    8282                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    8383                         
    84                         $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports1_0']['title'].' - '.lang('report cota organization'); 
     84                        $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report cota organization'); 
    8585                        $GLOBALS['phpgw']->common->phpgw_header(); 
    8686 
     
    9494                        $var = Array( 
    9595                                'th_bg'                                 => $GLOBALS['phpgw_info']['theme']['th_bg'], 
    96                                 'back_url'                              => $GLOBALS['phpgw']->link('/reports1_0/index.php'), 
     96                                'back_url'                              => $GLOBALS['phpgw']->link('/reports/index.php'), 
    9797                                'context_display'               => $context_display 
    9898                        ); 
     
    238238 
    239239                        $data_atual = date("d/m/Y");  
    240                         $titulo_system = $GLOBALS['phpgw_info']['apps']['reports1_0']['title']; 
     240                        $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 
    241241                         
    242242                        $account_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
     
    251251                        if (!$this->functions->check_acl($account_lid,'list_users')) 
    252252                        { 
    253                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     253                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    254254                        } 
    255255 
    256256                        unset($GLOBALS['phpgw_info']['flags']['noheader']); 
    257257                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    258                         $GLOBALS['phpgw_info']['flags']['app_header'] =  $GLOBALS['phpgw_info']['apps']['reports1_0']['title'].' - '.lang('report user'); 
     258                        $GLOBALS['phpgw_info']['flags']['app_header'] =  $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report user'); 
    259259                        $GLOBALS['phpgw']->common->phpgw_header(); 
    260260 
     
    299299                        {  
    300300                                //url do paginador  
    301                                 $url = '/index.php?menuaction=reports1_0.uireports_cota.report_cota_group_setor_print'; 
     301                                $url = '/index.php?menuaction=reports.uireports_cota.report_cota_group_setor_print'; 
    302302 
    303303                                // **** Grupo de paginas **** 
     
    522522                        if (!$this->functions->check_acl($account_lid,'list_users')) 
    523523                        { 
    524                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     524                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    525525                        } 
    526526 
     
    533533                        define('FPDF_FONTPATH','font/'); 
    534534                        $data_atual = date("d/m/Y");  
    535                         $titulo_system = $GLOBALS['phpgw_info']['apps']['reports1_0']['title'];                  
     535                        $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title'];                     
    536536 
    537537                        $pdf=new uireports_fpdf("L"); 
     
    551551                        $SubTituloR = lang('report cota organization'); 
    552552                        $SubTitulo1 = $subtitulo1; 
    553                         $GLOBALS['phpgw_info']['apps']['reports1_0']['subtitle'] = $SubTituloR; 
     553                        $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; 
    554554                        $pdf->Cell(0,8,$SubTitulo,0,1,'C',0); 
    555555 
Note: See TracChangeset for help on using the changeset viewer.