- 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_logon.inc.php
r3471 r3666 31 31 function uireports_logon() 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->fpdf = CreateObject('reports 1_0.uireports_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->fpdf = CreateObject('reports.uireports_fpdf'); // Class para PDF 39 39 40 $c = CreateObject('phpgwapi.config','reports 1_0'); // cria o objeto relatorio no $c40 $c = CreateObject('phpgwapi.config','reports'); // cria o objeto relatorio no $c 41 41 $c->read_repository(); // na classe config do phpgwapi le os dados da tabela phpgw_config where relatorio, como passagem acima 42 42 $this->current_config = $c->config_data; // carrega os dados em do array no current_config … … 46 46 $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 47 47 } 48 $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports 1_0');48 $GLOBALS['phpgw']->js->validate_file('jscode','cc','reports'); 49 49 } 50 50 … … 63 63 if (!$this->functions->check_acl($account_lid,'list_users')) 64 64 { 65 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));65 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 66 66 } 67 67 … … 82 82 define('FPDF_FONTPATH','font/'); 83 83 $data_atual = date("d/m/Y"); 84 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'];84 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 85 85 86 86 $pdf=new uireports_fpdf("L"); … … 100 100 $SubTituloR = lang('report of time without logging by Organization'); 101 101 $SubTitulo1 = $subtitulo1; 102 $GLOBALS['phpgw_info']['apps']['reports 1_0']['subtitle'] = $SubTituloR;102 $GLOBALS['phpgw_info']['apps']['reports']['subtitle'] = $SubTituloR; 103 103 $pdf->Cell(0,8,$SubTitulo,0,1,'C',0); 104 104 … … 255 255 if (!$this->functions->check_acl($account_lid,'list_sectors')) 256 256 { 257 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));257 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 258 258 } 259 259 … … 261 261 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 262 262 263 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'].' - '.lang('report of time without logging by Organization');263 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report of time without logging by Organization'); 264 264 $GLOBALS['phpgw']->common->phpgw_header(); 265 265 … … 273 273 $var = Array( 274 274 'th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'], 275 'back_url' => $GLOBALS['phpgw']->link('/reports 1_0/index.php'),275 'back_url' => $GLOBALS['phpgw']->link('/reports/index.php'), 276 276 'context_display' => $context_display 277 277 ); … … 424 424 425 425 $data_atual = date("d/m/Y"); 426 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'];426 $titulo_system = $GLOBALS['phpgw_info']['apps']['reports']['title']; 427 427 428 428 $account_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; … … 437 437 if (!$this->functions->check_acl($account_lid,'list_users')) 438 438 { 439 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));439 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 440 440 } 441 441 442 442 unset($GLOBALS['phpgw_info']['flags']['noheader']); 443 443 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 444 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'].' - '.lang('report user');444 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('report user'); 445 445 $GLOBALS['phpgw']->common->phpgw_header(); 446 446 … … 486 486 if ($vnumacesso==0){ 487 487 //url do paginador 488 $url = '/index.php?menuaction=reports 1_0.uireports_logon.report_logon_group_setor_print';488 $url = '/index.php?menuaction=reports.uireports_logon.report_logon_group_setor_print'; 489 489 490 490 // **** Grupo de paginas **** … … 697 697 // ******** caso não for zero não vai paginar ***************** 698 698 //url do paginador 699 $url = '/index.php?menuaction=reports 1_0.uireports_logon.report_logon_group_setor_print';699 $url = '/index.php?menuaction=reports.uireports_logon.report_logon_group_setor_print'; 700 700 701 701 // conta total dos registros … … 863 863 if ((!$this->functions->check_acl($manager_account_lid,'edit_users')) && (!$this->functions->check_acl($manager_account_lid,'change_users_password'))) 864 864 { 865 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports 1_0/inc/access_denied.php'));865 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php')); 866 866 } 867 867 … … 870 870 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 871 871 872 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports 1_0']['title'].' - '.lang('Access Log');872 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['reports']['title'].' - '.lang('Access Log'); 873 873 $GLOBALS['phpgw']->common->phpgw_header(); 874 874 … … 909 909 'th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'], 910 910 'nome_usuario' => $nome_usuario, 911 'back_url' => "<form name='formlog' method='POST' action='../index.php?menuaction=reports 1_0.uireports_logon.report_logon_group_setor_print'>911 'back_url' => "<form name='formlog' method='POST' action='../index.php?menuaction=reports.uireports_logon.report_logon_group_setor_print'> 912 912 <input type='hidden' name='setor' value='$grouplist'> 913 913 <input type='hidden' name='organizacao' value='$organizacao'>
Note: See TracChangeset
for help on using the changeset viewer.