Changeset 3438
- Timestamp:
- 10/29/10 10:29:44 (13 years ago)
- Location:
- branches/2.2/expressoMail1_2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/inc/class.ScriptS.inc.php
r3018 r3438 40 40 41 41 $this->continuebit = 1; 42 $this->sizebit = 2;42 $this->sizebit = 1; 43 43 $this->anyofbit = 4; 44 44 $this->keepbit = 8; … … 286 286 $rule['unconditional'] = 0; 287 287 288 if (!$rule['from'] && !$rule['to'] && !$rule['subject'] && !$rule['field'] && ! $rule['size']&& $rule['action']){288 if (!$rule['from'] && !$rule['to'] && !$rule['subject'] && !$rule['field'] && !($rule['size'] >= 0) && $rule['action']){ 289 289 $rule['unconditional'] = 1; 290 290 } … … 359 359 $started = 1; 360 360 } 361 if ($rule['size'] ) {361 if ($rule['size'] >= 0) { 362 362 $xthan = " :under "; 363 363 if ($rule['gthan']) $xthan = " :over "; -
branches/2.2/expressoMail1_2/js/filter.js
r3407 r3438 4 4 if (form.value.length >= 300) 5 5 { 6 alert( get_lang("You have exceeded the number of allowed characters"));6 alert(_lang("You have exceeded the number of allowed characters")); 7 7 return false; 8 8 } … … 307 307 "</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>"+ 308 308 "</tr><tr><td>"+get_lang('The size of the message is')+".:  <select id='select_size' name='select_size'>"+ 309 "<option value=' 1'>"+get_lang("Greater than")+"</option><option value='0'>"+get_lang("Lessthan")+"</option>"+309 "<option value='0'>"+get_lang("Less than")+"</option><option value='1'>"+get_lang("Greater than")+"</option>"+ 310 310 "</select> <input type='text' id='field4' name='field4' size='8' maxlength='8'> Kb</td>"+ 311 311 "</tr><tr><td colspan='2'><hr size='1' width='100%'><b>"+get_lang("Action")+":</b></td></tr>"+ … … 612 612 } 613 613 var opts = ""; 614 if(Element("checkBox2").checked == true){opts += ",checkBox2";} 615 if(Element("select_size").options[1].selected == true){opts += ",select_size=1";} 616 if(Element("select_rules").options[1].selected == true){opts += ",select_rules=1";} 617 for(var i=0; i < this.values.length; i++){if(this.values[i] == opts){mount_rule += i + "&&";}} 614 if(Element("checkBox2").checked == true){ 615 opts += ",checkBox2"; 616 } 617 if(Element("select_size").options[1].selected == true){ 618 opts += ",select_size=1"; 619 } 620 if(Element("select_rules").options[1].selected == true){ 621 opts += ",select_rules=1"; 622 } 623 for(var i=0; i < this.values.length; i++){ 624 if(this.values[i] == opts){ 625 mount_rule += i + "&&"; 626 } 627 } 618 628 mount_rule += "&&&&"; 619 if(LTrim(Element("field4").value) != "" ){629 if(LTrim(Element("field4").value) != "" && LTrim(Element("field4").value) >= 0){ 620 630 mount_rule += LTrim(Element("field4").value); 621 }else{622 mount_rule += 0;623 631 } 624 632 if(form[0] == "new") … … 766 774 var h_filter = function(data) 767 775 { 768 if(data != "Ok"){alert("Erro : \n" + data);}776 if(data != "Ok"){alert("Erro : \n" + get_lang(data));} 769 777 } 770 778 var args = "$this.ScriptS.rec_rules"; -
branches/2.2/expressoMail1_2/js/filters.js
r3187 r3438 159 159 if (fields[5].length > 0) 160 160 _criteria += "<b>"+get_lang("subject is")+"</b>:"+fields[5]; 161 if (parseInt(fields[11]) > 0)161 if (parseInt(fields[11]) >= 0) 162 162 { 163 if(fields[8] == " 2")163 if(fields[8] == "1") 164 164 _criteria += "<b>"+get_lang("size is over than")+"</b>:"+fields[11]; 165 165 else
Note: See TracChangeset
for help on using the changeset viewer.