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

    r3471 r3666  
    3131                function uireports_logon() 
    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->fpdf = CreateObject('reports1_0.uireports_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->fpdf = CreateObject('reports.uireports_fpdf'); // Class para PDF 
    3939                                                                         
    40                         $c = CreateObject('phpgwapi.config','reports1_0'); // cria o objeto relatorio no $c 
     40                        $c = CreateObject('phpgwapi.config','reports'); // cria o objeto relatorio no $c 
    4141                        $c->read_repository(); // na classe config do phpgwapi le os dados da tabela phpgw_config where relatorio, como passagem acima 
    4242                        $this->current_config = $c->config_data; // carrega os dados em do array no current_config 
     
    4646                                $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 
    4747                        } 
    48                         $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports1_0'); 
     48                        $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports'); 
    4949                } 
    5050                 
     
    6363                        if (!$this->functions->check_acl($account_lid,'list_users')) 
    6464                        { 
    65                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     65                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    6666                        } 
    6767 
     
    8282                        define('FPDF_FONTPATH','font/'); 
    8383                        $data_atual = date("d/m/Y");  
    84                         $titulo_system = $GLOBALS['phpgw_info']['apps']['reports1_0']['title'];                  
     84                        $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title'];                     
    8585 
    8686                        $pdf=new uireports_fpdf("L"); 
     
    100100                        $SubTituloR = lang('report of time without logging by Organization'); 
    101101                        $SubTitulo1 = $subtitulo1; 
    102                         $GLOBALS['phpgw_info']['apps']['reports1_0']['subtitle'] = $SubTituloR; 
     102                        $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; 
    103103                        $pdf->Cell(0,8,$SubTitulo,0,1,'C',0); 
    104104 
     
    255255                        if (!$this->functions->check_acl($account_lid,'list_sectors')) 
    256256                        { 
    257                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     257                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    258258                        } 
    259259 
     
    261261                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    262262                         
    263                         $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports1_0']['title'].' - '.lang('report of time without logging by Organization'); 
     263                        $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report of time without logging by Organization'); 
    264264                        $GLOBALS['phpgw']->common->phpgw_header(); 
    265265 
     
    273273                        $var = Array( 
    274274                                'th_bg'                                 => $GLOBALS['phpgw_info']['theme']['th_bg'], 
    275                                 'back_url'                              => $GLOBALS['phpgw']->link('/reports1_0/index.php'), 
     275                                'back_url'                              => $GLOBALS['phpgw']->link('/reports/index.php'), 
    276276                                'context_display'               => $context_display 
    277277                        ); 
     
    424424 
    425425                        $data_atual = date("d/m/Y");  
    426                         $titulo_system = $GLOBALS['phpgw_info']['apps']['reports1_0']['title']; 
     426                        $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 
    427427                         
    428428                        $account_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; 
     
    437437                        if (!$this->functions->check_acl($account_lid,'list_users')) 
    438438                        { 
    439                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     439                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    440440                        } 
    441441 
    442442                        unset($GLOBALS['phpgw_info']['flags']['noheader']); 
    443443                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    444                         $GLOBALS['phpgw_info']['flags']['app_header'] =  $GLOBALS['phpgw_info']['apps']['reports1_0']['title'].' - '.lang('report user'); 
     444                        $GLOBALS['phpgw_info']['flags']['app_header'] =  $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report user'); 
    445445                        $GLOBALS['phpgw']->common->phpgw_header(); 
    446446 
     
    486486                                if ($vnumacesso==0){ 
    487487                                        //url do paginador  
    488                                         $url = '/index.php?menuaction=reports1_0.uireports_logon.report_logon_group_setor_print'; 
     488                                        $url = '/index.php?menuaction=reports.uireports_logon.report_logon_group_setor_print'; 
    489489         
    490490                                        // **** Grupo de paginas **** 
     
    697697                                // ******** caso não for zero não vai paginar ***************** 
    698698                                        //url do paginador  
    699                                         $url = '/index.php?menuaction=reports1_0.uireports_logon.report_logon_group_setor_print'; 
     699                                        $url = '/index.php?menuaction=reports.uireports_logon.report_logon_group_setor_print'; 
    700700 
    701701                                        // conta total dos registros 
     
    863863                        if ((!$this->functions->check_acl($manager_account_lid,'edit_users')) && (!$this->functions->check_acl($manager_account_lid,'change_users_password'))) 
    864864                        { 
    865                                 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports1_0/inc/access_denied.php')); 
     865                                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 
    866866                        } 
    867867 
     
    870870                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    871871 
    872                         $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports1_0']['title'].' - '.lang('Access Log'); 
     872                        $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('Access Log'); 
    873873                        $GLOBALS['phpgw']->common->phpgw_header(); 
    874874 
     
    909909                                'th_bg'                 => $GLOBALS['phpgw_info']['theme']['th_bg'], 
    910910                                'nome_usuario'  => $nome_usuario,                                
    911                                 'back_url'              =>  "<form name='formlog' method='POST' action='../index.php?menuaction=reports1_0.uireports_logon.report_logon_group_setor_print'> 
     911                                'back_url'              =>  "<form name='formlog' method='POST' action='../index.php?menuaction=reports.uireports_logon.report_logon_group_setor_print'> 
    912912                                <input type='hidden' name='setor' value='$grouplist'> 
    913913                                <input type='hidden' name='organizacao' value='$organizacao'> 
Note: See TracChangeset for help on using the changeset viewer.