Changeset 7228 for branches/2.4/reports/inc/class.uireports_cota.inc.php
- Timestamp:
- 09/17/12 14:30:47 (12 years ago)
- Location:
- branches/2.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4
- Property svn:mergeinfo changed
-
branches/2.4/reports/inc/class.uireports_cota.inc.php
r5934 r7228 38 38 $this->imap_functions = CreateObject('reports.imap_functions'); 39 39 $this->fpdf = CreateObject('reports.uireports_fpdf'); // Class para PDF 40 // $this->fpdf = CreateObject('reports.fpdf'); // Class para PDF41 40 42 41 $c = CreateObject('phpgwapi.config','reports'); // cria o objeto relatorio no $c … … 101 100 // Save query 102 101 $varorganizacao = explode(",",$contextsdn); 103 $varorganizacao_nome = trim(strtoupper( preg_replace('/ou=/','',$varorganizacao[0])));104 $varorganizacao_nome = trim(strtoupper( preg_replace('/DC=/','',$varorganizacao_nome)));102 $varorganizacao_nome = trim(strtoupper(ereg_replace("ou=","",$varorganizacao[0]))); 103 $varorganizacao_nome = trim(strtoupper(ereg_replace("DC=","",$varorganizacao_nome))); 105 104 $user_logon = $GLOBALS['phpgw_info']['user'][account_lid]; 106 105 … … 137 136 if ( trim(strtoupper($varorganizacao_nome)) != trim(strtoupper($sector))) 138 137 { 139 $sectorok = trim(strtoupper( preg_replace('/dc=/',"",$sector)));140 $sectorok = trim(strtoupper( preg_replace('/DC=/',"",$sectorok)));138 $sectorok = trim(strtoupper(ereg_replace("dc=","",$sector))); 139 $sectorok = trim(strtoupper(ereg_replace("DC=","",$sectorok))); 141 140 $sector_options .= "<option value='" . $sectordn . "'>". $sectorok . "</option>"; 142 141 } … … 157 156 { 158 157 // Conta a quantidade de Usuario do grupo raiz 159 $account_user = $this->functions->get_count_ user_sector($contextsdn,$contexts,0);158 $account_user = $this->functions->get_count_cota_sector($contextsdn,$contexts,0); 160 159 $totaluser = "(".$account_user.")"; 161 160 … … 205 204 { 206 205 $grouplist = trim($_POST[setor]); 207 $grouplist = trim( preg_replace('/-/','',$grouplist));206 $grouplist = trim(ereg_replace("-","",$grouplist)); 208 207 $organizacao = trim($_POST[organizacao]); 209 208 $setordn = trim($_POST[setordn]); … … 277 276 278 277 // verifica se exixte usuarios no LDAP 279 $account_info = $this->functions->get_list_ user_sector ($setordn,$contexts,0);278 $account_info = $this->functions->get_list_cota_sector ($setordn,$contexts,0); 280 279 281 280 if (!count($account_info)) … … 357 356 358 357 // ********** busca no LDAP as informação paginada e imprime **************** 359 $paginas = $this->functions->Paginate_ user('accounts',$setordn,$contexts,'cn','asc',$npag,$numpage);358 $paginas = $this->functions->Paginate_cota('accounts',$setordn,$contexts,'cn','asc',$npag,$numpage); 360 359 361 360 $tmpp = array(); … … 418 417 'row_cn' => $accountr['account_cn'], 419 418 'percent_cota' => $percent_cota_c, 420 'row_status' => $accountr['account_status'] == 'active' ? '<font color="#0033FF"> Ativado</font> ' : '<font color="#FF0000">Desativado</font>',421 'row_mail' => (!$accountr['account_mail']?'<font color=red> Sem E-mail</font>':$accountr['account_mail'])419 'row_status' => $accountr['account_status'] == 'active' ? '<font color="#0033FF">'.lang('Activated').'</font> ' : '<font color="#FF0000">'.lang('Disabled').'</font>', 420 'row_mail' => (!$accountr['account_mail']?'<font color=red>'.lang('Without E-mail').'</font>':$accountr['account_mail']) 422 421 ); 423 422 … … 514 513 515 514 $grouplist = trim($_POST[setor]); 516 $grouplist = trim( preg_replace('/-/','',$grouplist));515 $grouplist = trim(ereg_replace("-","",$grouplist)); 517 516 518 517 $setordn = trim($_POST[setordn]); … … 526 525 $pdf->Open(); 527 526 $pdf->AddPage(); 528 $pdf->SetTitle('Relatório Gerado pelo Expresso Reports');529 527 530 528 //Set font and colors … … 537 535 //Table header 538 536 $SubTitulo = lang('reports title4'); 539 $SubTituloR = lang(' report cota organization');537 $SubTituloR = lang('Report Generated by Expresso Reports'); 540 538 $SubTitulo1 = $subtitulo1; 541 539 $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; … … 550 548 $pdf->SetLineWidth(.3); 551 549 552 // $pdf->Cell(0,10,$SubTitulo1,0,1,'C',0);553 550 $pdf->MultiCell(0,3,$SubTitulo1,0,'C',0); 554 551 … … 558 555 $pdf->Cell(0,5,$titulo_system,0,1,'R',0); 559 556 560 $account_info = $this->functions->get_list_ user_sector($setordn,$contexts,0);557 $account_info = $this->functions->get_list_cota_sector($setordn,$contexts,0); 561 558 562 559 if (count($account_info)) … … 596 593 $account_lid = $account['account_lid']; 597 594 $row_cn = $account['account_cn']; 598 $row_mail = (!$account['account_mail']?'<font color=red> Sem E-mail</font>':$account['account_mail']);595 $row_mail = (!$account['account_mail']?'<font color=red>'.lang('Without E-mail').'</font>':$account['account_mail']); 599 596 $row_mailquota = $user_mailquota; 600 597 $row_mailquota_used = $user_mailquota_used; 601 598 $row_percent_cota = $percent_cota; 602 $row_status = $account['account_accountstatus'] == 'active' ? 'Ativado' : 'Desativado';599 $row_status = $account['account_accountstatus'] == 'active' ? lang('Activated') : lang('Disabled'); 603 600 604 601 … … 656 653 function get_user_info($userdn,$usercontexts,$usersizelimit) 657 654 { 658 // $user_info = $this->functions->Paginate_user('accounts',$setordn,$contexts,'cn','asc',$npag,$numpage);659 655 $user_info_imap = $this->imap_functions->get_user_info($user_info_ldap['uid']); 660 656
Note: See TracChangeset
for help on using the changeset viewer.