Ignore:
Timestamp:
09/05/11 19:10:51 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #2260 - Sincronismo do branch2.2(versão 2.2.8) para 2.4 ajustes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mobile/inc/class.ui_mobilemail.inc.php

    r5037 r5043  
    487487                function print_mails_list($messages,$print_checkbox=false) 
    488488                { 
    489                         $functions = $this->common; 
     489            $functions = $this->common; 
    490490                        $p = $this->template; 
    491491                        $p->set_file( array( 'mobilemail_t' => 'mails_list.tpl' ) ); 
     
    522522                                                $flag="email-lido "; 
    523523                                         
    524                                         if($message["Flagged"]==="F") 
     524                                        if( $message["Flagged"]==="F" ) 
    525525                                                $flag.="email-importante"; 
    526526                                         
     
    784784                                        $params["type"] = $params['mobile_add_contact']['type']; 
    785785                                } 
    786                                 else if($params['type']=="forward"){ 
     786                                else if($params['type']=="forward") 
     787                                { 
    787788                                        $this->template->set_var('from', $msg['toaddress2']); 
    788          
    789789                                        $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 
    791796                                        // 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']) );  
    792798                                         
    793799                                        $this->template->set_var('msg_number', $_GET['msg_number']); 
     
    819825                                        $this->template->set_var('msg_folder', $_GET['msg_folder']); 
    820826                                } 
    821                                 else if($params['type']=="reply"){ 
     827                                else if($params['type']=="reply") 
     828                                { 
    822829                                        $this->template->set_var('from', $msg['toaddress2']); 
    823830                                        $this->template->set_var('input_to', $msg['from']['email']); 
    824          
    825831                                        $this->template->set_var('subject', "Re:" . $msg['subject']); 
    826          
    827832                                        $this->template->set_var('msg_number', $_GET['msg_number']); 
    828833                                        $this->template->set_var('msg_folder', $_GET['msg_folder']); 
    829                                 } else { 
     834                                } 
     835                                else  
     836                                { 
    830837                                        $this->template->set_var('input_to', ""); 
    831838                                        $this->template->set_var('input_cc', ""); 
     
    834841                        } 
    835842                         
    836                                 if($params['type']=="reply" || $params['type']=="forward"  || $params['type']=="reply_all" ) 
    837                                         $this->template->set_var("show_check_add_history","block"); 
     843                        if($params['type']=="reply" || $params['type']=="forward"  || $params['type']=="reply_all" ) 
     844                                $this->template->set_var("show_check_add_history","block"); 
    838845                         
    839846                        //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.