Ignore:
Timestamp:
12/20/10 15:05:48 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1408 - Adição de envio de anexos, normal e no forward

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/templates/default/new_msg.tpl

    r3602 r3609  
    1212} 
    1313 
     14function add_file() { 
     15        var divFiles = document.getElementById("div_campos"); 
     16        var p = document.createElement("p"); 
     17        p.innerHTML = "<strong><label>&nbsp;</label></strong> "+ 
     18                                                  "<input name=\"FILES[]\" type=\"file\">"; 
     19        divFiles.appendChild(p); 
     20} 
     21 
    1422</script> 
    1523 
     
    1826</div> 
    1927 
    20 <form method="POST" action="index.php?menuaction=mobile.ui_mobilemail.send_mail" id="mail_form"> 
     28<form method="POST" action="index.php?menuaction=mobile.ui_mobilemail.send_mail" enctype="multipart/form-data" id="mail_form"> 
    2129        <input type="hidden" id="reply_from" name="reply_from" value='{from}' /> 
    2230        <input type="hidden" id="reply_msg_number" name="reply_msg_number" value='{msg_number}' /> 
     
    2533        <input type="hidden" name="add_to" id="add_to" value='' /> 
    2634         
    27         <div class="campos-correspondencia"> 
     35        <div class="campos-correspondencia" id="div_campos"> 
    2836                        <p> 
    2937                                <strong><label>{lang_to}:</label></strong>  
     
    3947                                <strong><label>{lang_subject}:</label></strong>  
    4048                                <input id="input_subject" name="input_subject" value='{subject}' /> 
    41                                 <!-- <button name="anexo" title="Anexar" class="btn-contexto">{lang_attachment}</button> --> 
    4249                        </p> 
     50                        <p style="display:{show_forward_attachment};"> 
     51                                <strong><label style="float:none;">{lang_forward_attachment}:</label></strong> 
     52                        </p> 
     53                        {forwarding_attachments} 
     54                        <p> 
     55                                <strong><label>{lang_attachment}:</label></strong>  
     56                                <input name="FILES[]" type="file"> 
     57                                <button name="action" type="button" class="btn-contexto" onclick="add_file();">+</button> 
     58                        </p> 
     59                         
     60 
    4361        </div> 
     62         
    4463                                 
    4564        <div id="corpo_mensagem"> 
     
    5877</form> 
    5978<!-- END page --> 
     79 
     80<!-- BEGIN forward_attach_block --> 
     81        <p><input type="checkbox" name="forward_attachments[]" value="{value_forward_attach}" checked/>{label_forward_attach}</p> 
     82<!-- END forward_attach_block --> 
Note: See TracChangeset for help on using the changeset viewer.