Changeset 3666 for branches/2.2/reports1_0/inc/class.uireports_cota.inc.php
- Timestamp:
- 01/07/11 15:42:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/reports1_0/inc/class.uireports_cota.inc.php
r3471 r3666 31 31 function uireports_cota() 32 32 { 33 $this->user = CreateObject('reports 1_0.user');33 $this->user = CreateObject('reports.user'); 34 34 $this->nextmatchs = CreateObject('phpgwapi.nextmatchs'); 35 $this->functions = CreateObject('reports 1_0.functions');36 $this->ldap_functions = CreateObject('reports 1_0.ldap_functions');37 $this->db_functions = CreateObject('reports 1_0.db_functions');38 $this->imap_functions = CreateObject('reports 1_0.imap_functions');39 $this->fpdf = CreateObject('reports 1_0.uireports_fpdf'); // Class para PDF40 // $this->fpdf = CreateObject('reports 1_0.fpdf'); // Class para PDF35 $this->functions = CreateObject('reports.functions'); 36 $this->ldap_functions = CreateObject('reports.ldap_functions'); 37 $this->db_functions = CreateObject('reports.db_functions'); 38 $this->imap_functions = CreateObject('reports.imap_functions'); 39 $this->fpdf = CreateObject('reports.uireports_fpdf'); // Class para PDF 40 // $this->fpdf = CreateObject('reports.fpdf'); // Class para PDF 41 41 42 $c = CreateObject('phpgwapi.config','reports 1_0'); // cria o objeto relatorio no $c42 $c = CreateObject('phpgwapi.config','reports'); // cria o objeto relatorio no $c 43 43 $c->read_repository(); // na classe config do phpgwapi le os dados da tabela phpgw_config where relatorio, como passagem acima 44 44 $this->current_config = $c->config_data; // carrega os dados em do array no current_config … … 48 48 $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 49 49 } 50 $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports 1_0');50 $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports'); 51 51 } 52 52 … … 76 76 if (!$this->functions->check_acl($account_lid,'list_sectors')) 77 77 { 78 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));78 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 79 79 } 80 80 … … 82 82 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 83 83 84 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'].' - '.lang('report cota organization');84 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report cota organization'); 85 85 $GLOBALS['phpgw']->common->phpgw_header(); 86 86 … … 94 94 $var = Array( 95 95 'th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'], 96 'back_url' => $GLOBALS['phpgw']->link('/reports 1_0/index.php'),96 'back_url' => $GLOBALS['phpgw']->link('/reports/index.php'), 97 97 'context_display' => $context_display 98 98 ); … … 238 238 239 239 $data_atual = date("d/m/Y"); 240 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'];240 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 241 241 242 242 $account_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; … … 251 251 if (!$this->functions->check_acl($account_lid,'list_users')) 252 252 { 253 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));253 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 254 254 } 255 255 256 256 unset($GLOBALS['phpgw_info']['flags']['noheader']); 257 257 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 258 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'].' - '.lang('report user');258 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report user'); 259 259 $GLOBALS['phpgw']->common->phpgw_header(); 260 260 … … 299 299 { 300 300 //url do paginador 301 $url = '/index.php?menuaction=reports 1_0.uireports_cota.report_cota_group_setor_print';301 $url = '/index.php?menuaction=reports.uireports_cota.report_cota_group_setor_print'; 302 302 303 303 // **** Grupo de paginas **** … … 522 522 if (!$this->functions->check_acl($account_lid,'list_users')) 523 523 { 524 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));524 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 525 525 } 526 526 … … 533 533 define('FPDF_FONTPATH','font/'); 534 534 $data_atual = date("d/m/Y"); 535 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'];535 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 536 536 537 537 $pdf=new uireports_fpdf("L"); … … 551 551 $SubTituloR = lang('report cota organization'); 552 552 $SubTitulo1 = $subtitulo1; 553 $GLOBALS['phpgw_info']['apps']['reports 1_0']['subtitle'] = $SubTituloR;553 $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; 554 554 $pdf->Cell(0,8,$SubTitulo,0,1,'C',0); 555 555
Note: See TracChangeset
for help on using the changeset viewer.