Changeset 3996 for branches/2.2/mobile


Ignore:
Timestamp:
04/12/11 16:16:55 (13 years ago)
Author:
thiagoaos
Message:

Ticket #1740 - Adicionado link no label Expresso Mini para a página inicial.

Location:
branches/2.2/mobile
Files:
4 edited

Legend:

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

    r3987 r3996  
    9292                */ 
    9393                public function print_page($class, $method){ 
     94                        if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile') == "mini_desktop") { 
     95                                //force to don' t call ui_home.index in a mini desktop version 
     96                                if($class == "ui_home" && $method == "index") { 
     97                                        $class = "ui_mobilemail"; 
     98                                        $method = "change_folder"; 
     99                                        $_REQUEST["folder"] = 0; 
     100                                } 
     101                        } 
     102                         
     103                        //need be called before invoke the action 
    94104                        $this->print_header(); 
    95105                        $this->init_mobile(); 
     106 
    96107                        if(!($class == 'ui_home' && $method == 'index')) $this->print_navbar(); 
    97108                        $filename = 'inc/class.'.$class.'.inc.php'; 
    98109                        include_once($filename); 
    99                         $obj = new $class();             
    100                         $obj -> $method($_REQUEST); 
    101                          
     110                        $obj = new $class(); 
     111                        $obj->$method($_REQUEST); 
     112 
    102113                        if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile') == "mini_desktop") { 
    103114                                $ui_home = CreateObject('mobile.ui_home'); 
     
    107118                        $this->template->pfp('out', 'mobile_home'); 
    108119                } 
    109                  
     120 
    110121                public function init_mobile() { 
    111122                        $ui_mobilemail = CreateObject('mobile.ui_mobilemail'); 
  • branches/2.2/mobile/templates/css/mobile.css

    r3990 r3996  
    3232/***************Elementos******************/ 
    3333 
    34 h1{ padding-top: 5px; height:20px; font-size:small; padding-left:5px; color:#FFFFFF; float:left;  } 
     34h1{ padding-top: 5px; height:20px; font-size:small; padding-left:5px; color:#FFFFFF; float:left;} 
    3535dt {font-size:small; color:#3E3E3D; background:#CEE5EF; width:100%;} 
    36 .dt-titulo, .dt-azul, .dt-branco {background:#EEF7FA; clear:both; display:table;  width:100%;  } 
     36.dt-titulo, .dt-azul, .dt-branco {background:#EEF7FA; clear:both; display:table;  width:100%;} 
    3737.dt-branco {background:#FFF;} 
    3838.dt-titulo {background:#CEE5EF;} 
     
    118118.topo { width:100%; background:#333; display:table } 
    119119.topo a{ color:#FFF; text-decoration:underline; float:right; margin:4px 20px 0 0 } 
    120 .topo h1{ font-size:13pt } 
     120.topo h1 { font-size:13pt } 
     121.topo h1 a.title { font-size:13pt; text-decoration: none; float: none; margin: 0; } 
    121122 
    122123.btn-generico, .btn-contexto, .btn-busca { text-transform: uppercase; } 
  • branches/2.2/mobile/templates/default/pc_template.tpl

    r3814 r3996  
    7272                <div id="global"> 
    7373                        <div id="topo_box" class="topo"> 
    74                                 <h1>{global_title}</h1> 
     74                                <h1><a href="index.php?menuaction=mobile.ui_mobilemail.change_folder&folder=0" class="title">{global_title}</a></h1> 
    7575                                <span><a href="{href_logout}">{lang_logout}</a></span> 
    7676                        </div> 
  • branches/2.2/mobile/templates/default/template.tpl

    r3731 r3996  
    1111        <body> 
    1212                <div class="topo"> 
    13                         <h1>{global_title}</h1> 
     13                        <h1><a href="index.php?menuaction=mobile.ui_home.index" class="title">{global_title}</a></h1> 
    1414                        <span><a href="{href_logout}">{lang_logout}</a></span> 
    1515                </div> 
Note: See TracChangeset for help on using the changeset viewer.