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_users.inc.php

    r3472 r3666  
    3030                function uireports_users() 
    3131                { 
    32                         $this->user                     = CreateObject('reports1_0.user'); 
     32                        $this->user                     = CreateObject('reports.user'); 
    3333                        $this->nextmatchs       = CreateObject('phpgwapi.nextmatchs'); 
    34                         $this->functions        = CreateObject('reports1_0.functions'); 
    35                         $this->ldap_functions = CreateObject('reports1_0.ldap_functions'); 
    36                         $this->db_functions = CreateObject('reports1_0.db_functions'); 
    37                         $this->fpdf = CreateObject('reports1_0.uireports_fpdf'); // Class para PDF 
     34                        $this->functions        = CreateObject('reports.functions'); 
     35                        $this->ldap_functions = CreateObject('reports.ldap_functions'); 
     36                        $this->db_functions = CreateObject('reports.db_functions'); 
     37                        $this->fpdf = CreateObject('reports.uireports_fpdf'); // Class para PDF 
    3838                                                                         
    39                         $c = CreateObject('phpgwapi.config','reports1_0'); // cria o objeto relatorio no $c 
     39                        $c = CreateObject('phpgwapi.config','reports'); // cria o objeto relatorio no $c 
    4040                        $c->read_repository(); // na classe config do phpgwapi le os dados da tabela phpgw_config where relatorio, como passagem acima 
    4141                        $this->current_config = $c->config_data; // carrega os dados em do array no current_config 
     
    4545                                $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 
    4646                        } 
    47                         $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports1_0'); 
     47                        $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports'); 
    4848                } 
    4949                 
     
    6262                        if (!$this->functions->check_acl($account_lid,'list_users')) 
    6363                        { 
    64                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     64                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    6565                        } 
    6666 
     
    7373                        define('FPDF_FONTPATH','font/'); 
    7474                        $data_atual = date("d/m/Y");  
    75                         $titulo_system = $GLOBALS['phpgw_info']['apps']['reports1_0']['title'];                  
     75                        $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title'];                     
    7676 
    7777                        $pdf=new uireports_fpdf("L"); 
     
    9191                        $SubTituloR = lang('report organization'); 
    9292                        $SubTitulo1 = $subtitulo1; 
    93                         $GLOBALS['phpgw_info']['apps']['reports1_0']['subtitle'] = $SubTituloR; 
     93                        $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; 
    9494                        $pdf->Cell(0,8,$SubTitulo,0,1,'C',0); 
    9595 
     
    180180                        if (!$this->functions->check_acl($account_lid,'list_sectors')) 
    181181                        { 
    182                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     182                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    183183                        } 
    184184 
     
    186186                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    187187                         
    188                         $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports1_0']['title'].' - '.lang('report organization'); 
     188                        $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report organization'); 
    189189                        $GLOBALS['phpgw']->common->phpgw_header(); 
    190190 
     
    198198                        $var = Array( 
    199199                                'th_bg'                                 => $GLOBALS['phpgw_info']['theme']['th_bg'], 
    200                                 'back_url'                              => $GLOBALS['phpgw']->link('/reports1_0/index.php'), 
     200                                'back_url'                              => $GLOBALS['phpgw']->link('/reports/index.php'), 
    201201                                'context_display'               => $context_display 
    202202                        ); 
     
    341341 
    342342                        $data_atual = date("d/m/Y");  
    343                         $titulo_system = $GLOBALS['phpgw_info']['apps']['reports1_0']['title']; 
     343                        $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 
    344344                         
    345345                        $account_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
     
    354354                        if (!$this->functions->check_acl($account_lid,'list_users')) 
    355355                        { 
    356                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     356                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    357357                        } 
    358358 
    359359                        unset($GLOBALS['phpgw_info']['flags']['noheader']); 
    360360                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    361                         $GLOBALS['phpgw_info']['flags']['app_header'] =  $GLOBALS['phpgw_info']['apps']['reports1_0']['title'].' - '.lang('report user'); 
     361                        $GLOBALS['phpgw_info']['flags']['app_header'] =  $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report user'); 
    362362                        $GLOBALS['phpgw']->common->phpgw_header(); 
    363363 
     
    401401                        {  
    402402                                //url do paginador  
    403                                 $url = '/index.php?menuaction=reports1_0.uireports_users.report_users_group_setor_print'; 
     403                                $url = '/index.php?menuaction=reports.uireports_users.report_users_group_setor_print'; 
    404404 
    405405                                // **** Grupo de paginas **** 
Note: See TracChangeset for help on using the changeset viewer.