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/filters.js

    r3018 r3026  
    146146         
    147147        cfilterSh.prototype.vl_rule = function(rule,pos,type) 
    148         { 
    149                 var fields = rule.split("&&"); 
    150                 if(type == 'voip') 
    151                         return " <a href='javascript:void(0)' onclick=filter.form_r('"+pos+"','voip')><b>" + get_lang("Status") + " : </b>" + "<font color='red'>" + get_lang(fields[2]) + "</font>" + " - " + fields[3] + " <b>" + get_lang("Subject") + ":</b> " + fields[5] + "</a>"; 
    152                 else 
    153                         return " <a href='javascript:void(0)' onclick=filter.form_r('"+pos+"','')><b>" + get_lang("Status") + " : </b>" + "<font color='red'>" + get_lang(fields[2]) + "</font>" + " - <b>" + get_lang("E-mail rule") + ":</b> " + fields[3] + " - <b>" + get_lang("Action") + ":</b> " + fields[6] + "</a>"; 
    154         } 
     148{ 
     149        var fields = rule.split("&&"); 
     150        if(type == 'voip') 
     151                return " <a href='javascript:void(0)' onclick=filter.form_r('"+pos+"','voip')><b>" + get_lang("Status") + " : </b>" + "<font color='red'>" + get_lang(fields[2]) + "</font>" + " - " + fields[3] + " <b>" + get_lang("Subject") + ":</b> " + fields[5] + "</a>"; 
     152        else{  
     153 
     154                var _criteria = " ";  
     155                if (fields[3].length > 0)  
     156                        _criteria = "<b>"+get_lang("is from")+"</b>:"+fields[3];  
     157                if (fields[4].length > 0)  
     158                        _criteria += "<b>"+get_lang("is to")+"</b>:"+fields[4];  
     159                if (fields[5].length > 0)  
     160                        _criteria += "<b>"+get_lang("subject is")+"</b>:"+fields[5];  
     161                if (parseInt(fields[11]) > 0)  
     162                {  
     163                        if(fields[8] == "2")  
     164                                _criteria += "<b>"+get_lang("size is over than")+"</b>:"+fields[11];  
     165                        else  
     166                                _criteria += "<b>"+get_lang("size is under than")+"</b>:"+fields[11];  
     167                }  
     168                var _action = " ";  
     169                if (fields[6] == 'folder')  
     170                        _action = get_lang("Store at")+" "+(fields[7].split("/"))[1];  
     171                else  
     172                        _action = get_lang(fields[6]);  
     173 
     174                return " <a href='javascript:void(0)' onclick=filter.form_r('"+pos+"','')><b>" + get_lang("Status") + " : </b>" + "<font color='red'>" + get_lang(fields[2]) + "</font>" + " - <b>" + get_lang("if email") + " </b>" + _criteria + " - <b>" + get_lang("Action") + ":</b> " + _action + "</a>";  
     175        }  
     176} 
    155177         
    156178        cfilterSh.prototype.vl_outOffice = function(outOffice){          
Note: See TracChangeset for help on using the changeset viewer.