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_users.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 Generated by Expresso Reports')); 
    8181 
    8282                        //Set font and colors 
     
    8989                        //Table header 
    9090                        $SubTitulo = lang('reports title2'); 
    91                         $SubTituloR = lang('report organization'); 
     91                        $SubTituloR = lang('Report Generated by Expresso Reports'); 
    9292                        $SubTitulo1 = $subtitulo1; 
    9393                        $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; 
    9494                        $pdf->Cell(0,8,$SubTitulo,0,1,'C',0); 
    95  
    9695 
    9796                        //Set font and colors 
     
    127126                                                $row_loginid = $account['account_lid']; 
    128127                                                $row_cn = $account['account_cn']; 
    129                                                 $row_mail = (!$account['account_mail'] ? '<font color=red>Sem E-mail</font>' : $account['account_mail']); 
     128                                                $row_mail = (!$account['account_mail'] ? '<font color=red>'.lang('Without E-mail').'</font>' : $account['account_mail']); 
    130129                                                $row_phone = (!$account['account_phone'] ? '-' : $account['account_phone']); 
    131                                                 $row_status = $account['account_accountstatus'] == 'active' ? 'Ativado' : 'Desativado'; 
     130                                                $row_status = $account['account_accountstatus'] == 'active' ? lang('Activated') : lang('Disabled'); 
    132131                                                $pdf->Cell(55,5,$row_loginid,0,0,'L',0); 
    133132                                                $pdf->Cell(80,5,$row_cn,0,0,'L',0); 
    134133                                                $pdf->Cell(80,5,$row_mail,0,0,'L',0); 
    135134                                                $pdf->Cell(35,5,$row_phone,0,0,'L',0); 
    136                                         if ($row_status == 'Ativado') 
     135                                        if ($row_status == lang('Activated')) 
    137136                                        { 
    138137                                                //Restaura cor fonte 
     
    211210                        // Save query 
    212211                        $varorganizacao = explode(",",$contextsdn); 
    213                         $varorganizacao_nome = trim(strtoupper(preg_replace('/ou=/','',$varorganizacao[0]))); 
    214                         $varorganizacao_nome = trim(strtoupper(preg_replace('/DC=/','',$varorganizacao_nome))); 
     212                        $varorganizacao_nome = trim(strtoupper(ereg_replace("ou=","",$varorganizacao[0]))); 
     213                        $varorganizacao_nome = trim(strtoupper(ereg_replace("DC=","",$varorganizacao_nome))); 
    215214                        $user_logon = $GLOBALS['phpgw_info']['user'][account_lid]; 
    216215 
     
    254253                                                if ( trim(strtoupper($varorganizacao_nome)) !=  trim(strtoupper($sector))) 
    255254                                                { 
    256                                                         $sectorok = trim(strtoupper(preg_replace('/dc=/','',$sector))); 
    257                                                         $sectorok = trim(strtoupper(preg_replace('/dc=/','',$sectorok))); 
     255                                                        $sectorok = trim(strtoupper(ereg_replace("dc=","",$sector))); 
     256                                                        $sectorok = trim(strtoupper(ereg_replace("dc=","",$sectorok))); 
    258257                                                        $sector_options .= "<option value='" . $sectordn . "'>". $sectorok . "</option>"; 
    259258                                                } 
     
    320319                { 
    321320                        $grouplist = trim($_POST[setor]); 
    322                         $grouplist = trim(preg_replace('/-/','',$grouplist)); 
     321                        $grouplist = trim(ereg_replace("-","",$grouplist)); 
    323322                        $organizacao = trim($_POST[organizacao]); 
    324323                        $setordn = trim($_POST[setordn]); 
     
    499498                                                'row_loginid'   => $accountr['account_lid'], 
    500499                                                'row_cn'                => $accountr['account_cn'], 
    501                                                 'row_status'    => $accountr['account_status'] == 'active' ? '<font color="#0033FF">Ativado</font> ' : '<font color="#FF0000">Desativado</font>', 
     500                                                'row_status'    => $accountr['account_status'] == 'active' ? '<font color="#0033FF">'.lang('Activated').'</font> ' : '<font color="#FF0000">'.lang('Disabled').'</font>', 
    502501                                                'row_phone'             => (!$accountr['account_phone'] ? '-' : $accountr['account_phone']), 
    503                                                 'row_mail'              => (!$accountr['account_mail'] ? '<font color=red>Sem E-mail</font>' : $accountr['account_mail']) 
     502                                                'row_mail'      => (!$accountr['account_mail'] ? '<font color=red>'.lang('Without E-mail').'</font>' : $accountr['account_mail']) 
    504503                                        ); 
    505504                                         
Note: See TracChangeset for help on using the changeset viewer.