Changeset 3731
- Timestamp:
- 02/03/11 17:13:42 (13 years ago)
- Location:
- branches/2.2/mobile
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.mobiletemplate.inc.php
r3727 r3731 15 15 $template = $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile'); 16 16 17 $this->template->set_file(Array('home_t' => $template=="mini"?'pc_template.tpl':'template.tpl')); 18 $this->template->set_block('home_t', 'mobile_home'); 17 if($template == "mini_desktop") { 18 $this->template->set_file(array('home_t' => 'pc_template.tpl')); 19 $this->template->set_file(array('home_t_search_bar' => 'search_bar.tpl')); 20 $this->template->set_block('home_t_search_bar','search_bar'); 21 $this->template->set_var('search',$this->template->fp('out','search_bar')); 22 $this->template->set_var('lang_mini_mobile', lang('mini mobile')); 23 $this->template->set_var('lang_search_error_message',lang("need choose one option")); 24 } else { 25 $this->template->set_file(array('home_t' => 'template.tpl')); 26 $this->template->set_var('lang_mini_desktop', lang('mini desktop')); 27 } 28 29 30 31 $this->template->set_block('home_t', 'mobile_home'); 19 32 $this->template->set_block('home_t','success_message'); 20 $this->template->set_block('home_t','error_message'); 33 $this->template->set_block('home_t','error_message'); 21 34 } 22 35 … … 51 64 $this->template->parse("message_box", $type."_message", true); 52 65 } 53 } 66 } 54 67 55 68 /* … … 79 92 $this->print_header(); 80 93 $this->init_mobile(); 81 $class=='ui_home' && $method=='index'?$this->print_logout():$this->print_navbar();94 if(!($class == 'ui_home' && $method == 'index')) $this->print_navbar(); 82 95 $filename = 'inc/class.'.$class.'.inc.php'; 83 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')=="mini") {84 $ui_home = CreateObject('mobile.ui_home');85 $ui_home->index(array());86 }87 96 include_once($filename); 88 97 $obj = new $class(); 89 98 $obj -> $method($_REQUEST); 99 100 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile') == "mini_desktop") { 101 $ui_home = CreateObject('mobile.ui_home'); 102 $ui_home->index($_REQUEST); 103 } 104 90 105 $this->template->pfp('out', 'mobile_home'); 91 106 } … … 96 111 // setting timezone preference 97 112 $zones = $obj->getTimezones(); 98 $_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)); 99 } 100 101 /* 102 * @function print_logout 103 * @abstract Exibe label e link para Logout 104 * @author Diego Moreno 105 */ 106 public function print_logout(){ 107 $this-> template->set_var('lang_logout', lang('logout')); 108 $this-> template->set_var('href_logout', 'login.php?cd=1'); 113 $_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)); 114 115 $this->template->set_var('global_title', lang('expresso mini')); 116 $this->template->set_var('lang_logout', lang('logout')); 117 $this->template->set_var('lang_search', lang('search')); 118 119 $this->template->set_var('href_logout', 'login.php?cd=1'); 109 120 } 110 121 … … 115 126 */ 116 127 private function print_navbar(){ 117 $this-> print_logout(); 118 $this-> template->set_var('lang_back', lang('Back')); 119 $this-> template->set_var('lang_home', lang('home')); 120 $this-> template->set_var('lang_email', lang('E-mail')); 121 $this-> template->set_var('lang_contacts', lang('Contact Center')); 122 $this-> template->set_var('lang_calendar', lang('Calendar')); 123 $this-> template->set_var('href_back', 'javascript:history.back()'); 124 $this-> template->set_var('href_cc', 'index.php?menuaction=mobile.ui_mobilecc.init_cc'); 125 $this-> template->set_var('href_email', "index.php?menuaction=mobile.ui_mobilemail.change_folder&folder=0"); 126 $this-> template->set_var('href_calendar', "index.php?menuaction=mobile.ui_mobilecalendar.index"); 127 $this-> template->set_var('href_home', "index.php?menuaction=mobile.ui_home.index"); 128 $this->template->set_var('lang_back', lang('Back')); 129 $this->template->set_var('lang_home', lang('home')); 130 $this->template->set_var('lang_email', lang('E-mail')); 131 $this->template->set_var('lang_contacts', lang('Contact Center')); 132 $this->template->set_var('lang_calendar', lang('Calendar')); 133 $this->template->set_var('href_back', 'javascript:history.back()'); 134 $this->template->set_var('href_cc', 'index.php?menuaction=mobile.ui_mobilecc.init_cc'); 135 $this->template->set_var('href_email', "index.php?menuaction=mobile.ui_mobilemail.change_folder&folder=0"); 136 $this->template->set_var('href_calendar', "index.php?menuaction=mobile.ui_mobilecalendar.index"); 137 $this->template->set_var('href_home', "index.php?menuaction=mobile.ui_home.index"); 128 138 } 129 139 … … 135 145 private function print_header(){ 136 146 $GLOBALS['phpgw']->accounts->read_repository(); 137 $var = Array( 138 'css' => $this->get_mobile_css(), 139 'title' => lang("expresso mini") 140 ); 141 $this->template->set_var($var); 142 } 143 144 145 public function get_mobile_css() { 146 $css = "/mobile/templates/%s.css"; 147 148 global $path, $link; 149 150 $path = PHPGW_SERVER_ROOT . str_replace( '/', SEP, $css ); 151 152 $link = '<LINK href="%s" type="text/css" rel="StyleSheet">'; 153 $link = sprintf( $link, 154 "{$GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ]}{$css}" 155 ); 156 157 function _css( $css ) 158 { 159 global $link, $path; 160 161 if ( file_exists( sprintf( $path, str_replace( '/', SEP, $css ) ) ) ) 162 return sprintf( $link, $css ); 163 164 return ''; 165 } 166 167 $css = _css( 'css/mobile' ); 168 $css .= _css( $GLOBALS['phpgw_info']['server']['template_set'].'/css/base'); 169 $css .= _css( $GLOBALS['phpgw_info']['server']['template_set'].'/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme']); 170 171 return ( $css ); 172 147 $var = Array('title' => lang("expresso mini")); 148 $this->template->set_var($var); 173 149 } 174 150 -
branches/2.2/mobile/inc/class.ui_home.inc.php
r3727 r3731 22 22 23 23 function change_template($params) { 24 25 24 $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile',$params['template']); 26 header("location: index.php ");25 header("location: index.php?menuaction=mobile.ui_mobilemail.change_folder&folder=0"); 27 26 } 28 27 … … 49 48 $this->template->set_var('lang_selected', lang("selected")); 50 49 51 $this->template->set_var('search',$this->template->fp('out','search_bar'));52 53 50 $accountId = $GLOBALS['phpgw_info']['user']['account_id']; 54 51 … … 59 56 $this->set_folder_block($default_folders, "default_folders_box"); 60 57 61 if(isset($params["expand_folders"]) && $params["expand_folders"] == 1) 62 { 63 $personal_folders = $this->imap_functions->get_folders_list(array('noSharedFolders' => true, 'folderType' => 'personal', 'noQuotaInfo' => true)); 64 $this->set_folder_block($personal_folders, "personal_folders_box", sizeof($default_folders)); 65 $this->template->set_var('expand_folders', 0); 66 } else { 67 $this->template->set_var('expand_folders', 1); 68 } 58 $personal_folders = $this->imap_functions->get_folders_list(array('noSharedFolders' => true, 'folderType' => 'personal', 'noQuotaInfo' => true)); 59 $this->set_folder_block($personal_folders, "personal_folders_box", sizeof($default_folders)); 69 60 70 61 $this->template->set_var('quota_percent', $total_quota["quota_percent"]); … … 92 83 ) ); 93 84 94 $events 85 $events = $this->bocalendar->cached_events; 95 86 96 87 foreach($events[$year.$this->common->complete_string($month,2,"R","0").$this->common->complete_string($day,2,"R","0")] as $index=>$event) … … 105 96 $GLOBALS['phpgw_info']['mobiletemplate']->set_error_msg($params["error_message"]); 106 97 $GLOBALS['phpgw_info']['mobiletemplate']->set_success_msg($params["success_message"]); 107 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')=="mini") 98 99 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')=="mini_desktop") { 108 100 $GLOBALS['phpgw_info']['mobiletemplate']->set_home($this->template->fp('out', 'page')); 109 else 101 } else { 102 $this->template->set_var('search',$this->template->fp('out','search_bar')); 110 103 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'page')); 104 } 111 105 112 106 } … … 149 143 150 144 $p = $this->template; 151 $p->set_file( 152 Array( 153 'search' => 'home_search.tpl', 154 'home_search_bar' => 'search_bar.tpl' 155 ) 156 ); 145 $p->set_file(array('home_search' => 'home_search.tpl')); 146 $p->set_file(array('home_search_bar' => 'search_bar.tpl')); 157 147 158 148 //Langs gerais da página 159 $p->set_block(' search','home_search');160 $p->set_block(" search","row_events");161 $p->set_block(" search","no_events");149 $p->set_block('home_search','main'); 150 $p->set_block("home_search","row_events"); 151 $p->set_block("home_search","no_events"); 162 152 $p->set_block('home_search_bar','search_bar'); 163 153 … … 184 174 $p->set_var('show_more_events',"none"); 185 175 $p->set_var('contacts_request_from', 186 isset($params["request_from"])? 187 $params["request_from"]:"none"); 188 189 $p->set_var('search',$p->fp('out','search_bar')); 176 isset($params["request_from"])? 177 $params["request_from"]:"none"); 178 179 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')!="mini_desktop") { 180 $p->set_var('search',$p->fp('out','search_bar')); 181 } 190 182 191 183 //E-mails … … 194 186 if($params['default_folders']==="1") { 195 187 if($params['personal_folders']!=="1") 196 $mail_params['folderType'] = 'default'; 188 $mail_params['folderType'] = 'default'; 197 189 } 198 190 else { … … 324 316 } 325 317 326 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out',' home_search'));318 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out','main')); 327 319 328 320 } -
branches/2.2/mobile/inc/class.ui_mobilecalendar.inc.php
r3696 r3731 41 41 $this->template->set_var('lang_search',lang("search")); 42 42 43 $this->template->set_var('search',$this->template->fp('out','search_bar')); 43 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')!="mini_desktop") 44 $this->template->set_var('search',$this->template->fp('out','search_bar')); 44 45 45 46 if(!function_exists("get_events")){ -
branches/2.2/mobile/inc/class.ui_mobilecc.inc.php
r3710 r3731 146 146 "none":$this->page_info["request_from"]); 147 147 148 $this->template->set_var('search',$this->template->fp('out','search_bar')); 148 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')!="mini_desktop") 149 $this->template->set_var('search',$this->template->fp('out','search_bar')); 149 150 150 151 //Combo de catálogos -
branches/2.2/mobile/inc/class.ui_mobilemail.inc.php
r3697 r3731 446 446 $p->set_var("lang_more",lang("more")); 447 447 $p->set_var("lang_messages",lang("messages")); 448 $p->set_var('search',$p->fp('out','search_bar')); 448 449 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')!="mini_desktop") 450 $p->set_var('search',$p->fp('out','search_bar')); 449 451 450 452 $max_per_page = -
branches/2.2/mobile/login.php
r3571 r3731 44 44 if(trim($cd) != "") 45 45 $tmpl->parse('message_box', (($_GET['cd'] == 1) ? 'success_message' : 'error_message') ,true); 46 47 $tmpl->set_var('css',CreateObject("mobile.mobiletemplate")->get_mobile_css());48 46 49 47 function check_logoutcode($code) { … … 102 100 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw_info']['server']['webserver_url'] .$GLOBALS['phpgw_info']['flags']['currentdir'].'/login.php?cd=' . $GLOBALS['phpgw']->session->cd_reason); 103 101 } 104 else{ 102 else { 103 if(isset($_POST['max_resolution']) && $_POST['max_resolution'] > 600) { 104 $GLOBALS['phpgw_info']['user']['preferences']['common']['default_mobile_app'] = 'mobilemail'; 105 $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile','mini_desktop'); 106 } else { 107 $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile','mini_mobile'); 108 } 109 105 110 start_prefered_app(); 106 111 } -
branches/2.2/mobile/mobile_header.inc.php
r3727 r3731 18 18 19 19 $GLOBALS['phpgw_info']['flags']['currentapp'] = 'mobile'; 20 $GLOBALS['phpgw_info']['user']['preferences']['common']['default_mobile_app'] = 21 $GLOBALS['phpgw']->session->appsession('mobilemail.folders','mobile')=="mini"?'mobilecalendar':'home'; //home, mobilecalendar, mobilecc ou mobilemail 20 $GLOBALS['phpgw_info']['user']['preferences']['common']['default_mobile_app'] = 'home'; 22 21 23 22 if ( is_null($GLOBALS['phpgw_info']['server']['template_set']) ) -
branches/2.2/mobile/setup/phpgw_pt-br.lang
r3723 r3731 17 17 Drafts mobile pt-br Rascunhos 18 18 events mobile pt-br Eventos 19 expresso mini mobile pt-br Expresso Mini 19 20 E-mail mobile pt-br Caixa de Entrada 20 21 From mobile pt-br De … … 24 25 To mobile pt-br Para 25 26 cc mobile pt-br Cc 26 my mail mobile pt-br Meus E-mails 27 my contacts mobile pt-br Meus Contatos 28 my commitments mobile pt-br Meus Compromissos 29 my folders mobile pt-br Minhas Pastas 27 mini desktop mobile pt-br Mini Desktop 28 mini mobile mobile pt-br Mini Mobile 29 my mail mobile pt-br E-mails 30 my contacts mobile pt-br Contatos 31 my commitments mobile pt-br Compromissos 32 my folders mobile pt-br Outras Pastas 30 33 mark as read mobile pt-br marcar como lido 31 34 more mobile pt-br mais -
branches/2.2/mobile/templates/css/desktop.css
r3727 r3731 3 3 /* MACRO ESTRUTURA BROWSER */ 4 4 .global{ } 5 /*#navegacao{float:left; width:30%}6 #conteudo{ float:left; width:70%; min-height:305px;background: #eef7fa } */5 #navegacao{float:left; width:29%; } 6 #conteudo{border-left: solid #F6F6F6; border-left-width: 1%; float:left; width:70%; min-height:305px;background: #eef7fa;} 7 7 8 #navegacao, #conteudo { position: absolute; border: 5px solid #F6F6F6; } 9 #navegacao {right: 30%; left: 0; } 10 #conteudo {left: 30%; right: 0; } 11 12 #titulo-miolo, .menu-contexto{background-color: #3399CC ;color: #FFFFFF; font-size: small; min-height: 22px; line-height:22px; padding: 4px 2px; font-weight:bold; } 8 #lista_miolo {clear:none; color:#666; width:auto; font-size:small; } 9 #titulo-miolo, .menu-contexto{background-color: #3399CC ;color: #FFFFFF; font-size: small; height: 26px; line-height:22px; padding: 4px 2px; font-weight:bold; width:auto; } 13 10 14 11 /* CLASSES e IDS MODIFICADAS */ … … 18 15 .menu-diverso, #palavra-procurada{height:25px} 19 16 .email-data{width:70px;} 20 .aviso-positivo, .aviso-negativo {width:50%}21 17 #titulo-miolo button {height:21px} 22 18 23 /*#corpo_mensagem {margin-left:5px}*/24 19 #corpo_mensagem #foto {padding:5px 0; text-align:left; margin-left:20px} 25 20 … … 28 23 .posiciona-esquerda{margin-left:5px} 29 24 30 31 25 div.dt-azul p+p {margin-left:5px} 32 26 div.dt-branco p+p {margin-left:5px} 33 /*div.rodape {position:absolute; bottom:0; width:100%}*/34 27 35 /*Modificadas 31/01/2011*/ 36 div.rodape {bottom:0; clear:both; display:table; position:fixed; width:100%;} 28 div.rodape { margin-top: 4px; background-color:#FFF; } 37 29 div.margin-rodape { clear: both; margin: 0 0 21px 5px; } 38 30 -
branches/2.2/mobile/templates/css/ie6.css
r3727 r3731 1 @import url("mobile.css");2 3 1 /* MACRO ESTRUTURA BROWSER */ 4 2 .global{ } 5 #navegacao{float:left; width: 30%}6 #conteudo{ float:left; width:70%; min-height:305px;background: #eef7fa }3 #navegacao{float:left; width:29%} 4 #conteudo{border-left: solid #F6F6F6; border-left-width: 1%; float:left; width:70%; min-height:305px;background: #eef7fa;} 7 5 #titulo-miolo{background-color: #3399CC ;color: #FFFFFF; font-size: small; min-height: 22px; line-height:22px; padding: 4px 0; font-weight:bold; } 8 6 -
branches/2.2/mobile/templates/css/mobile.css
r3713 r3731 17 17 table {border-collapse:separate;border-spacing:0;} 18 18 19 20 19 #busca table { width:100%;} 21 20 .gd {width:90%; padding:2px 0;} 22 21 .pq {width:10%; padding-left:5px; padding-right:5px; text-align:center;} 23 22 .bt {width:10%; padding-left:10px; } 24 25 23 26 24 caption, th, td {text-align:left;} … … 32 30 li {list-style:none;} 33 31 34 35 36 37 38 32 /***************Elementos******************/ 39 33 40 34 h1{ padding-top: 5px; height:20px; font-size:small; padding-left:5px; color:#FFFFFF; float:left; } 41 /*dt { padding:3px 3px 3px 10px; font-size:small; color:#3E3E3D; background-color:#CEE5EF; width:100%;}*/42 35 dt {font-size:small; color:#3E3E3D; background:#CEE5EF; width:100%;} 43 36 .dt-titulo, .dt-azul, .dt-branco {background:#EEF7FA; clear:both; display:table; width:100%; } … … 49 42 .espacamento, .espacamento_contato_search{padding:5px 0 5px 25px; margin:0 0 5px 0 } 50 43 .espacamento_contato_search{padding-left:5px;} 51 #palavra-procurada {background:#C0DCE9; height:22px; padding -top:4px; width:100%}44 #palavra-procurada {background:#C0DCE9; height:22px; padding: 6px 0 0 4px; width:auto} 52 45 #editando{font-size:120%; color:#666; margin-left:5px} 53 46 div > p.dt-azul > strong{ margin-left:8px; float:left } … … 68 61 .busca-email-texto {margin-left:25px !important} 69 62 70 71 72 73 74 63 /*ALTERADOS*/ 75 64 /*#text_area{width:98%; margin-top:10px; margin:auto }*/ … … 93 82 .posiciona-esquerda input[type="checkbox"]{ vertical-align:baseline} 94 83 95 /*07/01/2011*/96 /*.posiciona-esquerda p{ margin:5px 0 5px 5px;}97 .posiciona-direita-busca { font-weight:normal; padding-top:8px; text-align:right; width:56px; float:right; margin-right:6px}98 .posiciona-direita {font-size:x-small; float:left; font-weight:normal; text-align:left; width:20%; padding-top:8px}99 .posiciona-direita p { margin-bottom:3px}100 .posiciona-direita span{ margin:6px 0 ; padding:8px 0; font-size:x-small !important; font-weight:normal; float:right }101 .posiciona-direita span a{ color:#666; padding:8px 9px }*/102 103 104 105 84 .posiciona-esquerda p{ margin:5px 0 5px 5px} 106 85 .posiciona-direita-busca { font-weight:normal; padding-top:8px; text-align:right; width:56px; float:right; margin-right:6px} … … 110 89 .posiciona-direita a{height:22px; color:#666; padding:4px; font-size: x-small; } 111 90 112 113 91 #lista_miolo {clear:both; color:#666; width:100%; /*min-height:165px;*/font-size:small; } 114 92 #lista_miolo dd {background:#FFFFFF; width:100%; display:table } … … 118 96 #lista_miolo #contagem {font-size:x-small; width:20%; float:left; font-weight:normal; text-align:left;} 119 97 120 121 122 123 98 /***************Classes******************/ 124 99 … … 132 107 .limpar_div { 133 108 clear:both 134 } 135 109 } 136 110 137 111 .resultado-titulo{background:#D4E7F0; min-height:18px; padding:4px 0; font-weight:bold} … … 141 115 p.urgente {color:#F00; font-style:italic; font-size:x-small } 142 116 div.urgente {width:14px; height:12px; background:#F00; margin-left:5px; text-align:center; vertical-align:middle;color:#FFF; float:left;font-size:xx-small; padding-top:1px} 143 144 117 145 118 .topo {width:100%; background:#333; display:table } … … 155 128 .nome-item-telefone{margin-left:21px} 156 129 157 .menu-contexto {font-size:small; background-color:#3399CC; color:#FFFFFF; width:100%; min-height:18px; padding:4px 0}130 .menu-contexto {font-size:small; background-color:#3399CC; color:#FFFFFF; width:100%; min-height:18px; padding:4px 2px} 158 131 .menu-contexto span{margin-left:5px } 159 132 .btn-contexto {font-size:x-small; background-color:#2B84AF; color:#FFFFFF; border:none; margin-left:5px } … … 163 136 .btn-busca {padding:4px; font-size:x-small; background-color:#2B84AF; color:#FFFFFF; border:none; min-height:20px;} 164 137 #voltar {margin:0; padding:0} 165 166 138 167 139 #titulo {width:100%; margin:2px 0; padding:20px 0; background-color:#CEE5EF; } … … 171 143 .titulo-sdt{ padding:2px 0px 0px 5px; height:20px; font-weight:bold; font-size: x-small; color:#3E3E3D; } 172 144 173 174 145 .menu-diverso{ height:22px; padding-top:4px} 175 146 .margin-geral{margin:0 0 5px 5px} … … 181 152 .menu-diverso a:hover,.menu-diverso a.letter-contact-selected {color:#FFFFFF;background-color:#3399CC; padding:3px 9px } 182 153 .btn_off a { margin: 0 1px; display: inline; } 183 184 154 185 155 .reset-dt {background-color:#ffffff; width:98%; /*padding:10px 3px 3px 10px;*/} … … 191 161 .sobre-mensagem {float:left;} 192 162 193 194 163 #ver-detalhes {float:left;padding:2px; background-color:#FAD364; width:10% } /*mudança*/ 195 164 #ver-detalhes a {padding:3px;color:#666;font-size:x-small; width:20px} 196 197 198 165 199 166 .alerta{ font-style:italic; color:#FF3300;} … … 219 186 #bg-aviso{background:#EFF8FB; padding-top:20px;} 220 187 .avisos{background-color:#FAE1E1;} 221 .aviso-positivo, .aviso-negativo{ padding:5px; font-size:x-small; color:#333333; background-color:#CEE5EF; width:80%; margin:auto}188 .aviso-positivo, .aviso-negativo{ padding:5px; font-size:x-small; color:#333333; background-color:#CEE5EF; margin:auto; width:98%;padding-left:1%;padding-right:1%; } 222 189 .aviso-negativo{ background-color:#FAE1E1 } 223 190 .aviso-positivo a,.aviso-negativo a{text-decoration:underline; color:#333333;} 224 225 191 226 192 .bg-neutro{padding:5px; background-color:#EEF7FA;} … … 263 229 a.outro_mes { background: #E1E1E1; color: #8B8B8B } 264 230 265 266 267 268 269 270 271 231 /*---------------------------------------- CONTATO ÚNICO ---------------------------------------------*/ 272 232 … … 282 242 #block-dados{float: left; width:78%; margin-left:5px; font-size:small; font-weight:normal } 283 243 #block-label a {color:#666} 284 285 286 287 244 288 245 /*---------------------------------------- EMAIL ---------------------------------------------*/ … … 290 247 .email-geral{width:100%; padding:5px 0} 291 248 .email-cabecalho,.contato-cabecalho{overflow: hidden; width:74%; height:22px; float:left;} 292 .email-cabecalho p ,.email-cabecalho a,.email-cabecalho a:visited{font-size:medium; color:#000}249 .email-cabecalho p.email-cabecalho a.email-cabecalho a:visited{font-size:medium; color:#000} 293 250 .contato-cabecalho{font-size:medium} 294 251 .email-anexo{width:16px; height:16px; float:left; margin-top:5px} … … 313 270 /*---------------------------------------- MODIFICAÇÕES ---------------------------------------------*/ 314 271 315 316 272 .email-item{color:#3E3E3D; font:bold small Arial, Helvetica, sans-serif; vertical-align:text-bottom} 317 273 .email-campos, .assunto {color:#3E3E3D; font:bold small Arial, Helvetica, sans-serif; text-decoration:underline !important} -
branches/2.2/mobile/templates/default/calendar.tpl
r3696 r3731 14 14 </form> 15 15 16 <dl id="lista_miolo"> 16 <dl id="lista_miolo"> > 17 17 {events_box} 18 18 </dl> … … 38 38 <!-- END event_block --> 39 39 <!-- BEGIN no_event_block --> 40 <dt class="titulo_mensagem {dd_class}"> 41 {msg_no_event} 42 </dt> 40 <div class="dt_branco"> 41 <div class="centraliza aumenta-tamanho"> 42 <p class="email-item">{msg_no_event}</p> 43 </div> 44 </div> 43 45 <!-- END no_event_block --> 44 46 <!-- BEGIN type_option_block --> -
branches/2.2/mobile/templates/default/cc_main.tpl
r3710 r3731 12 12 </div> 13 13 14 <form id="form u_busca" action="index.php" method="post">14 <form id="form_busca" action="index.php" method="post"> 15 15 <input type="hidden" name="menuaction" value="mobile.ui_home.search"> 16 16 <input type="hidden" name="catalog_to_search" value="{actual_catalog}"> -
branches/2.2/mobile/templates/default/home_index.tpl
r3697 r3731 1 1 <!-- BEGIN page --> 2 <form method="post" action="index.php?menuaction=mobile.ui_home.search" id="form_search"> 2 3 <script type="text/javascript"> 4 5 function expand_folders() { 6 var box = document.getElementById("personal_folder_box"); 7 box.style.display = (box.style.display == "none") ? "block" : "none"; 8 } 9 10 </script> 11 12 <form method="post" action="index.php?menuaction=mobile.ui_home.search" id="form_busca"> 3 13 {search} 4 14 … … 10 20 11 21 <dl id="lista_miolo"> 12 <div class="resultado-titulo"><label><input type="checkbox" name="default_folders" value='1'/><span class="email-item">{lang_my_mail}</span></label><div class="rotulo-complementar">Usados {quota_percent}% [{quota_used}/{quota_limit}]</div></div> 13 {default_folders_box} 14 <div class="limpar_div resultado-titulo"><label><input type="checkbox" name="personal_folders" value='1'><a href="index.php?menuaction=mobile.ui_home.index&expand_folders={expand_folders}" class="email-item"> {lang_my_folders}</a></label></div> 15 {personal_folders_box} 16 <div class="limpar_div resultado-titulo"><label><input type="checkbox" name="calendar_search" value='1'><a href="index.php?menuaction=mobile.ui_mobilecalendar.index" class="email-item"> {lang_my_commitments}</a></label></div> 17 {commitments_box} 18 <div class="limpar_div resultado-titulo"><label><input type="checkbox" name="contacts_search" value='1'> <a href="index.php?menuaction=mobile.ui_mobilecc.init_cc" class="email-item"> {lang_my_contacts} </a></label></div> 22 <dd style="margin: 0; padding: 0"><div class="resultado-titulo"><label><input type="checkbox" name="default_folders" value='1' id="search_default_folders" /><span class="email-item">{lang_my_mail}</span></label><div class="rotulo-complementar">{quota_percent}% [{quota_used}/{quota_limit}]</div></div> 23 </dd> 24 {default_folders_box} 25 <dd> 26 <div class="limpar_div resultado-titulo"><label><input type="checkbox" name="personal_folders" value='1' id="search_personal_folders"><a href="javascript:expand_folders()" class="email-item"> {lang_my_folders}</a></label></div> 27 </dd> 28 <span id="personal_folder_box" style="display: none;"> 29 {personal_folders_box} 30 </span> 31 <dd> 32 <div class="limpar_div resultado-titulo"><label><input type="checkbox" name="calendar_search" value='1' id="search_calendar_search"><a href="index.php?menuaction=mobile.ui_mobilecalendar.index" class="email-item"> {lang_my_commitments}</a></label></div> 33 </dd> 34 {commitments_box} 35 <dd> 36 <div class="limpar_div resultado-titulo"><label><input type="checkbox" name="contacts_search" value='1' id="search_contacts_search"> <a href="index.php?menuaction=mobile.ui_mobilecc.init_cc" class="email-item"> {lang_my_contacts} </a></label></div> 37 </dd> 19 38 </dl> 20 39 </form> -
branches/2.2/mobile/templates/default/home_search.tpl
r3713 r3731 1 <!-- BEGIN home_search-->1 <!-- BEGIN main --> 2 2 <div class="menu-contexto"> 3 3 <span><a href="javascript:history.go(-1);">{lang_back}</a></span> <span class="titulo-secao">{lang_search_return}</span> 4 4 </div> 5 5 6 <form method="post" action="index.php" >6 <form method="post" action="index.php" id="form_busca"> 7 7 <input type="hidden" name="menuaction" value="mobile.ui_home.search"> 8 8 <input type="hidden" name="default_folders" value="{default_folders}"> … … 76 76 </div> 77 77 </dl> 78 <!-- END home_search-->78 <!-- END main --> 79 79 80 80 <!-- BEGIN row_events --> 81 <p class="{bg} espacamento_contato_search"><strong>{date}</strong> - {title}</p> 81 <p class="{bg} espacamento_contato_search"><strong>{date}</strong> - {title}</p> 82 82 <!-- END row_events --> 83 83 <!-- BEGIN no_events --> -
branches/2.2/mobile/templates/default/login.tpl
r3714 r3731 7 7 <meta content="text/html;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0; charset=utf-8;" http-equiv="Content-Type" name="viewport" /> 8 8 <meta name="format-detection" content="telephone=no" /> 9 {css} 9 <link href="templates/css/mobile.css" type="text/css" rel="StyleSheet" /> 10 11 <script type="text/javascript"> 12 13 function validate_login() { 14 document.getElementById("max_resolution").value = ((screen.width >= screen.height) ? screen.width : screen.height); 15 16 return true; 17 } 18 19 </script> 10 20 </head> 11 21 … … 15 25 </div> 16 26 17 {message_box} 27 {message_box} 18 28 19 20 <form name="form_login" method="post" action="./login.php">29 <form name="form_login" method="post" action="./login.php" id="login_form" onSubmit="return validate_login()"> 30 <input type="hidden" name="max_resolution" id="max_resolution" value=""> 21 31 <input type="hidden" name="passwd_type" value="text"> 22 32 <input type="hidden" name="account type" value="u"> … … 24 34 <div class="login"> 25 35 <strong>{lang_username}:</strong><br/> 26 <input name="login"/><br/> 27 <script>document.form_login.login.focus();</script> 36 <input name="login" id="login"/><br/> 28 37 <strong>{lang_password}:</strong><br/> 29 38 <input name="passwd" type="password" autocomplete=off/><br/> 30 <button name="submitit" class="btn-contexto" style="margin-top:5px" >{lang_login}</button>31 </div> 39 <button name="submitit" class="btn-contexto" style="margin-top:5px" type="submit">{lang_login}</button> 40 </div> 32 41 </dt> 33 42 </form> 34 43 35 44 <div class="rodape">Projeto ExpressoLivre 2004 - 2010 :: Licença de Software</div> 36 45 </body> 37 46 </html> 47 48 <script type="text/javascript"> 49 document.getElementById('login').focus(); 50 </script> 51 38 52 <!-- END page --> 39 53 <!-- BEGIN success_message --> -
branches/2.2/mobile/templates/default/mobilemail.tpl
r3691 r3731 6 6 </div> 7 7 8 <form action="index.php" method="post" id="form u_busca">8 <form action="index.php" method="post" id="form_busca"> 9 9 <input type="hidden" name="menuaction" value="mobile.ui_home.search"> 10 10 <input type="hidden" name="folder_to_search" value="{folder_id}"> … … 24 24 </select> 25 25 </dt> 26 27 <form id="formu" action="index.php" method="post"> 28 <input type="hidden" id="menuaction" name="menuaction" value="mobile.ui_mobilemail.delete_msg"> 29 <input type="hidden" id="msg_folder" name="msg_folder" value="{folder_id}"> 30 <input type="hidden" id="flag" name="flag" value="seen"> 31 {mails} 32 </form> 33 34 <div class="menu-contexto centraliza" style="display:{show_more};"> 35 <form method="post" action="index.php"> 36 <input type="hidden" name="menuaction" value="mobile.ui_mobilemail.change_page"> 37 <input type="hidden" name="page" value="{page}"> 38 <button type="submit" name="more_messages" title="{lang_more_messages}" class="btn-contexto"> {lang_more} 10 {lang_messages}</button> 39 </form> 40 </div> 26 41 27 <form id="formu" action="index.php" method="post"> 28 <input type="hidden" id="menuaction" name="menuaction" value="mobile.ui_mobilemail.delete_msg"> 29 <input type="hidden" id="msg_folder" name="msg_folder" value="{folder_id}"> 30 <input type="hidden" id="flag" name="flag" value="seen"> 31 {mails} 32 </form> 33 34 <div class="menu-contexto centraliza" style="display:{show_more};"> 35 <form method="post" action="index.php"> 36 <input type="hidden" name="menuaction" value="mobile.ui_mobilemail.change_page"> 37 <input type="hidden" name="page" value="{page}"> 38 <button type="submit" name="more_messages" title="{lang_more_messages}" class="btn-contexto"> {lang_more} 10 {lang_messages}</button> 39 </form> 40 </div> 41 42 <div id="operacao_lista"> 43 <div class="margin-rodape"> 44 {selecteds}: 45 <button id="selecionar" class="btn-generico" onclick="document.getElementById('menuaction').value='mobile.ui_mobilemail.mark_message_with_flag';document.getElementById('formu').submit();" >marcar como lido</button> 46 <button id="remover" class="btn-generico" onclick="document.getElementById('menuaction').value='mobile.ui_mobilemail.delete_msg';document.getElementById('formu').submit();">remover</button> 42 <div id="operacao_lista"> 43 <div class="margin-rodape"> 44 {selecteds}: 45 <button id="selecionar" class="btn-generico" onclick="document.getElementById('menuaction').value='mobile.ui_mobilemail.mark_message_with_flag';document.getElementById('formu').submit();" >marcar como lido</button> 46 <button id="remover" class="btn-generico" onclick="document.getElementById('menuaction').value='mobile.ui_mobilemail.delete_msg';document.getElementById('formu').submit();">remover</button> 47 </div> 47 48 </div> 48 </d iv>49 </dl> 49 50 <!-- END main_emails --> -
branches/2.2/mobile/templates/default/pc_template.tpl
r3727 r3731 1 1 <!-- BEGIN mobile_home --> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 4 <html xmlns="http://www.w3.org/1999/xhtml"> 3 5 <head> 4 <title> 5 Expresso Mini 6 </title> 6 <title>{global_title}</title> 7 7 <meta content="text/html; width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0; charset=utf-8" http-equiv="Content-Type" name="viewport" /> 8 8 <meta name="format-detection" content="telephone=no" /> … … 11 11 <link href="templates/css/ie6.css" type="text/css" rel="StyleSheet"> 12 12 <![endif]--> 13 14 <script type="text/javascript"> 15 function validate_desktop_search() { 16 var default_folders = document.getElementById("hidden_default_folders"); 17 var personal_folders = document.getElementById("hidden_personal_folders"); 18 var calendar_search = document.getElementById("hidden_calendar_search"); 19 var contacts_search = document.getElementById("hidden_contacts_search"); 20 21 default_folders.value = (document.getElementById("search_default_folders").checked) ? "1" : ""; 22 personal_folders.value = (document.getElementById("search_personal_folders").checked) ? "1" : ""; 23 calendar_search.value = (document.getElementById("search_calendar_search").checked) ? "1" : ""; 24 contacts_search.value = (document.getElementById("search_contacts_search").checked) ? "1" : ""; 25 26 if(default_folders.value == "" && personal_folders.value == "" && calendar_search.value == "" && contacts_search.value == "") { 27 28 if( document.getElementById("box_aviso_negativo") ) { 29 document.getElementById("box_aviso_negativo").innerHTML = '<div class="aviso-negativo"><strong>{lang_search_error_message}</strong></div>'; 30 } else { 31 var targetElement = document.getElementById("topo_box"); 32 var newElement = document.createElement('div'); 33 newElement.className = "bg-neutro"; 34 newElement.id = "box_aviso_negativo"; 35 newElement.innerHTML = '<div class="aviso-negativo"><strong>{lang_search_error_message}</strong></div>'; 36 37 var parent = document.getElementById("topo_box").parentNode; 38 39 if(parent.lastchild == targetElement) { 40 parent.appendChild(newElement); 41 } else { 42 parent.insertBefore(newElement, targetElement.nextSibling); 43 } 44 } 45 46 return false; 47 } else { 48 return true; 49 } 50 } 51 52 </script> 53 13 54 </head> 14 55 <body> 15 56 <div id="global"> 16 <div class="topo"> 17 <h1> 18 Expresso Mini 19 </h1><span><a href="#">Ajuda</a></span> 57 <div id="topo_box" class="topo"> 58 <h1>{global_title}</h1> 59 <span><a href="{href_logout}">{lang_logout}</a></span> 20 60 </div> 21 <form method="post" action="index.php?menuaction=mobile.ui_home.search" id="form_search"></form> 22 <div id="busca"> 23 <table> 24 <tr> 25 <td class="gd"> 26 <input type="text" name="name" /> 27 </td> 28 <td class="pq"> 29 <button name="search_message" class="btn-generico" onclick="document.getElementById('formu_busca').submit();">BUSCAR</button> 30 </td> 31 </tr> 32 </table> 33 </div><!-- INÃCIO NAVEGAÃÃO --> 61 62 {message_box} 63 <!-- BEGIN mobile_home_content --> 64 65 <form method="post" action="index.php?menuaction=mobile.ui_home.search" id="form_busca" onSubmit="return validate_desktop_search()"> 66 <input type="hidden" name="default_folders" id="hidden_default_folders" value=''/> 67 <input type="hidden" name="personal_folders" id="hidden_personal_folders" value=''/> 68 <input type="hidden" name="calendar_search" id="hidden_calendar_search" value=''/> 69 <input type="hidden" name="contacts_search" id="hidden_contacts_search" value=''/> 70 {search} 71 </form> 34 72 <div id="navegacao"> 35 73 {home} 36 </div><!-- IN ÃCIO CONTEÃDO -->74 </div><!-- INÍCIO CONTEÚDO --> 37 75 <div id="conteudo"> 38 76 {content} … … 40 78 </div> 41 79 <div class="rodape"> 42 Projeto ExpressoLivre 2004 - 2010 :: Licença de Software 80 <p>Projeto ExpressoLivre 2004 - 2010 :: Licença de Software</p> 81 <p><a href="index.php?menuaction=mobile.ui_home.change_template&template=mini_mobile">{lang_mini_mobile}</a></p> 43 82 </div> 44 83 </body> 45 84 </html> 46 85 <!-- END mobile_home --> 86 <!-- BEGIN success_message --> 87 <div class="bg-neutro" id="box_aviso_positivo"> 88 <div class="aviso-positivo">, 89 <strong>{message}</strong> 90 </div> 91 </div> 92 <!-- END success_message --> 93 <!-- BEGIN error_message --> 94 <div class="bg-neutro" id="box_aviso_negativo"> 95 <div class="aviso-negativo"> 96 <strong>{message}</strong> 97 </div> 98 </div> 99 <!-- END error_message --> -
branches/2.2/mobile/templates/default/search_bar.tpl
r3690 r3731 4 4 <tr> 5 5 <td class="gd"><input type="text" name="name" ></td> 6 <td class="pq"><button name="search_message" class="btn-generico" onClick="document.getElementById('formu_busca').submit();" >buscar </button></td>6 <td class="pq"><button name="search_message" class="btn-generico" type="submit" >buscar </button></td> 7 7 </tr> 8 8 </table> -
branches/2.2/mobile/templates/default/template.tpl
r3727 r3731 4 4 <html xmlns="http://www.w3.org/1999/xhtml"> 5 5 <head> 6 <title> Expresso Mini</title>6 <title>{global_title}</title> 7 7 <meta content="text/html;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0; charset=utf-8;" http-equiv="Content-Type" name="viewport" /> 8 8 <meta name="format-detection" content="telephone=no" /> 9 {css}9 <link href="templates/css/mobile.css" type="text/css" rel="StyleSheet" /> 10 10 </head> 11 11 <body> 12 12 <div class="topo"> 13 <h1> Expresso Mini</h1>13 <h1>{global_title}</h1> 14 14 <span><a href="{href_logout}">{lang_logout}</a></span> 15 15 </div> … … 30 30 </div> 31 31 <div class="rodape">Projeto ExpressoLivre 2004 - 2010 :: Licença de Software</div> 32 <div class="rodape center"><a href="index.php?menuaction=mobile.ui_home.change_template&template=mini">Utilizar versão para Desktops</a></div>32 <div class="rodape center"><a href="index.php?menuaction=mobile.ui_home.change_template&template=mini_desktop">Mini Desktop</a></div> 33 33 </body> 34 34 </html> … … 36 36 <!-- BEGIN success_message --> 37 37 <div class="bg-neutro"> 38 <div class="aviso-positivo" style="width:98%;padding-left:1%;padding-right:1%;">38 <div class="aviso-positivo"> 39 39 <strong>{message}</strong> 40 40 </div> … … 43 43 <!-- BEGIN error_message --> 44 44 <div class="bg-neutro"> 45 <div class="aviso-negativo" style="width:98%;padding-left:1%;padding-right:1%;">45 <div class="aviso-negativo"> 46 46 <strong>{message}</strong> 47 47 </div>
Note: See TracChangeset
for help on using the changeset viewer.