Changeset 3571
- Timestamp:
- 12/10/10 10:20:48 (13 years ago)
- Location:
- branches/2.2
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/inc/class.imap_functions.inc.php
r3566 r3571 2824 2824 $return["subject"] = $subject; 2825 2825 2826 if (!$return['append']) 2826 if (!$return['append']) { 2827 2827 $return['append'] = imap_last_error(); 2828 $return['has_error'] = true; 2829 } 2828 2830 2829 2831 return $return; -
branches/2.2/mobile/inc/class.mobiletemplate.inc.php
r3564 r3571 13 13 $this->template = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 14 14 $this->template->set_file(Array('home_t' => 'template.tpl')); 15 $this->template->set_block('home_t', 'mobile_home'); 15 $this->template->set_block('home_t', 'mobile_home'); 16 $this->template->set_block('home_t','success_message'); 17 $this->template->set_block('home_t','error_message'); 16 18 } 17 19 … … 25 27 $this->template->set_var("content", $pre_content.$content); 26 28 } 29 30 /* 31 * @function set_msg 32 * @abstract Seta a mensagem de sucesso ou error a depender do tipo. 33 * @author Thiago Antonius 34 */ 35 public function set_msg($msg, $type){ 36 if(isset($msg) && trim($msg)!="") { 37 $this->template->set_var("message", $msg); 38 $this->template->parse("message_box", $type."_message", true); 39 } 40 } 41 42 /* 43 * @function set_success_msg 44 * @abstract Seta a mensagem de sucesso. 45 * @author Thiago Antonius 46 */ 47 public function set_success_msg($msg){ 48 $this->set_msg($msg, "success"); 49 } 50 51 /* 52 * @function set_error_msg 53 * @abstract Seta a mensagem de erro 54 * @author Thiago Antonius 55 */ 56 public function set_error_msg($msg){ 57 $this->set_msg($msg, "error"); 58 } 27 59 28 60 /* … … 31 63 * @author Nilton Emilio Buhrer Neto <niltonneto@celepar.pr.gov.br> 32 64 */ 33 public function print_page($class, $method){ 65 public function print_page($class, $method){ 34 66 $this->print_header(); 35 67 $this->print_navbar(); 36 68 $filename = 'inc/class.'.$class.'.inc.php'; 37 include_once($filename); 69 include_once($filename); 38 70 $obj = new $class(); 39 71 $obj -> $method($_REQUEST); -
branches/2.2/mobile/inc/class.ui_home.inc.php
r3567 r3571 1 1 <?php 2 2 class ui_home { 3 var $imap_functions; 3 var $imap_functions; 4 4 var $db; 5 5 var $bocalendar; … … 20 20 } 21 21 22 function index($params) { 23 $this->template->set_file( Array('home_index' => 'home_index.tpl'));22 function index($params) { 23 $this->template->set_file(array('home_index' => 'home_index.tpl')); 24 24 $this->template->set_block('home_index','page'); 25 25 $this->template->set_block('home_index','folder_block'); … … 34 34 $this->template->set_var('lang_my_folders', lang("my folders")); 35 35 $this->template->set_var('lang_my_commitments', lang("my commitments")); 36 $this->template->set_var('lang_my_contacts', lang("my contacts")); 36 37 $this->template->set_var('lang_new_mail', lang("new mail")); 37 38 $this->template->set_var('lang_mark_as_read', lang("mark as read")); … … 88 89 89 90 $this->template->parse('commitments_box', 'commitment_block' ,True); 90 } 91 } 91 92 93 $GLOBALS['phpgw_info']['mobiletemplate']->set_success_msg($params["success_message"]); 92 94 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'page')); 93 95 } … … 109 111 $this->template->set_var('folder_total_msg', $this->imap_functions->get_num_msgs(array('folder' => $folder["folder_id"] ) ) ); 110 112 111 $this->template->parse($box_target, 'folder_block' , True);113 $this->template->parse($box_target, 'folder_block' ,true); 112 114 } 113 115 } -
branches/2.2/mobile/inc/class.ui_mobilemail.inc.php
r3501 r3571 30 30 'confirm_delete_msg' => True, 31 31 'init_schedule' => true, 32 'redirect' => true,33 32 'add_recipients' => true, 34 33 'add_recipient' => true, 35 'list_folders' => true 34 'list_folders' => true, 35 'save_draft' => true 36 36 ); 37 37 38 var $template; 38 39 var $folders; // Pastas imap 39 40 var $current_folder; // Pasta corrente … … 51 52 function ui_mobilemail() 52 53 { 53 54 54 $this-> load_session(); 55 55 $this->template = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 56 56 57 // Recupera atributos da classe gravados na sessão 57 58 $folders = $GLOBALS['phpgw']->session->appsession('mobilemail.folders','mobile'); … … 100 101 function save_session() 101 102 { 102 103 103 $GLOBALS['phpgw']->session->appsession('mobilemail.folders','mobile',$this->folders); 104 104 $GLOBALS['phpgw']->session->appsession('mobilemail.current_folder','mobile',$this->current_folder); 105 105 $GLOBALS['phpgw']->session->appsession('mobilemail.current_page','mobile',$this->current_page); 106 107 106 } 108 107 … … 161 160 162 161 // Carrega o template 163 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 164 $p->set_file( 165 Array( 166 'view_msg_t' => 'view_msg.tpl' 167 ) 168 ); 169 $p->set_block('view_msg_t', 'mail_header'); 170 $p->set_block('view_msg_t', 'mail_body'); 171 $p->set_block('view_msg_t', 'mail_footer'); 172 $p->set_block('view_msg_t', 'reply_msg'); 173 $p->set_block('view_msg_t', 'attachment_list'); 174 $p->set_block('view_msg_t', 'begin_anchor'); 175 $p->set_block('view_msg_t', 'end_anchor'); 162 $this->template->set_file(array('view_msg_t' => 'view_msg.tpl')); 163 $this->template->set_block('view_msg_t', 'mail_header'); 164 $this->template->set_block('view_msg_t', 'mail_body'); 165 $this->template->set_block('view_msg_t', 'mail_footer'); 166 $this->template->set_block('view_msg_t', 'reply_msg'); 167 $this->template->set_block('view_msg_t', 'attachment_list'); 168 $this->template->set_block('view_msg_t', 'begin_anchor'); 169 $this->template->set_block('view_msg_t', 'end_anchor'); 176 170 177 171 // Define o cabeçalho do e-mail 178 $ p->set_var('from_label', lang("From"));179 $ p->set_var('from', $msg['from']['full']);180 $ p->set_var('to_label', lang("To"));181 182 $ p->set_var('subject_label', lang("Subject"));183 $ p->set_var('subject', $msg['subject']);184 $ p->set_var('date_label', lang("Date"));185 $ p->set_var('date', $msg['fulldate']);172 $this->template->set_var('from_label', lang("From")); 173 $this->template->set_var('from', $msg['from']['full']); 174 $this->template->set_var('to_label', lang("To")); 175 176 $this->template->set_var('subject_label', lang("Subject")); 177 $this->template->set_var('subject', $msg['subject']); 178 $this->template->set_var('date_label', lang("Date")); 179 $this->template->set_var('date', $msg['fulldate']); 186 180 187 181 188 182 // Mostra o corpo do e-mail 189 $ p->set_var('body', strip_tags($msg['body'], $this->allowed_tags)); // Usa a função strip_tags() para filtrar183 $this->template->set_var('body', strip_tags($msg['body'], $this->allowed_tags)); // Usa a função strip_tags() para filtrar 190 184 // as tags que estão presentes no corpo do e-mail. 191 $ p->set_var('link_text', lang("Return"));192 $ p->set_var('link', "index.php?menuaction=mobile.ui_mobilemail.mail_list");193 194 195 $ p->set_var('reply_all_text', lang("Reply to all"));196 $ p->set_var('forward_text', lang("Forward"));197 198 $ p->set_var('reply_text', lang("Reply"));199 $ p->set_var('Delete', lang("Delete"));185 $this->template->set_var('link_text', lang("Return")); 186 $this->template->set_var('link', "index.php?menuaction=mobile.ui_mobilemail.mail_list"); 187 188 189 $this->template->set_var('reply_all_text', lang("Reply to all")); 190 $this->template->set_var('forward_text', lang("Forward")); 191 192 $this->template->set_var('reply_text', lang("Reply")); 193 $this->template->set_var('Delete', lang("Delete")); 200 194 $msg_number = $_GET['msg_number']; 201 195 $msg_folder = $_GET['msg_folder']; 202 $ p->set_var('reply', "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder");203 $ p->set_var('delete', "index.php?menuaction=mobile.ui_mobilemail.confirm_delete_msg&msg_number=$msg_number&msg_folder=$msg_folder");204 $ p->set_var('reply_all', "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&reply_all=true");205 $ p->set_var('forward', "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&forward=true");196 $this->template->set_var('reply', "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder"); 197 $this->template->set_var('delete', "index.php?menuaction=mobile.ui_mobilemail.confirm_delete_msg&msg_number=$msg_number&msg_folder=$msg_folder"); 198 $this->template->set_var('reply_all', "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&type=reply_all"); 199 $this->template->set_var('forward', "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&type=forward"); 206 200 if (!empty($msg['attachments'])) 207 201 { … … 215 209 lang('Download').": ".$attach['name']."</a><br>"; 216 210 } 217 $ p->set_var('attachment_message', $attachs);218 } 219 //$ p->set_var('attachment_message', lang('This message have attachment(s)'));211 $this->template->set_var('attachment_message', $attachs); 212 } 213 //$this->template->set_var('attachment_message', lang('This message have attachment(s)')); 220 214 } 221 215 else 222 216 { 223 $ p->set_var('attachment_message', lang('This message don\'t have attachment(s)'));224 } 225 226 $ p->parse('view_msg_t', 'end_anchor');227 $ p->parse('view_msg_t', 'begin_anchor');228 //$ p->pfp('view_msg_t', 'mail_header');229 /*$ p->pfp('out', 'mail_header');230 //$ p->pfp('view_msg_t', 'mail_body');231 $ p->pfp('out', 'mail_body');232 //$ p->pfp('view_msg_t', 'attachment_list');233 $ p->pfp('out', 'attachment_list');234 //$ p->pfp('view_msg_t', 'mail_footer');235 $ p->pfp('out', 'reply_msg');236 //$ p->pfp('out', 'mail_footer');*/237 238 //$ p->pfp('view_msg_t', 'mail_header');239 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($ p->fp('out', 'mail_header'));240 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($ p->fp('out', 'mail_body'));241 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($ p->fp('out', 'attachment_list'));242 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($ p->fp('out', 'reply_msg'));217 $this->template->set_var('attachment_message', lang('This message don\'t have attachment(s)')); 218 } 219 220 $this->template->parse('view_msg_t', 'end_anchor'); 221 $this->template->parse('view_msg_t', 'begin_anchor'); 222 //$this->template->pfp('view_msg_t', 'mail_header'); 223 /*$this->template->pfp('out', 'mail_header'); 224 //$this->template->pfp('view_msg_t', 'mail_body'); 225 $this->template->pfp('out', 'mail_body'); 226 //$this->template->pfp('view_msg_t', 'attachment_list'); 227 $this->template->pfp('out', 'attachment_list'); 228 //$this->template->pfp('view_msg_t', 'mail_footer'); 229 $this->template->pfp('out', 'reply_msg'); 230 //$this->template->pfp('out', 'mail_footer');*/ 231 232 //$this->template->pfp('view_msg_t', 'mail_header'); 233 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'mail_header')); 234 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'mail_body')); 235 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'attachment_list')); 236 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'reply_msg')); 243 237 } 244 238 … … 310 304 function print_folder_selection() 311 305 { 312 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 313 $p->set_file( 314 Array( 315 'mobilemail_t' => 'mobilemail.tpl' 316 ) 317 ); 318 $p->set_block('mobilemail_t', 'inbox_folder_list'); 319 $p->set_var('lang_folder', lang('Folder')); 306 $this->template->set_file(array('mobilemail_t' => 'mobilemail.tpl')); 307 $this->template->set_block('mobilemail_t', 'inbox_folder_list'); 308 $this->template->set_var('lang_folder', lang('Folder')); 320 309 $folder = str_replace("*","",lang($this->folders[$this->current_folder]['folder_name'])); 321 310 if(!$this->current_folder == 0){ 322 $ p->set_var('lang_inbox', $folder.' :: <a title="'.lang('Inbox').'" href="index.php?menuaction=mobile.ui_mobilemail.mail_list&folder=0">'.lang('Inbox').'</a>');311 $this->template->set_var('lang_inbox', $folder.' :: <a title="'.lang('Inbox').'" href="index.php?menuaction=mobile.ui_mobilemail.mail_list&folder=0">'.lang('Inbox').'</a>'); 323 312 }else{ 324 $ p->set_var('lang_inbox', lang('Inbox'));325 } 326 327 //$ p->set_var('folder_items', $folder_items);328 $ p->parse('mobilemail_t', 'inbox_folder_list');329 //$ p->fpf('out', 'mobilemail_t');330 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($ p->fp('out', 'mobilemail_t'));313 $this->template->set_var('lang_inbox', lang('Inbox')); 314 } 315 316 //$this->template->set_var('folder_items', $folder_items); 317 $this->template->parse('mobilemail_t', 'inbox_folder_list'); 318 //$this->template->fpf('out', 'mobilemail_t'); 319 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'mobilemail_t')); 331 320 332 321 } … … 347 336 348 337 $option_selected = ''; 349 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 350 $p->set_file( 351 Array( 352 'mobilemail_t' => 'mobilemail.tpl' 353 ) 354 ); 355 $p->set_block('mobilemail_t', 'folder_item'); 338 $this->template->set_file(array('mobilemail_t' => 'mobilemail.tpl')); 339 $this->template->set_block('mobilemail_t', 'folder_item'); 356 340 357 341 if (is_numeric($i)) … … 362 346 } 363 347 364 $ p->set_var('option_selected', $option_selected);365 $ p->set_var('folder_id', $j['folder_id']);366 $ p->set_var('folder_name', $j['folder_id']); // Mudar... provavelmente usar preg_replace348 $this->template->set_var('option_selected', $option_selected); 349 $this->template->set_var('folder_id', $j['folder_id']); 350 $this->template->set_var('folder_name', $j['folder_id']); // Mudar... provavelmente usar preg_replace 367 351 // para substituir cpf pelo nome do usuário. 368 352 369 353 if ($j['folder_unseen'] > 0) 370 354 { 371 $ p->set_var('folder_unseen', ' - ('.$j['folder_unseen'].')');355 $this->template->set_var('folder_unseen', ' - ('.$j['folder_unseen'].')'); 372 356 } 373 357 374 $folder_items .= $ p->fp('mobile_t', 'folder_item');358 $folder_items .= $this->template->fp('mobile_t', 'folder_item'); 375 359 } 376 360 … … 378 362 379 363 // Processa o select 380 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 381 $p->set_file( 382 Array( 383 'mobilemail_t' => 'mobilemail.tpl' 384 ) 385 ); 386 $p->set_block('mobilemail_t', 'folder_list'); 387 $p->set_var('folder_items', $folder_items); 388 $p->parse('mobilemail_t', 'folder_list'); 389 //$p->pfp('out', 'mobilemail_t'); 390 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out', 'mobilemail_t')); 364 $this->template->set_file(array('mobilemail_t' => 'mobilemail.tpl')); 365 $this->template->set_block('mobilemail_t', 'folder_list'); 366 $this->template->set_var('folder_items', $folder_items); 367 $this->template->parse('mobilemail_t', 'folder_list'); 368 //$this->template->pfp('out', 'mobilemail_t'); 369 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'mobilemail_t')); 391 370 392 371 } … … 409 388 isset($GLOBALS['phpgw_info']['user']['preferences']['mobile']['max_message_per_page'])? 410 389 $GLOBALS['phpgw_info']['user']['preferences']['mobile']['max_message_per_page']:10; 411 // var $pages;412 // var $actual_page;413 // var $number_of_messages;414 390 415 391 if (!isset($this->number_of_messages)) … … 458 434 // Cria a lista de e-mails 459 435 $mail_rows = ''; 460 $unread_msg_count = 0; 436 $unread_msg_count = 0; 437 461 438 if ($this->number_of_messages != 0) 462 439 { … … 464 441 foreach ($messages as $index => $msg) 465 442 { 466 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 467 $p->set_file( 468 Array( 469 'mobilemail_t' => 'mobilemail.tpl' 470 ) 471 ); 443 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 444 $p->set_file(array('mobilemail_t' => 'mobilemail.tpl')); 472 445 $p->set_block('mobilemail_t', 'mail_row'); 473 446 $p->set_block('mobilemail_t', 'end_strong'); … … 499 472 } 500 473 } 501 474 502 475 // Imprime a lista de e-mails 503 476 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 504 $p->set_file( 505 Array( 506 'mobilemail_t' => 'mobilemail.tpl' 507 ) 508 ); 477 $p->set_file(array('mobilemail_t' => 'mobilemail.tpl')); 509 478 $p->set_block('mobilemail_t', 'mail_list'); 510 479 $p->set_var('mail_rows', $mail_rows); … … 523 492 // Lista de e-mails vazia 524 493 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 525 $p->set_file( 526 Array( 527 'mobilemail_t' => 'mobilemail.tpl' 528 ) 529 ); 494 $p->set_file(array('mobilemail_t' => 'mobilemail.tpl')); 530 495 $p->set_block('mobilemail_t', 'empty_list'); 531 496 $p->set_var('empty_message', lang('Empty folder')); … … 554 519 { 555 520 556 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 557 $p->set_file( 558 Array( 559 'mobilemail_t' => 'mobilemail.tpl' 560 ) 561 ); 562 521 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 522 $p->set_file(array('mobilemail_t' => 'mobilemail.tpl')); 563 523 $p->set_block('mobilemail_t', 'space'); 564 524 $p->set_block('mobilemail_t', 'begin_anchor'); … … 595 555 // Geração dos links "anterior" e "próximo" 596 556 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 597 $p->set_file( 598 Array( 599 'mobilemail_t' => 'mobilemail.tpl' 600 ) 601 ); 557 $p->set_file(array('mobilemail_t' => 'mobilemail.tpl')); 602 558 603 559 //$p->set_block('mobilemail_t', 'space'); … … 649 605 } 650 606 651 /* 652 * @function new_msg() 653 * @abstract Gera o formulário para criar novo e-mail. 654 * @author Rommel de Brito Cysne <rommel.cysne@serpro.gov.br> 655 656 function new_msg() 657 { 658 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 659 $p->set_file( 660 Array( 661 'new_msg_t' => 'new_msg.tpl' 662 ) 663 ); 664 665 $p->set_block('new_msg_t', 'msg_header'); 666 $p->set_block('new_msg_t', 'text'); 667 $p->set_block('new_msg_t', 'begin_form'); 668 $p->set_block('new_msg_t', 'end_form'); 669 $p->set_block('new_msg_t', 'hidden_area'); 670 671 $p->set_var('to_label', lang("To")); 672 $p->set_var('to', ""); 673 $p->set_var('to_mail', ""); 674 675 $p->set_var('subject_label', lang("Subject")); 676 $p->set_var('subject', ""); 677 678 $p->set_var('msg_number', $_GET['msg_number']); 679 $p->set_var('msg_folder', $_GET['msg_folder']); 680 681 $p->set_var('send_label', lang("Send")); 682 683 $p->set_var('form_action', "index.php?menuaction=mobile.ui_mobilemail.send_mail"); 684 685 $p->pfp('out', 'begin_form'); 686 $p->pfp('out', 'msg_header'); 687 $p->pfp('out', 'text'); 688 $p->pfp('out', 'hidden_area'); 689 $p->pfp('out', 'end_form'); 690 691 692 } 693 */ 607 function define_action_message($type) { 608 switch($type) { 609 case "clk": 610 case "cc_mob": 611 $this->template->set_var('action_msg', lang("New message")); 612 break; 613 case "reply_all": 614 $this->template->set_var('action_msg', lang("Reply All")); 615 break; 616 case "user_add": 617 $this->template->set_var('action_msg', lang("Add Recipient")); 618 break; 619 case "forward": 620 $this->template->set_var('action_msg', lang("Forward")); 621 break; 622 } 623 } 624 694 625 /* 695 626 * @function new_msg() … … 697 628 * @author Rommel de Brito Cysne <rommel.cysne@serpro.gov.br> 698 629 */ 699 700 function new_msg() 701 { 702 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 703 $p->set_file( 704 Array( 705 'new_msg_t' => 'new_msg.tpl' 706 ) 707 ); 708 709 710 if (isset($_GET['msg_number'])) 711 { 712 $params = array( 713 'msg_number' => $_GET['msg_number'], 714 ); 715 716 $msg_number = $_GET['msg_number']; 717 } 718 719 if($params) 720 { 721 $msg = $this->imap_functions->get_info_msg($params); 722 } 723 724 $p->set_block('new_msg_t', 'msg_header'); 725 $p->set_block('new_msg_t', 'text'); 726 $p->set_block('new_msg_t', 'begin_form'); 727 $p->set_block('new_msg_t', 'end_form'); 728 $p->set_block('new_msg_t', 'hidden_area'); 729 730 if($_GET['clk']) 731 { 732 $p->set_var('field_add_user', '<p> <input type="submit" name="action" value="'.lang("Add Recipient").'"></p>'); 733 $p->set_var('to_label', lang("To")); 734 $p->set_var('to', ""); 735 $p->set_var('to_mail', ""); 736 $p->set_var('subject_label', lang("Subject")); 737 $p->set_var('subject', ""); 738 739 } 740 else if($_GET['cc_mob']) 741 { 742 743 $p->set_var('to_label', lang("To")); 744 $p->set_var('to', $_GET['input_to']); 745 $p->set_var('to_mail', $_GET['input_to_mail']); 746 747 $p->set_var('subject_label', lang("Subject")); 748 $p->set_var('subject', ""); 749 750 $p->set_var('msg_number', $_GET['msg_number']); 751 $p->set_var('msg_folder', $_GET['msg_folder']); 752 753 $p->set_var('read_only', 'readonly'); 754 } 755 else if($_GET['reply_all']){ 756 $reply_to_all = $msg['from']['full']; 757 $reply_to_all = $msg['toaddress2'] ? $reply_to_all.','.$msg['toaddress2']:$reply_to_all; 758 $reply_to_all = $msg['cc'] ? $reply_to_all.','.$msg['cc']:$reply_to_all; 759 $reply_to_all = $msg['bcc'] ? $reply_to_all.','.$msg['bcc']:$reply_to_all; 760 $names = implode(',<br/>',explode(',',$reply_to_all)); 630 function new_msg($params) 631 { 632 $this->template->set_file(array('new_msg_t' => 'new_msg.tpl')); 633 $this->template->set_block('new_msg_t', 'page'); 634 $this->template->set_block('new_msg_t', 'add_recipient_block'); 635 $this->template->set_var('lang_back', lang("back")); 636 $this->template->set_var('lang_calendar', strtoupper(lang("Calendar"))); 637 $this->template->set_var('lang_send', strtoupper(lang("Send"))); 638 $this->template->set_var('lang_attachment', strtoupper(lang("attachment"))); 639 $this->template->set_var('lang_cancel', strtoupper(lang("cancel"))); 640 $this->template->set_var('lang_save_draft', strtoupper(lang("save draft"))); 641 $this->template->set_var('type', $_GET['type']); 642 $this->template->set_var('lang_to', lang("To")); 643 $this->template->set_var('lang_cc', lang("cc")); 644 $this->template->set_var('lang_subject', lang("Subject")); 645 $this->template->set_var('lang_mark_as_important', lang("mark as important")); 646 $this->template->set_var('lang_read_confirmation', lang("read confirmation")); 647 $this->template->set_var('lang_add_history', lang("add history")); 648 649 650 $this->template->set_var('type', $_REQUEST['type']); 651 $this->template->parse('add_recipient_box', 'add_recipient_block', true); 652 653 $this->define_action_message($_REQUEST['type']); 654 655 if(isset($params["error_message"])) { 656 $this->template->set_var('to', $_POST['input_to']); 657 $this->template->set_var('to_mail', $_POST['input_to_mail']); 658 $this->template->set_var('cc', $_POST['input_cc']); 659 $this->template->set_var('cc_mail', $_POST['input_cc_mail']); 660 $this->template->set_var('subject', $_POST['input_subject']); 661 $this->template->set_var('msg_number', $_POST['msg_number']); 662 $this->template->set_var('msg_folder', $_POST['msg_folder']); 663 $this->template->set_var('body_value', $_POST['body']); 664 $this->template->set_var('msg_folder', $_POST['folder']); 665 $this->template->set_var('msg_number', $_POST['reply_msg_number']); 666 $this->template->set_var('from', $_POST['reply_from']); 667 $this->template->set_var('check_important', ( ( $_POST['check_important'] ) ? "checked" : "" ) ); 668 $this->template->set_var('check_read_confirmation', ( ( $_POST['check_read_confirmation'] ) ? "checked" : "" ) ); 669 $this->template->set_var('check_add_history', ( ( $_POST['check_add_history'] ) ? "checked" : "" ) ); 761 670 762 $array_emails = explode(',',$reply_to_all); 763 $reply_to_all =''; 764 foreach ($array_emails as $index => $email){ 765 $flag = preg_match('/<(.*?)>/',$email,$reply); 766 $reply_to_all .= $flag == 0 ? $email.', ':$reply[1].', '; 767 } 768 769 $p->set_var('to_label', lang("To")); 770 $p->set_var('to', $reply_to_all); 771 772 $p->set_var('to_mail', $_GET['input_to_mail']); 773 774 $p->set_var('subject_label', lang("Subject")); 775 $p->set_var('subject', "Re:" . $msg['subject']); 776 777 $p->set_var('msg_number', $_GET['msg_number']); 778 $p->set_var('msg_folder', $_GET['msg_folder']); 779 } 780 else if($_GET['user_add']){ 781 $p->set_var('to_label', lang("To")); 671 $GLOBALS['phpgw_info']['mobiletemplate']->set_error_msg($params["error_message"]); 672 } else { 673 if (isset($_GET['msg_number'])) $msg = $this->imap_functions->get_info_msg(array('msg_number' => $_GET['msg_number'] ) ); 782 674 783 $listMail = implode(',',$_SESSION['mobile_mail']); 784 785 $p->set_var('field_add_user', '<p> <input type="submit" name="action" value="'.lang("Add Recipient").'"></p>'); 786 $p->set_var('to', $listMail); 787 $p->set_var('to_mail', $listMail); 788 $p->set_var('subject_label', lang("Subject")); 789 $p->set_var('subject', $_SESSION['subject_mail']); 790 $p->set_var('body_value', $_SESSION['body_mail']); 791 792 $p->set_var('msg_number', $_GET['msg_number']); 793 $p->set_var('msg_folder', $_GET['msg_folder']); 794 795 } 796 else if($_GET['forward']){ 797 $p->set_var('field_add_user', '<p> <input type="submit" name="action" value="'.lang("Add Recipient").'"></p>'); 798 $p->set_var('from_label', lang("From")); 799 $p->set_var('from', $msg['toaddress2']); 800 801 $p->set_var('to_label', lang("To")); 802 $mail_to = $msg['from']['full']; 803 804 $p->set_var('subject_label', lang("Subject")); 805 $p->set_var('subject', "Enc:" . $msg['subject']); 806 $p->set_var('body_value', strip_tags($msg['body'])); // Usa a função strip_tags() para filtrar 807 // as tags que estão presentes no corpo do e-mail. 808 809 $p->set_var('msg_number', $_GET['msg_number']); 810 $p->set_var('msg_folder', $_GET['msg_folder']); 811 812 } 813 else{ 814 $p->set_var('from_label', lang("From")); 815 $p->set_var('from', $msg['toaddress2']); 816 817 $p->set_var('to_label', lang("To")); 818 $mail_to = $msg['from']['full']; 819 $p->set_var('to', $msg['from']['name']); 820 $p->set_var('to_mail', $msg['from']['email']); 821 822 $p->set_var('subject_label', lang("Subject")); 823 $p->set_var('subject', "Re:" . $msg['subject']); 824 825 $p->set_var('msg_number', $_GET['msg_number']); 826 $p->set_var('msg_folder', $_GET['msg_folder']); 827 828 $p->set_var('read_only', "readonly"); 829 } 830 $_SESSION['mobile_mail'] = Array(); 831 $p->set_var('send_label', lang("Send")); 832 $p->set_var('form_action', "index.php?menuaction=mobile.ui_mobilemail.redirect"); 833 834 /*$p->pfp('out', 'begin_form'); 835 $p->pfp('out', 'msg_header'); 836 $p->pfp('out', 'text'); 837 $p->pfp('out', 'hidden_area'); 838 $p->pfp('out', 'end_form');*/ 839 840 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out', 'begin_form')); 841 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out', 'msg_header')); 842 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out', 'text')); 843 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out', 'hidden_area')); 844 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out', 'end_form')); 845 } 846 675 if($_REQUEST['type']=="clk") 676 { 677 $this->template->set_var('to', ""); 678 $this->template->set_var('to_mail', ""); 679 $this->template->set_var('cc', ""); 680 $this->template->set_var('cc_mail', ""); 681 $this->template->set_var('subject', ""); 682 } 683 else if($_REQUEST['type']=="cc_mob") 684 { 685 $this->template->set_var('to', $_GET['input_to']); 686 $this->template->set_var('to_mail', $_GET['input_to_mail']); 687 $this->template->set_var('cc', $_GET['input_cc']); 688 $this->template->set_var('cc_mail', $_GET['input_cc_mail']); 689 $this->template->set_var('subject', ""); 690 691 $this->template->set_var('msg_number', $_GET['msg_number']); 692 $this->template->set_var('msg_folder', $_GET['msg_folder']); 693 694 $this->template->set_var('read_only', 'readonly'); 695 } 696 else if($_REQUEST['type']=="reply_all"){ 697 $reply_to_all = $msg['from']['full']; 698 $reply_to_all = $msg['toaddress2'] ? $reply_to_all.','.$msg['toaddress2']:$reply_to_all; 699 $reply_to_all = $msg['cc'] ? $reply_to_all.','.$msg['cc']:$reply_to_all; 700 $reply_to_all = $msg['bcc'] ? $reply_to_all.','.$msg['bcc']:$reply_to_all; 701 $names = implode(',<br/>',explode(',',$reply_to_all)); 702 703 $array_emails = explode(',',$reply_to_all); 704 $reply_to_all =''; 705 706 foreach ($array_emails as $index => $email){ 707 $flag = preg_match('/<(.*?)>/',$email,$reply); 708 $reply_to_all .= $flag == 0 ? $email.', ':$reply[1].', '; 709 } 710 711 $this->template->set_var('to', $reply_to_all); 712 $this->template->set_var('to_mail', $_GET['input_to_mail']); 713 $this->template->set_var('subject', "Re:" . $msg['subject']); 714 715 $this->template->set_var('msg_number', $_GET['msg_number']); 716 $this->template->set_var('msg_folder', $_GET['msg_folder']); 717 } 718 else if($_REQUEST['type']=="user_add"){ 719 $listMail = implode(',',$_SESSION['mobile_mail']); 720 721 $this->template->set_var('to', $listMail); 722 $this->template->set_var('to_mail', $listMail); 723 $this->template->set_var('subject', $_SESSION['subject_mail']); 724 $this->template->set_var('body_value', $_SESSION['body_mail']); 725 726 $this->template->set_var('msg_number', $_GET['msg_number']); 727 $this->template->set_var('msg_folder', $_GET['msg_folder']); 728 } 729 else if($_REQUEST['type']=="forward"){ 730 $this->template->set_var('from', $msg['toaddress2']); 731 732 $mail_to = $msg['from']['full']; 733 734 $this->template->set_var('subject', "Enc:" . $msg['subject']); 735 $this->template->set_var('body_value', strip_tags($msg['body'])); // Usa a função strip_tags() para filtrar 736 // as tags que estão presentes no corpo do e-mail. 737 738 $this->template->set_var('msg_number', $_GET['msg_number']); 739 $this->template->set_var('msg_folder', $_GET['msg_folder']); 740 } 741 else{ 742 $this->template->set_var('from', $msg['toaddress2']); 743 744 $mail_to = $msg['from']['full']; 745 $this->template->set_var('to', $msg['from']['name']); 746 $this->template->set_var('to_mail', $msg['from']['email']); 747 748 $this->template->set_var('subject', "Re:" . $msg['subject']); 749 750 $this->template->set_var('msg_number', $_GET['msg_number']); 751 $this->template->set_var('msg_folder', $_GET['msg_folder']); 752 753 $this->template->set_var('read_only', "readonly"); 754 } 755 } 756 757 $_SESSION['mobile_mail'] = array(); 758 759 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'page')); 760 } 761 762 /* 763 * @function save_draft() 764 * @abstract Função que salva o email como rascunho 765 * @author Thiago Antonius 766 */ 767 function save_draft($params) 768 { 769 $params["folder"] = "INBOX/".$_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultDraftsFolder']; 770 $return = $this->imap_functions->save_msg($params); 771 if($return["has_error"]) { 772 $params["error_message"] = lang("draft not save")."<br>".lang("error") . $return["append"]; 773 $this->new_msg( $params ); 774 }else { 775 $ui_home = CreateObject('mobile.ui_home'); 776 $params["success_message"] = lang("draft saved"); 777 $ui_home->index( $params ); 778 } 779 } 780 847 781 /* 848 782 * @function send_mail() … … 858 792 $userName = $_POST['input_to']; //"User Someone"; 859 793 $userMail = $_POST['input_to_mail']; //"user.someone@mail.com.br"; 794 $ccUserName = $_POST['input_cc']; 795 $ccUserMail = $_POST['input_cc_mail']; 860 796 $subject = $_POST['input_subject']; //"Mail Subject"; 861 797 $body = $_POST['body']; //"Mail body. Any text."; 862 863 if($userMail == "") 864 { 865 $userMail = $userName; 866 } 798 $isImportant = $_POST['check_important']; 799 $addHistory = $_POST['check_add_history']; 800 $readConfirmation = $_POST['check_read_confirmation']; 801 $msgNumber = $_POST['reply_msg_number']; 802 803 if($userMail == "") $userMail = $userName; 804 if($ccUserMail == "") $ccUserMail = $ccUserName; 867 805 868 806 //Cria objeto … … 873 811 $error_msg = lang("Some addresses in the To field were not recognized. Please make sure that all addresses are properly formed"); 874 812 } 813 814 if(!$this->imap_functions->add_recipients("cc", $ccUserMail, &$mail)) 815 { 816 $error_msg = lang("Some addresses in the CC field were not recognized. Please make sure that all addresses are properly formed"); 817 } 875 818 876 819 $mail->IsSMTP(); … … 885 828 //Nome do remetente do email 886 829 $mail->SenderName = $mail->FromName = $_SESSION['phpgw_info']['expressomail']['user']['fullname']; 887 //Endereço de destino do email, ou seja, pra onde a mensagem vai888 //$mail->AddAddress("$userMail");889 830 //Assunto da mensagem 890 831 $mail->Subject = $subject; 891 832 //Corpo da mensagem 892 833 $mail->Body .= "<br />$body<br />"; 893 894 //Cria um objeto template 895 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']); 896 //Define o template para mensagens de retorno da funcao 897 $p->set_file( 898 Array( 899 'sent_msg_t' => 'sent_msg.tpl' 900 ) 901 ); 902 903 $p->set_block('sent_msg_t','retorno'); 904 @header('Refresh: 1; url=./'); 834 //Important message 835 if($isImportant) $mail->isImportant(); 836 //add history 837 if($addHistory && $msgNumber) { 838 $msg = $this->imap_functions->get_info_msg(array('msg_number' => $msgNumber ) ); 839 $mail->Body .= "<br />".$msg['body']."<br />"; 840 } 841 //read confirmation 842 if ($readConfirmation) $mail->ConfirmReadingTo = $_SESSION['phpgw_info']['expressomail']['user']['email']; 905 843 906 844 //Se o e-mail nao for enviado por qualquer motivo... 907 if(!$mail->Send()) 908 { 909 //... é exibida a mensagem abaixo e o respectivo erro... 910 $p->set_var('msg', lang("Message not sent")); 911 $p->set_var('erro', lang("error") . $mail->ErrorInfo); 912 913 //... caso contrário... 845 if(!$mail->Send()) { 846 $params["error_message"] = lang("Message not sent")."<br>".lang("error") . $mail->ErrorInfo; 847 $this->new_msg( $params ); 914 848 }else { 915 //... mostra mensagem de sucesso e link de retorno à lista de e-mail 916 $p->set_var('msg', lang("Message sent successfully")); 917 //$p->set_var('link_text', lang("Return")); 918 //$p->set_var('link', "mobilemail_index.php"); 919 920 } 921 922 //$p->pfp('out','retorno'); 923 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out','retorno')); 924 849 $ui_home = CreateObject('mobile.ui_home'); 850 $params["success_message"] = lang("Message sent successfully"); 851 $ui_home->index($params); 852 } 925 853 } 926 854 … … 928 856 { 929 857 //Cria um objeto template 930 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']);931 858 //Define o template para mensagens de retorno da funcao 932 $p->set_file( 933 Array( 934 'delete_msg_t' => 'delete_msg.tpl' 935 ) 936 ); 937 $p->set_block('delete_msg_t','retorno'); 938 $p->set_var('lang_delete_msg', lang("Do you like to delete this message?")); 939 $p->set_var('lang_yes', lang("Yes")); 940 $p->set_var('lang_no', lang("No")); 941 $p->set_var('link_yes', 'index.php?menuaction=mobile.ui_mobilemail.delete_msg&msg_number='.$_GET['msg_number'].'&msg_folder='.$_GET['msg_folder']); 942 $p->set_var('link_no', 'index.php?menuaction=mobile.ui_mobilemail.show_msg&msg_number='.$_GET['msg_number'].'&msg_folder='.$_GET['msg_folder']); 943 944 $p->pfp('out','retorno'); 859 $this->template->set_file(array('delete_msg_t' => 'delete_msg.tpl')); 860 $this->template->set_block('delete_msg_t','retorno'); 861 $this->template->set_var('lang_delete_msg', lang("Do you like to delete this message?")); 862 $this->template->set_var('lang_yes', lang("Yes")); 863 $this->template->set_var('lang_no', lang("No")); 864 $this->template->set_var('link_yes', 'index.php?menuaction=mobile.ui_mobilemail.delete_msg&msg_number='.$_GET['msg_number'].'&msg_folder='.$_GET['msg_folder']); 865 $this->template->set_var('link_no', 'index.php?menuaction=mobile.ui_mobilemail.show_msg&msg_number='.$_GET['msg_number'].'&msg_folder='.$_GET['msg_folder']); 866 867 $this->template->pfp('out','retorno'); 945 868 } 946 869 … … 959 882 $this->imap_functions->move_messages($params); 960 883 //Cria um objeto template 961 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']);962 884 //Define o template para mensagens de retorno da funcao 963 $p->set_file( 964 Array( 965 'move_msg_t' => 'sent_msg.tpl' 966 ) 967 ); 968 $p->set_block('move_msg_t','retorno'); 885 $this->template->set_file(array('move_msg_t' => 'sent_msg.tpl')); 886 $this->template->set_block('move_msg_t','retorno'); 969 887 //@header('Refresh: 1; url=./ui_mobilemail.index?folder='.$this->current_folder); 970 $ p->set_var('msg', lang("The message was moved to trash"));971 972 $ p->pfp('out','retorno');888 $this->template->set_var('msg', lang("The message was moved to trash")); 889 890 $this->template->pfp('out','retorno'); 973 891 974 892 } … … 989 907 990 908 function init_schedule() { 991 992 909 if($_POST['input_to'] != '' && !is_null($_POST['input_to'])) 993 910 array_push($_SESSION['mobile_mail'],$_POST['input_to']); 911 994 912 $_SESSION['subject_mail'] = $_POST['input_subject']; 995 913 $_SESSION['body_mail'] = $_POST['body']; … … 1017 935 } 1018 936 1019 function redirect() {1020 if($_POST[action] == lang("Send")){1021 $this->send_mail();1022 }else{1023 $this->init_schedule();1024 }1025 }1026 1027 937 function list_folders(){ 1028 $p = CreateObject('phpgwapi.Template', PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set']);1029 938 //Define o template para mensagens de retorno da funcao 1030 $p->set_file( 1031 Array( 1032 'folders_t' => 'folders.tpl' 1033 ) 1034 ); 1035 $p->set_block('folders_t','retorno'); 939 $this->template->set_file(array('folders_t' => 'folders.tpl')); 940 $this->template->set_block('folders_t','retorno'); 1036 941 1037 942 $folders_list = ''; … … 1055 960 } 1056 961 } 1057 $ p->set_var('folders_list', $folders_list);1058 $ p->pfp('out','retorno');962 $this->template->set_var('folders_list', $folders_list); 963 $this->template->pfp('out','retorno'); 1059 964 1060 965 } -
branches/2.2/mobile/index.php
r3268 r3571 11 11 { 12 12 //$location = 'Location: ' . $fwConstruct . 'login.php'; 13 14 15 16 17 18 19 20 13 if ($_SERVER['HTTPS'] != 'on') 14 { 15 $aux = 'http://'; 16 } 17 else 18 { 19 $aux = 'https://'; 20 } 21 21 Header('Location: ' . $aux . $fwConstruct . '/mobile/login.php'); 22 22 exit; … … 34 34 */ 35 35 36 if(isset($_ GET['menuaction']))36 if(isset($_REQUEST['menuaction'])) 37 37 { 38 list($mobileapp,$class,$method) = explode('.',@$_ GET['menuaction']);38 list($mobileapp,$class,$method) = explode('.',@$_REQUEST['menuaction']); 39 39 if(! $mobileapp || ! $class || ! $method) 40 40 { -
branches/2.2/mobile/login.php
r3553 r3571 40 40 //verificando a mensagem erro ou sucesso 41 41 $cd = check_logoutcode($_GET['cd']); 42 $tmpl->set_var(' cd', $cd);42 $tmpl->set_var('message', $cd); 43 43 44 44 if(trim($cd) != "") 45 $tmpl->parse('message_box', (($_GET['cd'] == 1) ? 'success_message' : 'error_message') , True);45 $tmpl->parse('message_box', (($_GET['cd'] == 1) ? 'success_message' : 'error_message') ,true); 46 46 47 47 $tmpl->set_var('css',CreateObject("mobile.mobiletemplate")->get_mobile_css()); -
branches/2.2/mobile/setup/phpgw_pt-br.lang
r3564 r3571 1 attachment mobile pt-br Anexo 1 2 Add Recipient mobile pt-br Adicionar Destinatário 3 cancel mobile pt-br Cancelar 2 4 Calendar mobile pt-br Agenda 3 5 contact center mobile pt-br Endereços … … 9 11 download attachs mobile pt-br Deseja baixar anexos em e-mails? 10 12 Download mobile pt-br Efetuar o download do anexo 13 draft not save mobile pt-br Rascunho não foi salvo 14 draft saved mobile pt-br Rascunho foi guardado com sucesso 11 15 Drafts mobile pt-br Rascunhos 12 16 E-mail mobile pt-br Caixa de Entrada … … 15 19 Logout mobile pt-br Sair 16 20 To mobile pt-br Para 21 cc mobile pt-br Com Cópia 17 22 my mail mobile pt-br Meus E-mails 23 my contacts mobile pt-br Meus Contatos 18 24 my commitments mobile pt-br Meus Compromissos 19 25 my folders mobile pt-br Minhas Pastas 20 26 mark as read mobile pt-br marcar como lido 27 mark as important mobile pt-br marcar como importante 28 read confirmation mobile pt-br receber confirmação de leitura 29 add history mobile pt-br adicionar histórico 21 30 new mail mobile pt-br Novo 31 save draft mobile pt-br Salvar rascunho 22 32 Subject mobile pt-br Assunto 23 Send mobile pt-br Enviar mensagem33 Send mobile pt-br Enviar 24 34 Reply mobile pt-br Responder 25 35 Reply to All mobile pt-br Responder a Todos … … 46 56 error mobile pt-br Error: 47 57 Some addresses in the To field were not recognized. Please make sure that all addresses are properly formed mobile pt-br Alguns endereços no campo "Para" não foram reconhecidos. Por favor certifique-se que todos endereços estão corretos 58 Some addresses in the CC field were not recognized. Please make sure that all addresses are properly formed mobile pt-br Alguns endereços no campo "Com Cópia" não foram reconhecidos. Por favor certifique-se que todos endereços estão corretos 48 59 Empty folder mobile pt-br Pasta vazia 49 60 Accept mobile pt-br Aceitar … … 97 108 minutes ago mobile pt-br minutos atrás 98 109 minute ago mobile pt-br minuto atrás 99 New message mobile pt-br Nova mensagem -110 New message mobile pt-br Nova mensagem -
branches/2.2/mobile/templates/css/mobile.css
r3553 r3571 39 39 40 40 .busca{ padding-left: 5px; padding-top:5px; height:25px;; background-color:#E4E4E4} 41 .busca input{height: 10px;}41 .busca input{height:20px;} 42 42 .par{background-color:#EEF7FA} 43 43 .topo{background-color:#3E3E3D;} … … 47 47 .nome-item{ float:left; width:160px;} 48 48 .menu-contexto{ padding-top:3px; padding-left:5px; height:20px; font-size:60%; background-color:#3399CC; color:#FFFFFF;} 49 .btn-contexto{ font-size:90%; border:none; background-color:#2B84AF; color:#FFFFFF;} 49 .btn-contexto{ font-size:90%; background-color:#2B84AF; color:#FFFFFF; border:none;} 50 .btn-generico, .btn-contexto{ height:18px; } 50 51 .titulo_mensagem{ font-size:75%; font-weight:bold;} 51 52 .titulo-sdt{ padding:2px 0px 0px 5px; height:20px; font-weight:bold; font-size: 80%; color:#3E3E3D; background-color:#CEE5EF;} … … 68 69 .label-normal{font-style:italic;} 69 70 70 .campos-entrada{ height:110px; font-size:70%; background-color:#CEE5EF;} 71 .campos-correspondencia{ height:65px; font-size:70%; background-color:#CEE5EF;} 72 .campos-correspondencia input, .campos-entrada input{height:9px;} 71 .campos-entrada{ height:75px; font-size:70%; background-color:#CEE5EF;} 72 .campos-correspondencia{ height:75px; font-size:70%; background-color:#CEE5EF;} 73 .campos-correspondencia input{height:20px;} 74 .campos-entrada input{height:10px;} 73 75 .posiciona-esquerda{padding:5px 0px 0px 10px; float:left;} 74 .posiciona-esquerda p{height:20px;} 76 .posiciona-esquerda p{height:22px;} 77 .posiciona-esquerda p label{float:left;width:75px;} 75 78 76 79 .login{ background-color:#EEF7FA;} -
branches/2.2/mobile/templates/default/add_participants.tpl
r1499 r3571 71 71 <input type="hidden" id="input_subject" name="input_subject" value="" style="display: none;"/> 72 72 <input type="hidden" id="body" name="body" value="" style="display: none;"/> 73 <input type="hidden" id=" cc_mob" name="cc_mob" value="1" style="display: none;"/>73 <input type="hidden" id="type" name="type" value="cc_mob" style="display: none;"/> 74 74 </form> 75 75 <!-- END row --> -
branches/2.2/mobile/templates/default/add_recipients.tpl
r1474 r3571 62 62 63 63 </tr> 64 <input type="hidden" id="input_to" name="input_to" value="{row_nome}" style="display: none;"/> 65 <input type="hidden" id="input_to_mail" name="input_to_mail" value="{row_email}" style="display: none;"/> 66 <input type="hidden" id="input_subject" name="input_subject" value="" style="display: none;"/> 67 <input type="hidden" id="body" name="body" value="" style="display: none;"/> 68 <input type="hidden" id="cc_mob" name="cc_mob" value="1" style="display: none;"/> 64 65 <input type="hidden" id="input_to" name="input_to" value="{row_nome}" style="display: none;"/> 66 <input type="hidden" id="input_to_mail" name="input_to_mail" value="{row_email}" style="display: none;"/> 67 <input type="hidden" id="input_subject" name="input_subject" value="" style="display: none;"/> 68 <input type="hidden" id="body" name="body" value="" style="display: none;"/> 69 <input type="hidden" id="type" name="type" value="cc_mob" style="display: none;"/> 69 70 </form> 70 71 <!-- END row --> -
branches/2.2/mobile/templates/default/cc_main.tpl
r3460 r3571 55 55 <form id="cc_form" name="cc_form" method="POST" action="{form_action}"> 56 56 <tr bgcolor="{tr_color}"> 57 <td><a href="{form_action}&input_to={row_nome}&input_to_mail={row_email}& cc_mob=1">{row_nome}</a></td>57 <td><a href="{form_action}&input_to={row_nome}&input_to_mail={row_email}&type=cc_mob">{row_nome}</a></td> 58 58 <td align="center">{row_telefone}</td> 59 59 <td align="center">{row_mobile}</td> -
branches/2.2/mobile/templates/default/home_index.tpl
r3564 r3571 1 1 <!-- BEGIN page --> 2 <div class="busca"> <input name="palavra_chave"> <button id="buscar" class="btn-generico" >{lang_search}</button></div> 3 4 <div class="menu-contexto"> 5 {lang_new_mail}: 6 <button name="email" class="btn-contexto">{lang_context_email}</button> 7 <button name="contato" class="btn-contexto">{lang_context_contact}</button> 8 <button name="compromisso" class="btn-contexto">{lang_context_commitment}</button> 9 </div> 10 11 <dl id="lista_miolo"> 12 <dt><input type="checkbox" name="check_default_folders"></input>{lang_my_mail} | <span class="rotulo-complementar">Usados {quota_percent}% [{quota_used}/{quota_limit}]</span></dt> 13 {default_folders_box} 14 <dt><input type="checkbox" name="check_commitments">{lang_my_commitments}</dt> 15 {commitments_box} 16 <dt><input type="checkbox" name="check_personal_folders"><a href="index.php?menuaction=mobile.ui_home.index&expand_folders={expand_folders}">{lang_my_folders}</a></dt> 17 {personal_folders_box} 18 </dl> 2 <form method="post" action="index.php?menuaction=mobile.ui_home.search"> 3 <div class="busca"> 4 <input type="text" name="name" id="name" /> 5 <input type="submit" id="buscar" class="btn-generico" value="{lang_search}" /> 6 </div> 7 8 <div class="menu-contexto"> 9 {lang_new_mail}: 10 <a href="index.php?menuaction=mobile.ui_mobilemail.new_msg&type=clk" style="text-decoration:none;"><button name="email" class="btn-contexto">{lang_context_email}</button></a> 11 <button name="contato" class="btn-contexto">{lang_context_contact}</button> 12 <button name="compromisso" class="btn-contexto">{lang_context_commitment}</button> 13 </div> 14 15 <dl id="lista_miolo"> 16 <dt><input type="checkbox" name="default_folders"></input>{lang_my_mail} | <span class="rotulo-complementar">Usados {quota_percent}% [{quota_used}/{quota_limit}]</span></dt> 17 {default_folders_box} 18 <dt><input type="checkbox" name="personal_folders"><a href="index.php?menuaction=mobile.ui_home.index&expand_folders={expand_folders}">{lang_my_folders}</a></dt> 19 {personal_folders_box} 20 <dt><input type="checkbox" name="calendar_search">{lang_my_commitments}</dt> 21 {commitments_box} 22 <dt><input type="checkbox" name="contacts_search">{lang_my_contacts}</dt> 23 </dl> 24 </form> 19 25 20 26 <!-- END page --> -
branches/2.2/mobile/templates/default/login.tpl
r3564 r3571 22 22 <input type="hidden" name="passwd_type" value="text"> 23 23 <input type="hidden" name="account type" value="u"> 24 <p><strong>{lang_username}: </strong></p> 25 <p><input name="login"></p> 24 <p><strong><label>{lang_username}: </label></strong> <input name="login"></p> 26 25 <script>document.form_login.login.focus();</script> 27 <p><strong>{lang_password}: </strong></p> 28 <p><input name="passwd" type="password" autocomplete=off></p> 26 <p><strong><label>{lang_password}: </label></strong> <input name="passwd" type="password" autocomplete=off></p> 29 27 <p><button name="submitit" class="btn-contexto">{lang_login}</button></p> 30 28 </form> … … 47 45 <div class="bg-neutro"> 48 46 <div class="aviso-positivo"> 49 <strong>{ cd}{lang_message}</strong>47 <strong>{message}</strong> 50 48 </div> 51 49 </div> … … 54 52 <div class="bg-neutro"> 55 53 <div class="aviso-negativo"> 56 <strong>{ cd}{lang_message}</strong>54 <strong>{message}</strong> 57 55 </div> 58 56 </div> -
branches/2.2/mobile/templates/default/new_msg.tpl
r3454 r3571 1 <!-- BEGIN begin_form --> 2 <h1>Novo email</h1> 3 <hr /> 4 <form id="reply_form" method="POST" action="{form_action}"> 5 <!-- END begin_form --> 1 <!-- BEGIN page --> 2 <div class="menu-contexto"> 3 <span><a href="javascript:history.back()">{lang_back}</a></span> <span class="titulo-secao">{action_msg}</span> 4 </div> 6 5 7 <!-- BEGIN msg_header --> 8 <p><label for="input_to"><strong>{to_label}</strong>:</label> </p> 9 <p><input type="text" size="30" id="input_to" name="input_to" value='{to}' "{read_only}" /></p> 10 {field_add_user} 11 <p><label for="input_subject"><strong>{subject_label}</strong>:</label> </p> 12 <p><input type="text" size="30" id="input_subject" name="input_subject" value='{subject}' /></p> 13 <!-- END msg_header --> 6 <form method="POST" action="index.php?menuaction=mobile.ui_mobilemail.send_mail" id="mail_form"> 7 <input type="hidden" id="input_to_mail" name="input_to_mail" value='{to_mail}' /> 8 <input type="hidden" id="input_cc_mail" name="input_cc_mail" value='{cc_mail}' /> 9 <input type="hidden" id="reply_from" name="reply_from" value='{from}' /> 10 <input type="hidden" id="reply_msg_number" name="reply_msg_number" value='{msg_number}' /> 11 <input type="hidden" id="folder" name="folder" value='{msg_folder}' /> 12 <input type="hidden" name="type" value='{type}' /> 13 14 <div class="campos-correspondencia"> 15 <div class="posiciona-esquerda"> 16 <p><strong><label>{lang_to}</label></strong> <input id="input_to" name="input_to" value='{to}' "{read_only}"></p> 17 <p><strong><label>{lang_cc}</label></strong> <input id="input_cc" name="input_cc" value='{cc}' "{read_only}"></p> 18 <p><strong><label>{lang_subject}</label></strong> <input id="input_subject" name="input_subject" value='{subject}'></p> 19 </div> 20 21 <div class="posiciona-esquerda"> 22 {add_recipient_box} 23 <!--<p><button name="anexo" title="Anexar" class="btn-contexto">{lang_attachment}</button></p>--> 24 </div> 25 </div> 26 27 <div id="corpo_mensagem"> 28 <textarea id="body" wrap="virtual" name="body" cols="20" rows="10">{body_value}</textarea> 29 <p><input type="checkbox" name="check_important" {check_important} />{lang_mark_as_important}</p> 30 <p><input type="checkbox" name="check_read_confirmation" {check_read_confirmation} />{lang_read_confirmation}</p> 31 <p><input type="checkbox" name="check_add_history" {check_add_history} />{lang_add_history}</p> 32 </div> 33 34 <div id="operacao_lista"> 35 <a href="index.php?menuaction=mobile.ui_home.index"><button id="cancel" class="btn-generico" >{lang_cancel}</button></a> 36 <button id="save_draft" class="btn-generico" onclick="document.getElementById('mail_form').action='index.php?menuaction=mobile.ui_mobilemail.save_draft';document.getElementById('mail_form').submit()" >{lang_save_draft}</button></a> 37 <input type="submit" name="action" id="reply_send" value="{lang_send}" class="btn-generico"/> 38 </div> 14 39 15 <!-- BEGIN text -->16 <p><label for="body"><strong>Mensagem:</strong></label></p>17 <p><textarea id="body" wrap="virtual" rows="8" name="body">{body_value}</textarea></p>18 <br />19 20 <p><input type="submit" name="action" id="reply_send" value="{send_label}" /></p>21 <!-- END text -->22 23 <!-- BEGIN hidden_area -->24 <p><input type="hidden" size="30" id="input_to_mail" name="input_to_mail" value='{to_mail}' /></p>25 <p><input type="hidden" size="30" id="reply_from" name="reply_from" value='{from}' /></p>26 <p><input type="hidden" size="30" id="reply_msg_number" name="reply_msg_number" value='{msg_number}' /></p>27 <p><input type="hidden" size="30" id="folder" name="folder" value='{msg_folder}' /></p>28 <!-- END hidden_area -->29 30 <!-- BEGIN end_form -->31 40 </form> 32 <!-- END end_form --> 41 <!-- END page --> 42 <!-- BEGIN add_recipient_block --> 43 <p><button name="action" title="Ver agenda" class="btn-contexto">{lang_calendar}</button></p> 44 <p></p> 45 <!-- END add_recipient_block --> -
branches/2.2/mobile/templates/default/template.tpl
r3564 r3571 15 15 </div> 16 16 17 {message_box} 17 18 <!-- BEGIN mobile_home_content --> 18 19 {content}<br>{footer} … … 29 30 30 31 <!-- END mobile_home --> 32 <!-- BEGIN success_message --> 33 <div class="bg-neutro"> 34 <div class="aviso-positivo"> 35 <strong>{message}</strong> 36 </div> 37 </div> 38 <!-- END success_message --> 39 <!-- BEGIN error_message --> 40 <div class="bg-neutro"> 41 <div class="aviso-negativo"> 42 <strong>{message}</strong> 43 </div> 44 </div> 45 <!-- END error_message -->
Note: See TracChangeset
for help on using the changeset viewer.