- 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_users.inc.php
r3472 r3666 30 30 function uireports_users() 31 31 { 32 $this->user = CreateObject('reports 1_0.user');32 $this->user = CreateObject('reports.user'); 33 33 $this->nextmatchs = CreateObject('phpgwapi.nextmatchs'); 34 $this->functions = CreateObject('reports 1_0.functions');35 $this->ldap_functions = CreateObject('reports 1_0.ldap_functions');36 $this->db_functions = CreateObject('reports 1_0.db_functions');37 $this->fpdf = CreateObject('reports 1_0.uireports_fpdf'); // Class para PDF34 $this->functions = CreateObject('reports.functions'); 35 $this->ldap_functions = CreateObject('reports.ldap_functions'); 36 $this->db_functions = CreateObject('reports.db_functions'); 37 $this->fpdf = CreateObject('reports.uireports_fpdf'); // Class para PDF 38 38 39 $c = CreateObject('phpgwapi.config','reports 1_0'); // cria o objeto relatorio no $c39 $c = CreateObject('phpgwapi.config','reports'); // cria o objeto relatorio no $c 40 40 $c->read_repository(); // na classe config do phpgwapi le os dados da tabela phpgw_config where relatorio, como passagem acima 41 41 $this->current_config = $c->config_data; // carrega os dados em do array no current_config … … 45 45 $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 46 46 } 47 $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports 1_0');47 $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports'); 48 48 } 49 49 … … 62 62 if (!$this->functions->check_acl($account_lid,'list_users')) 63 63 { 64 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));64 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 65 65 } 66 66 … … 73 73 define('FPDF_FONTPATH','font/'); 74 74 $data_atual = date("d/m/Y"); 75 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'];75 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 76 76 77 77 $pdf=new uireports_fpdf("L"); … … 91 91 $SubTituloR = lang('report organization'); 92 92 $SubTitulo1 = $subtitulo1; 93 $GLOBALS['phpgw_info']['apps']['reports 1_0']['subtitle'] = $SubTituloR;93 $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; 94 94 $pdf->Cell(0,8,$SubTitulo,0,1,'C',0); 95 95 … … 180 180 if (!$this->functions->check_acl($account_lid,'list_sectors')) 181 181 { 182 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));182 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 183 183 } 184 184 … … 186 186 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 187 187 188 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'].' - '.lang('report organization');188 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report organization'); 189 189 $GLOBALS['phpgw']->common->phpgw_header(); 190 190 … … 198 198 $var = Array( 199 199 'th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'], 200 'back_url' => $GLOBALS['phpgw']->link('/reports 1_0/index.php'),200 'back_url' => $GLOBALS['phpgw']->link('/reports/index.php'), 201 201 'context_display' => $context_display 202 202 ); … … 341 341 342 342 $data_atual = date("d/m/Y"); 343 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'];343 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 344 344 345 345 $account_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; … … 354 354 if (!$this->functions->check_acl($account_lid,'list_users')) 355 355 { 356 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));356 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 357 357 } 358 358 359 359 unset($GLOBALS['phpgw_info']['flags']['noheader']); 360 360 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 361 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'].' - '.lang('report user');361 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report user'); 362 362 $GLOBALS['phpgw']->common->phpgw_header(); 363 363 … … 401 401 { 402 402 //url do paginador 403 $url = '/index.php?menuaction=reports 1_0.uireports_users.report_users_group_setor_print';403 $url = '/index.php?menuaction=reports.uireports_users.report_users_group_setor_print'; 404 404 405 405 // **** Grupo de paginas ****
Note: See TracChangeset
for help on using the changeset viewer.