Changeset 3935


Ignore:
Timestamp:
03/31/11 15:58:24 (13 years ago)
Author:
thiagoaos
Message:

Ticket #1702 - Corrigido a visualizacao da opcao adicionar historico no email do mobile.

Location:
branches/2.2/mobile
Files:
2 edited

Legend:

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

    r3923 r3935  
    240240                                $operations["forward"]["link"] = "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&type=forward"; 
    241241                                $operations["forward"]["lang"] = lang("Forward"); 
    242                                 $operations["reply"]["link"] = "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder"; 
     242                                $operations["reply"]["link"] = "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&type=reply"; 
    243243                                $operations["reply"]["lang"] = lang("Reply"); 
    244244                                $operations["reply_all"]["link"] = "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&type=reply_all"; 
     
    701701                        $this->template->set_var('lang_add_history', lang("add history")); 
    702702                        $this->template->set_var("show_forward_attachment","none"); 
     703                        $this->template->set_var("show_check_add_history","none"); 
    703704                         
    704705                        if(isset($params["error_message"])) { 
     
    714715                                $this->template->set_var('check_important', ( ( $_POST['check_important'] ) ? "checked" : "" ) ); 
    715716                                $this->template->set_var('check_read_confirmation', ( ( $_POST['check_read_confirmation'] )  ? "checked" : "" ) ); 
    716                                 $this->template->set_var('check_add_history', ( ( $_POST['check_add_history'] )  ? "checked" : "" ) ); 
     717                                $this->template->set_var('check_add_history', ( ( $_POST['check_add_history'] )  ? "checked" : "" ) );                           
    717718                                 
    718719                                $GLOBALS['phpgw_info']['mobiletemplate']->set_error_msg($params["error_message"]); 
     
    736737                                        if($msg['toaddress2']) $reply_to_all .= ','.$msg['toaddress2']; 
    737738                                        if($msg['cc']) $reply_to_all .= ','.$msg['cc']; 
    738                                         if($msg['bcc']) $reply_to_all .= ','.$msg['bcc'];                                                                                                
     739                                        if($msg['bcc']) $reply_to_all .= ','.$msg['bcc']; 
    739740                                         
    740741                                        $array_emails = explode(',',$reply_to_all); 
     
    759760                                else if($params['type']=="user_add"){ 
    760761                                        $this->template->set_var('input_to', $params['mobile_add_contact']['mobile_mail']); 
    761                                         $this->template->set_var('input_cc', $params['mobile_add_contact']['mobile_mail_cc']);                                   
     762                                        $this->template->set_var('input_cc', $params['mobile_add_contact']['mobile_mail_cc']); 
    762763                                        $this->template->set_var('subject', $params['mobile_add_contact']['subject_mail']); 
    763764                                        $this->template->set_var('body_value', $params['mobile_add_contact']['body_mail']); 
     
    769770                                        $this->template->set_var('msg_folder', $params['msg_folder']); 
    770771                                         
    771                                         $params["type"] = $params['mobile_add_contact']['type'];                 
     772                                        $params["type"] = $params['mobile_add_contact']['type']; 
    772773                                } 
    773774                                else if($params['type']=="forward"){ 
     
    795796                                                } 
    796797                                        } 
    797                                                  
    798798                                } 
    799799                                else if($params['type']=="use_draft"){ 
     
    805805                                        $this->template->set_var('msg_folder', $_GET['msg_folder']); 
    806806                                } 
    807                                 else{ 
     807                                else if($params['type']=="reply"){ 
    808808                                        $this->template->set_var('from', $msg['toaddress2']); 
    809809                                        $this->template->set_var('input_to', $msg['from']['email']); 
     
    813813                                        $this->template->set_var('msg_number', $_GET['msg_number']); 
    814814                                        $this->template->set_var('msg_folder', $_GET['msg_folder']); 
    815                                 }                                
    816                         } 
     815                                } else { 
     816                                        $this->template->set_var('input_to', ""); 
     817                                        $this->template->set_var('input_cc', ""); 
     818                                        $this->template->set_var('subject', ""); 
     819                                } 
     820                        } 
     821                         
     822                                if($params['type']=="reply" || $params['type']=="forward"  || $params['type']=="reply_all" ) 
     823                                        $this->template->set_var("show_check_add_history","block"); 
    817824                         
    818825                        //tem que ser realizado no final, pois o tipo user_add é modificado para o tipo que o originou 
  • branches/2.2/mobile/templates/default/new_msg.tpl

    r3907 r3935  
    5858                <div class="limpar_div">&nbsp;<input type="checkbox" name="check_important" {check_important} />{lang_mark_as_important}</div> 
    5959                <div class="limpar_div">&nbsp;<input type="checkbox" name="check_read_confirmation" {check_read_confirmation} />{lang_read_confirmation}</div> 
    60                 <div class="limpar_div">&nbsp;<input type="checkbox" name="check_add_history" {check_add_history} />{lang_add_history}</div> 
     60                <div class="limpar_div" style="display:{show_check_add_history}">&nbsp;<input type="checkbox" name="check_add_history" {check_add_history} />{lang_add_history}</div> 
    6161        </div> 
    6262         
Note: See TracChangeset for help on using the changeset viewer.