Changeset 3948


Ignore:
Timestamp:
04/01/11 15:38:12 (12 years ago)
Author:
niltonneto
Message:

Ticket #1692 - Removido da página index código desnecessário.

Location:
branches/2.2/reports
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/reports/index.php

    r3666 r3948  
    99        *  option) any later version.                                                                                                            * 
    1010        \*************************************************************************************/ 
    11  
    12         $debug = false;  
    13         $time_start = microtime(true); 
    14  
    1511        $GLOBALS['phpgw_info'] = array(); 
    1612        $GLOBALS['phpgw_info']['flags']['currentapp'] = 'reports'; 
    1713        include('../header.inc.php'); 
    1814 
    19         // Cria o objeto para mostrar as organizações 
    20         $functions      = CreateObject('reports.functions');     
    21          
    22         $nextmatchs = createobject('phpgwapi.nextmatchs'); 
    23          
    2415        $c = CreateObject('phpgwapi.config','reports'); 
    2516        $c->read_repository(); 
    26          
    2717        $current_config = $c->config_data; 
    28         $ldap_manager = CreateObject('contactcenter.bo_ldap_manager'); 
    2918        $boemailadmin   = CreateObject('emailadmin.bo'); 
    3019        $emailadmin_profile = $boemailadmin->getProfileList(); 
    3120        $_SESSION['phpgw_info']['expresso']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); 
    32         $_SESSION['phpgw_info']['expresso']['user'] = $GLOBALS['phpgw_info']['user']; 
    33         $_SESSION['phpgw_info']['expresso']['server'] = $GLOBALS['phpgw_info']['server']; 
    34         $_SESSION['phpgw_info']['expresso']['cc_ldap_server'] = $ldap_manager ? $ldap_manager->srcs[1] : null; 
    35         $_SESSION['phpgw_info']['expresso']['expressoAdmin'] = $current_config; 
    36         $_SESSION['phpgw_info']['expresso']['global_denied_users'] = $GLOBALS['phpgw_info']['server']['global_denied_users']; 
    37         $_SESSION['phpgw_info']['expresso']['global_denied_groups'] = $GLOBALS['phpgw_info']['server']['global_denied_groups']; 
    3821         
    3922        $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 
    40         $template->set_file(Array('expressoAdmin' => 'index.tpl')); 
    41         $template->set_block('expressoAdmin','body');    
     23        $template->set_file(Array('reports' => 'index.tpl')); 
     24        $template->set_block('reports','body');  
    4225         
    4326        $var = Array( 
     
    5336        $template->set_var($var); 
    5437        $template->pfp('out','body'); 
    55                          
    56         /* save lang and session */ 
    57         if (empty($_SESSION['phpgw_info']['expressoAdmin']['lang'])) 
    58         { 
    59                 $_SESSION['phpgw_info']['expressoAdmin']['user']['preferences']['common']['lang'] = $GLOBALS['phpgw_info']['user']['preferences']['common']['lang']; 
    60                 $fn = './setup/phpgw_'.$_SESSION['phpgw_info']['expressoAdmin']['user']['preferences']['common']['lang'].'.lang'; 
    61                 if (file_exists($fn)) 
    62                 { 
    63                         $fp = fopen($fn,'r'); 
    64                         while ($data = fgets($fp,16000)) 
    65                         { 
    66                                 list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); 
    67                                 $_SESSION['phpgw_info']['expressoAdmin']['lang'][$message_id] = $content; 
    68                         } 
    69                         fclose($fp); 
    70                 } 
    71         } 
    72          
    7338        $GLOBALS['phpgw']->common->phpgw_footer(); 
    74          
    75         if($debug) 
    76                 echo lang('Page was generated in %1 seconds',microtime(true) - $time_start);     
    77  
    7839?> 
  • branches/2.2/reports/templates/default/index.tpl

    r3917 r3948  
    11<!-- BEGIN body --> 
    2 <script language="javascript"> 
    3 <!-- 
    4 var Aberto = "" 
    5 var Fechado = "" 
    6  
    7         function preload(){ 
    8                 if(document.images){ 
    9                         Aberto = new Image(10,7) 
    10                         Fechado = new Image(10,7) 
    11                         Aberto.src = "./templates/default/images/mais.png" 
    12                         Fechado.src = "./templates/default/images/menos.png"     
    13                 } 
    14         } 
    15  
    16         function mostra(item,item2){ 
    17                 if (item.style.display=='none'){ 
    18                         item.style.display='block'; 
    19                         item2.src=Fechado.src    
    20                 }else{ 
    21                         item.style.display='none' 
    22                         item2.src=Aberto.src 
    23                 } 
    24         }        
    25 preload(); 
    26 --> 
    27 </script> 
    282<style type="text/css"> 
    293<!-- 
     
    3711--> 
    3812</style> 
    39  
    40 <table width="90%%"  border="0" align="center"> 
    41   <tr> 
    42     <td><div align="center" class="style1">{lang_rel_title}</div></td> 
    43   </tr> 
    44 </table> 
    45  
    4613<table width="90%" border="0" cellspacing="10" cellpadding="0" align="center"> 
    4714<!-- TODOS OS USUARIOS DO CONTEXTO 
Note: See TracChangeset for help on using the changeset viewer.