Changeset 6920 for trunk/reports/inc/class.uireports_users.inc.php
- Timestamp:
- 07/31/12 16:01:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reports/inc/class.uireports_users.inc.php
r5934 r6920 66 66 67 67 $grouplist = trim($_POST[setor]); 68 $grouplist = trim( preg_replace('/-/','',$grouplist));68 $grouplist = trim(ereg_replace("-","",$grouplist)); 69 69 70 70 $setordn = trim($_POST[setordn]); … … 78 78 $pdf->Open(); 79 79 $pdf->AddPage(); 80 $pdf->SetTitle( 'Relatório Gerado pelo Expresso Reports');80 $pdf->SetTitle(lang('Report Generated by Expresso Reports')); 81 81 82 82 //Set font and colors … … 89 89 //Table header 90 90 $SubTitulo = lang('reports title2'); 91 $SubTituloR = lang(' report organization');91 $SubTituloR = lang('Report Generated by Expresso Reports'); 92 92 $SubTitulo1 = $subtitulo1; 93 93 $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; 94 94 $pdf->Cell(0,8,$SubTitulo,0,1,'C',0); 95 96 95 97 96 //Set font and colors … … 127 126 $row_loginid = $account['account_lid']; 128 127 $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']); 130 129 $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'); 132 131 $pdf->Cell(55,5,$row_loginid,0,0,'L',0); 133 132 $pdf->Cell(80,5,$row_cn,0,0,'L',0); 134 133 $pdf->Cell(80,5,$row_mail,0,0,'L',0); 135 134 $pdf->Cell(35,5,$row_phone,0,0,'L',0); 136 if ($row_status == 'Ativado')135 if ($row_status == lang('Activated')) 137 136 { 138 137 //Restaura cor fonte … … 211 210 // Save query 212 211 $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))); 215 214 $user_logon = $GLOBALS['phpgw_info']['user'][account_lid]; 216 215 … … 254 253 if ( trim(strtoupper($varorganizacao_nome)) != trim(strtoupper($sector))) 255 254 { 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))); 258 257 $sector_options .= "<option value='" . $sectordn . "'>". $sectorok . "</option>"; 259 258 } … … 320 319 { 321 320 $grouplist = trim($_POST[setor]); 322 $grouplist = trim( preg_replace('/-/','',$grouplist));321 $grouplist = trim(ereg_replace("-","",$grouplist)); 323 322 $organizacao = trim($_POST[organizacao]); 324 323 $setordn = trim($_POST[setordn]); … … 499 498 'row_loginid' => $accountr['account_lid'], 500 499 '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>', 502 501 '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']) 504 503 ); 505 504
Note: See TracChangeset
for help on using the changeset viewer.