Ignore:
Timestamp:
07/08/10 17:52:20 (14 years ago)
Author:
amuller
Message:

Ticket #1135 - Aplicando alterações do branches 2.0 no branches 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/templates/default/config.tpl

    r1466 r3018  
    11<!-- BEGIN header --> 
    2 <form method="POST" action="{action_url}"> 
     2<script type="text/javascript">  
     3function valida(pForm)  
     4{  
     5        if((!document.getElementsByName('newsettings[expressoMail_Max_attachment_size]').item(0).value) || (!pForm.php_upload_limit.value))  
     6                return ExpressoLivre.form(pForm);  
     7  
     8        if (parseInt(document.getElementsByName('newsettings[expressoMail_Max_attachment_size]').item(0).value) > parseInt(pForm.php_upload_limit.value))  
     9        {  
     10                alert(pForm.valida_alert.value);  
     11                return false;  
     12        }  
     13        else  
     14                return ExpressoLivre.form(pForm);  
     15}  
     16</script>  
     17<form method="POST" action="{action_url}" onsubmit="return valida( this );">  
     18<input type="hidden" name="php_upload_limit" value="{php_upload_limit}" />  
    319<table border="0" align="center"> 
    420   <tr bgcolor="{th_bg}"> 
     
    7591    <td>{lang_Max_attachment_size}</td>                   
    7692    <td>                  
    77     <input size="1" name="newsettings[expressoMail_Max_attachment_size]" value="{value_expressoMail_Max_attachment_size}">&nbsp;Mb 
     93    <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>  
     94    <input type="hidden" name="valida_alert" value="{lang_Value_exceeds_the_PHP_upload_limit_for_this_server}" />  
    7895    </td> 
    7996    </tr> 
Note: See TracChangeset for help on using the changeset viewer.