Changeset 5043 for trunk/mobile/inc/class.ui_mobilemail.inc.php
- Timestamp:
- 09/05/11 19:10:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mobile/inc/class.ui_mobilemail.inc.php
r5037 r5043 487 487 function print_mails_list($messages,$print_checkbox=false) 488 488 { 489 489 $functions = $this->common; 490 490 $p = $this->template; 491 491 $p->set_file( array( 'mobilemail_t' => 'mails_list.tpl' ) ); … … 522 522 $flag="email-lido "; 523 523 524 if( $message["Flagged"]==="F")524 if( $message["Flagged"]==="F" ) 525 525 $flag.="email-importante"; 526 526 … … 784 784 $params["type"] = $params['mobile_add_contact']['type']; 785 785 } 786 else if($params['type']=="forward"){ 786 else if($params['type']=="forward") 787 { 787 788 $this->template->set_var('from', $msg['toaddress2']); 788 789 789 $this->template->set_var('subject', "Enc:" . $msg['subject']); 790 $this->template->set_var('body_value', strip_tags($msg['body'])); // Usa a função strip_tags() para filtrar 790 791 $_name = ( isset($msg['from']['name']) ) ? $msg['from']['name'] : ""; 792 $_email = ( isset($msg['from']['email']) ) ? " ".$msg['from']['email']." " : ""; 793 $forward_msg = "\n" . lang('At %1, %2 hours, %3 wrote:', $msg['msg_day'], $msg['msg_hour'],"\"".$_name."\"".$_email ); 794 795 // Usa a função strip_tags() para filtrar 791 796 // as tags que estão presentes no corpo do e-mail. 797 $this->template->set_var('body_value', "\n\n\n" . $forward_msg . "\n" . strip_tags($msg['body']) ); 792 798 793 799 $this->template->set_var('msg_number', $_GET['msg_number']); … … 819 825 $this->template->set_var('msg_folder', $_GET['msg_folder']); 820 826 } 821 else if($params['type']=="reply"){ 827 else if($params['type']=="reply") 828 { 822 829 $this->template->set_var('from', $msg['toaddress2']); 823 830 $this->template->set_var('input_to', $msg['from']['email']); 824 825 831 $this->template->set_var('subject', "Re:" . $msg['subject']); 826 827 832 $this->template->set_var('msg_number', $_GET['msg_number']); 828 833 $this->template->set_var('msg_folder', $_GET['msg_folder']); 829 } else { 834 } 835 else 836 { 830 837 $this->template->set_var('input_to', ""); 831 838 $this->template->set_var('input_cc', ""); … … 834 841 } 835 842 836 837 843 if($params['type']=="reply" || $params['type']=="forward" || $params['type']=="reply_all" ) 844 $this->template->set_var("show_check_add_history","block"); 838 845 839 846 //tem que ser realizado no final, pois o tipo user_add é modificado para o tipo que o originou
Note: See TracChangeset
for help on using the changeset viewer.