Changeset 3652


Ignore:
Timestamp:
12/30/10 15:51:05 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1404 - Adicionado link de logout na barra superior da página e retirado do rodapé

Location:
branches/2.2/mobile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc/class.mobiletemplate.inc.php

    r3645 r3652  
    6565                public function print_page($class, $method){ 
    6666                        $this->print_header(); 
    67                         $class=='ui_home' && $method=='index'?'':$this->print_navbar(); 
     67                        $class=='ui_home' && $method=='index'?$this->print_logout():$this->print_navbar(); 
    6868                        $filename = 'inc/class.'.$class.'.inc.php'; 
    6969                        include_once($filename); 
     
    7272                        $this->template->pfp('out', 'mobile_home'); 
    7373                } 
    74          
     74                 
     75                /* 
     76                * @function print_logout 
     77                * @abstract Exibe label e link para Logout 
     78                * @author Diego Moreno 
     79                */ 
     80                public function print_logout(){ 
     81                        $this-> template->set_var('lang_logout', lang('logout')); 
     82                        $this-> template->set_var('href_logout', 'login.php?cd=1'); 
     83                } 
     84                 
    7585                /* 
    7686                * @function print_navbar 
     
    8595            $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['timezone'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] : sprintf("%s", array_search("America/Sao_Paulo", $zones)); 
    8696 
    87                          
    88                         $this-> template->set_var('lang_logout', lang('logout')); 
     97 
     98                        $this-> print_logout();                  
    8999                        $this-> template->set_var('lang_back', lang('Back')); 
    90100                        $this-> template->set_var('lang_home', lang('home')); 
     
    92102                        $this-> template->set_var('lang_contacts', lang('Contact Center')); 
    93103                        $this-> template->set_var('lang_calendar', lang('Calendar')); 
    94                         $this-> template->set_var('href_logout', 'login.php?cd=1'); 
    95104                        $this-> template->set_var('href_back', 'javascript:history.back()'); 
    96105                        $this-> template->set_var('href_cc', 'index.php?menuaction=mobile.ui_mobilecc.init_cc'); 
  • branches/2.2/mobile/templates/default/template.tpl

    r3603 r3652  
    1313                <div class="topo"> 
    1414                <h1>Expresso Mini</h1> 
     15                        <span> 
     16                                <a href="{href_logout}">{lang_logout}</a> 
     17                        </span> 
    1518                </div> 
    1619 
     
    2629                        <p><a href="{href_cc}">{lang_contacts}</a></p> 
    2730                        <p><a href="{href_calendar}">{lang_calendar}</a></p> 
    28                         <p><a href="{href_logout}">{lang_logout}</a></p> 
    2931                </div> 
    3032                <div class="rodape">Projeto ExpressoLivre 2004 - 2010 :: Licen&ccedil;a de Software</div> 
Note: See TracChangeset for help on using the changeset viewer.