Changeset 3935
- Timestamp:
- 03/31/11 15:58:24 (13 years ago)
- Location:
- branches/2.2/mobile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.ui_mobilemail.inc.php
r3923 r3935 240 240 $operations["forward"]["link"] = "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&type=forward"; 241 241 $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"; 243 243 $operations["reply"]["lang"] = lang("Reply"); 244 244 $operations["reply_all"]["link"] = "index.php?menuaction=mobile.ui_mobilemail.new_msg&msg_number=$msg_number&msg_folder=$msg_folder&type=reply_all"; … … 701 701 $this->template->set_var('lang_add_history', lang("add history")); 702 702 $this->template->set_var("show_forward_attachment","none"); 703 $this->template->set_var("show_check_add_history","none"); 703 704 704 705 if(isset($params["error_message"])) { … … 714 715 $this->template->set_var('check_important', ( ( $_POST['check_important'] ) ? "checked" : "" ) ); 715 716 $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" : "" ) ); 717 718 718 719 $GLOBALS['phpgw_info']['mobiletemplate']->set_error_msg($params["error_message"]); … … 736 737 if($msg['toaddress2']) $reply_to_all .= ','.$msg['toaddress2']; 737 738 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']; 739 740 740 741 $array_emails = explode(',',$reply_to_all); … … 759 760 else if($params['type']=="user_add"){ 760 761 $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']); 762 763 $this->template->set_var('subject', $params['mobile_add_contact']['subject_mail']); 763 764 $this->template->set_var('body_value', $params['mobile_add_contact']['body_mail']); … … 769 770 $this->template->set_var('msg_folder', $params['msg_folder']); 770 771 771 $params["type"] = $params['mobile_add_contact']['type']; 772 $params["type"] = $params['mobile_add_contact']['type']; 772 773 } 773 774 else if($params['type']=="forward"){ … … 795 796 } 796 797 } 797 798 798 } 799 799 else if($params['type']=="use_draft"){ … … 805 805 $this->template->set_var('msg_folder', $_GET['msg_folder']); 806 806 } 807 else {807 else if($params['type']=="reply"){ 808 808 $this->template->set_var('from', $msg['toaddress2']); 809 809 $this->template->set_var('input_to', $msg['from']['email']); … … 813 813 $this->template->set_var('msg_number', $_GET['msg_number']); 814 814 $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"); 817 824 818 825 //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 58 58 <div class="limpar_div"> <input type="checkbox" name="check_important" {check_important} />{lang_mark_as_important}</div> 59 59 <div class="limpar_div"> <input type="checkbox" name="check_read_confirmation" {check_read_confirmation} />{lang_read_confirmation}</div> 60 <div class="limpar_div" > <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}"> <input type="checkbox" name="check_add_history" {check_add_history} />{lang_add_history}</div> 61 61 </div> 62 62
Note: See TracChangeset
for help on using the changeset viewer.