Ignore:
Timestamp:
05/26/10 17:39:06 (14 years ago)
Author:
fpcorrea
Message:

Ticket #1088 - Limite de anexos agora trata casos descritos no ticket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/templates/default/config.tpl

    r2802 r2866  
    11<!-- BEGIN header --> 
    2 <form method="POST" action="{action_url}" onsubmit="return ExpressoLivre.form( this );"> 
     2<script> 
     3function valida(pForm) 
     4{ 
     5        if (document.getElementsByName('newsettings[expressoMail_Max_attachment_size]').item(0).value > pForm.php_upload_limit.value) 
     6        { 
     7                alert(pForm.valida_alert.value); 
     8                return false; 
     9        } 
     10        else 
     11                return ExpressoLivre.form(pForm); 
     12} 
     13</script> 
     14<form method="POST" action="{action_url}" onsubmit="return valida( this );"> 
     15<input type="hidden" name="php_upload_limit" value="{php_upload_limit}" /> 
    316<table border="0" align="center"> 
    417   <tr bgcolor="{th_bg}"> 
     
    6679    <td>{lang_Max_attachment_size}</td>                   
    6780    <td>                  
    68     <input size="1" name="newsettings[expressoMail_Max_attachment_size]" value="{value_expressoMail_Max_attachment_size}">&nbsp;Mb 
     81    <input size="1" name="newsettings[expressoMail_Max_attachment_size]" value="{value_expressoMail_Max_attachment_size}">&nbsp;Mb<span style='position:relative; left:20px;'>Max: {php_upload_limit}Mb.</span> 
     82    <input type="hidden" name="valida_alert" value="{lang_Value_exceeds_the_PHP_upload_limit_for_this_server}" /> 
    6983    </td> 
    7084    </tr> 
Note: See TracChangeset for help on using the changeset viewer.