Ignore:
Timestamp:
07/31/12 16:01:37 (12 years ago)
Author:
cristiano
Message:

Ticket #2892 - Backport de relatórios do módulo Reports - Troca do mudulo reports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/reports/inc/class.uireports_usersgroups.inc.php

    r5934 r6920  
    6666 
    6767                        $grouplist = trim($_POST[setor]); 
    68                         $grouplist = trim(preg_replace('/-/','',$grouplist)); 
     68                        $grouplist = trim(ereg_replace("-","",$grouplist)); 
    6969 
    7070                        $setordn = trim($_POST[setordn]); 
     
    7878                        $pdf->Open(); 
    7979                        $pdf->AddPage(); 
    80                         $pdf->SetTitle('Relatório Gerado pelo Expresso Reports'); 
     80                        $pdf->SetTitle(lang('Report of institutional accounts of the Organization')); 
    8181 
    8282                        //Set font and colors 
     
    8989                        //Table header 
    9090                        $SubTitulo = lang('reports title10'); 
    91                         $SubTituloR = lang('report organization'); 
     91                        $SubTituloR = lang('Report Generated by Expresso Reports'); 
    9292                        $SubTitulo1 = $subtitulo1; 
    9393                        $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; 
     
    189189                        // Save query 
    190190                        $varorganizacao = explode(",",$contextsdn); 
    191                         $varorganizacao_nome = trim(strtoupper(preg_replace('/ou=/','',$varorganizacao[0]))); 
    192                         $varorganizacao_nome = trim(strtoupper(preg_replace('/DC=/','',$varorganizacao_nome))); 
     191                        $varorganizacao_nome = trim(strtoupper(ereg_replace("ou=","",$varorganizacao[0]))); 
     192                        $varorganizacao_nome = trim(strtoupper(ereg_replace("DC=","",$varorganizacao_nome))); 
    193193                        $user_logon = $GLOBALS['phpgw_info']['user'][account_lid]; 
    194194 
     
    232232                                                if ( trim(strtoupper($varorganizacao_nome)) !=  trim(strtoupper($sector))) 
    233233                                                { 
    234                                                         $sectorok = trim(strtoupper(preg_replace('/dc=/','',$sector))); 
    235                                                         $sectorok = trim(strtoupper(preg_replace('/dc=/','',$sectorok))); 
     234                                                        $sectorok = trim(strtoupper(ereg_replace("dc=","",$sector))); 
     235                                                        $sectorok = trim(strtoupper(ereg_replace("dc=","",$sectorok))); 
    236236                                                        $sector_options .= "<option value='" . $sectordn . "'>". $sectorok . "</option>"; 
    237237                                                } 
     
    298298                { 
    299299                        $grouplist = trim($_POST[setor]); 
    300                         $grouplist = trim(preg_replace('/-/','',$grouplist)); 
     300                        $grouplist = trim(ereg_replace("-","",$grouplist)); 
    301301                        $organizacao = trim($_POST[organizacao]); 
    302302                        $setordn = trim($_POST[setordn]); 
Note: See TracChangeset for help on using the changeset viewer.