- 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_usersgroups.inc.php
r3471 r3666 30 30 function uireports_usersgroups() 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_groups')) 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(); … … 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 … … 158 158 if (!$this->functions->check_acl($account_lid,'list_sectors')) 159 159 { 160 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));160 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 161 161 } 162 162 … … 164 164 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 165 165 166 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'].' - '.lang('report usersgroups');166 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report usersgroups'); 167 167 $GLOBALS['phpgw']->common->phpgw_header(); 168 168 … … 176 176 $var = Array( 177 177 'th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'], 178 'back_url' => $GLOBALS['phpgw']->link('/reports 1_0/index.php'),178 'back_url' => $GLOBALS['phpgw']->link('/reports/index.php'), 179 179 'context_display' => $context_display 180 180 ); … … 319 319 320 320 $data_atual = date("d/m/Y"); 321 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'];321 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 322 322 323 323 $account_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; … … 332 332 if (!$this->functions->check_acl($account_lid,'list_groups')) 333 333 { 334 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));334 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 335 335 } 336 336 337 337 unset($GLOBALS['phpgw_info']['flags']['noheader']); 338 338 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 339 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'].' - '.lang('report usersgroups');339 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report usersgroups'); 340 340 $GLOBALS['phpgw']->common->phpgw_header(); 341 341 … … 379 379 { 380 380 //url do paginador 381 $url = '/index.php?menuaction=reports 1_0.uireports_usersgroups.report_usersgroups_print';381 $url = '/index.php?menuaction=reports.uireports_usersgroups.report_usersgroups_print'; 382 382 383 383 // **** Grupo de paginas ****
Note: See TracChangeset
for help on using the changeset viewer.