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

    r3471 r3666  
    3030                function uireports_usersgroups() 
    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_groups')) 
    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(); 
     
    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 
     
    158158                        if (!$this->functions->check_acl($account_lid,'list_sectors')) 
    159159                        { 
    160                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     160                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    161161                        } 
    162162 
     
    164164                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    165165                         
    166                         $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports1_0']['title'].' - '.lang('report usersgroups'); 
     166                        $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report usersgroups'); 
    167167                        $GLOBALS['phpgw']->common->phpgw_header(); 
    168168 
     
    176176                        $var = Array( 
    177177                                'th_bg'                                 => $GLOBALS['phpgw_info']['theme']['th_bg'], 
    178                                 'back_url'                              => $GLOBALS['phpgw']->link('/reports1_0/index.php'), 
     178                                'back_url'                              => $GLOBALS['phpgw']->link('/reports/index.php'), 
    179179                                'context_display'               => $context_display 
    180180                        ); 
     
    319319 
    320320                        $data_atual = date("d/m/Y");  
    321                         $titulo_system = $GLOBALS['phpgw_info']['apps']['reports1_0']['title']; 
     321                        $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 
    322322                         
    323323                        $account_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
     
    332332                        if (!$this->functions->check_acl($account_lid,'list_groups')) 
    333333                        { 
    334                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     334                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    335335                        } 
    336336 
    337337                        unset($GLOBALS['phpgw_info']['flags']['noheader']); 
    338338                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    339                         $GLOBALS['phpgw_info']['flags']['app_header'] =  $GLOBALS['phpgw_info']['apps']['reports1_0']['title'].' - '.lang('report usersgroups'); 
     339                        $GLOBALS['phpgw_info']['flags']['app_header'] =  $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report usersgroups'); 
    340340                        $GLOBALS['phpgw']->common->phpgw_header(); 
    341341 
     
    379379                        {  
    380380                                //url do paginador  
    381                                 $url = '/index.php?menuaction=reports1_0.uireports_usersgroups.report_usersgroups_print'; 
     381                                $url = '/index.php?menuaction=reports.uireports_usersgroups.report_usersgroups_print'; 
    382382 
    383383                                // **** Grupo de paginas **** 
Note: See TracChangeset for help on using the changeset viewer.