Ignore:
Timestamp:
07/09/10 16:11:09 (14 years ago)
Author:
amuller
Message:

Ticket #1109 - Refazendo a tela de filtros do ExpressoMail1_2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/filter.js

    r3018 r3026  
    276276         * quando a caixa de seleção para manter o e-mail na caixa de entrada do usuário for selecionada 
    277277         */ 
    278         cfilter.prototype.disable_radio3 =  function() 
    279         { 
     278        cfilter.prototype.disable_radio =  function() 
     279        { 
     280                radio4 = Element('radio4'); 
    280281                radio3 = Element('radio3'); 
     282                cb2 = Element('checkBox2'); 
    281283                field6 = Element('field6'); 
    282                 cb2 = Element('checkBox2'); 
    283284 
    284285                if (cb2.checked) 
    285286                { 
    286287                        radio3.disabled = true; 
     288                        radio4.disabled = true; 
    287289                        field6.disabled = true; 
    288290 
     
    295297                { 
    296298                        radio3.disabled = false; 
     299                        radio4.disabled = true; 
    297300                        field6.disabled = false; 
    298301                } 
     
    304307                         var form = ""; 
    305308                                 form = "<div id='div_rule' style='display:none'><table id='table_rule' border='0' cellpading='0' cellspacing='0' width='100%'>"+ 
    306                                                 "<tr><td colspan='2'><input type='checkBox' id='checkBox1' name='checkb'>"+get_lang('Also check message against next rule') + "</td></tr>"+ 
    307                                                 "<tr><td colspan='2'><input type='checkBox' id='checkBox2' onclick='filter.disable_radio3();' name='checkb'>"+get_lang('Keep a copy of the message at your Inbox')+ "</td><tr>"+ 
    308                                                 "<tr><td colspan='2'><hr size='1' width='100%'></td></tr><tr>"+ 
    309                                                 "<td rowspan='4' width='20%'>"+get_lang('Coincident')+"<br><select id='select_rules' name='select_rules'>"+ 
    310                                                 "<option value='0'>"+get_lang("with all")+"</option><option value='1'>"+get_lang("with some")+"</option>"+ 
    311                                                 "</select></td><td>"+get_lang('The field \"%1\" of the message it contains',get_lang('From'))+".: <input type='text' id='field1' name='field1' size='35' maxlength='200'></td>"+ 
     309                                         "<tr><td colspan='2'><b>"+get_lang("Criteria")+":</b></td></tr><tr>"+ 
     310                                         "<td rowspan='4' width='20%'>"+get_lang('Find items')+":<br><select id='select_rules' name='select_rules'>"+ 
     311                                         "<option value='1'>"+get_lang("If any criterion is met")+"</option><option value='0'>"+get_lang("If all criteria is met")+"</option>"+ 
     312                                         "</select></td><td>"+get_lang('The field \"%1\" of the message it contains',get_lang('From'))+".: <input type='text' id='field1' name='field1' size='35' maxlength='200'></td>"+ 
    312313                                                "</tr><tr><td>"+get_lang('The field \"%1\" of the message it contains', get_lang('To'))+".: <input type='text' id='field2' name='field2' size='35' maxlength='200'></td>"+ 
    313314                                                "</tr><tr><td>"+get_lang('The field \"%1\" of the message it contains', get_lang('Subject'))+".: <input type='text' id='field3' name='field3' size='35' maxlength='200'></td>"+ 
    314315                                                "</tr><tr><td>"+get_lang('The size of the message is')+".: &nbsp<select id='select_size' name='select_size'>"+ 
    315                                                 "<option value='0'>"+get_lang("Less than")+"</option><option value='1'>"+get_lang("Greater than")+"</option>"+                                            
     316                                                "<option value='1'>"+get_lang("Greater than")+"</option><option value='0'>"+get_lang("Less than")+"</option>"+ 
    316317                                                "</select>&nbsp;<input type='text' id='field4' name='field4' size='8' maxlength='8'> Kb</td>"+ 
    317                                                 "</tr><tr><td colspan='2'><hr size='1' width='100%'></td></tr>"+ 
     318                                                "</tr><tr><td colspan='2'><hr size='1' width='100%'><b>"+get_lang("Action")+":</b></td></tr>"+ 
    318319                                                "</table><table id='table_rule1' border='0' cellpading='0' cellspacing='0' width='100%'>"+ 
    319                                                 "<tr><td width='50%'><input type='radio' id='radio1' name='radio' value='folder'>"+get_lang('Store at')+".:</td>"+ 
     320                                                 "<tr><td colspan='2'><input type='checkBox' id='checkBox2' onclick='filter.disable_radio();' name='checkb'>"+get_lang('Keep a copy of the message at your Inbox')+ "</td><tr>"+ 
     321                                                 "<tr><td width='50%'><input type='radio' id='radio1' name='radio' value='folder'>"+get_lang('Store at')+".:</td>"+ 
    320322                                                "<td width='50%'><select id='select_mailboxes' name='select_mailboxes'></select></td>"+ 
    321323                                                "</tr><tr><td width='50%'><input type='radio' id='radio2' name='radio' value='address'>"+get_lang('Forward to the address')+".:</td>"+ 
Note: See TracChangeset for help on using the changeset viewer.