Changeset 53 for trunk/expressoMail1_2/js/filter.js
- Timestamp:
- 08/13/07 17:18:06 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/filter.js
r41 r53 228 228 var form = ""; 229 229 form = "<div id='div_rule' style='display:none'><table id='table_rule' border='0' cellpading='0' cellspacing='0' width='100%'>"+ 230 "<tr><td colspan='2'><input type='checkBox' id='checkBox1' name='checkb'>"+get_lang(' To also check message against next rule') + "</td></tr>"+231 "<tr><td colspan='2'><input type='checkBox' id='checkBox2' name='checkb'>"+get_lang(' To keep a copy of the message in its Box of Entrance')+ "</td><tr>"+230 "<tr><td colspan='2'><input type='checkBox' id='checkBox1' name='checkb'>"+get_lang('Also check message against next rule') + "</td></tr>"+ 231 "<tr><td colspan='2'><input type='checkBox' id='checkBox2' name='checkb'>"+get_lang('Keep a copy of the message at your Inbox')+ "</td><tr>"+ 232 232 "<tr><td colspan='2'><hr size='1' width='100%'></td></tr><tr>"+ 233 233 "<td rowspan='4' width='20%'>"+get_lang('Coincident')+"<br><select id='select_rules' name='select_rules'>"+ … … 241 241 "</tr><tr><td colspan='2'><hr size='1' width='100%'></td></tr>"+ 242 242 "</table><table id='table_rule1' border='0' cellpading='0' cellspacing='0' width='100%'>"+ 243 "<tr><td width='50%'><input type='radio' id='radio1' name='radio' value='folder'>"+get_lang(' To file')+".:</td>"+243 "<tr><td width='50%'><input type='radio' id='radio1' name='radio' value='folder'>"+get_lang('Store at')+".:</td>"+ 244 244 "<td width='50%'><select id='select_mailboxes' name='select_mailboxes'></select></td>"+ 245 "</tr><tr><td width='50%'><input type='radio' id='radio2' name='radio' value='address'>"+get_lang(' It directs forthe address')+".:</td>"+245 "</tr><tr><td width='50%'><input type='radio' id='radio2' name='radio' value='address'>"+get_lang('Forward to the address')+".:</td>"+ 246 246 "<td width='50%'><input type='text' id='field5' name='field5' size='35' maxlength='70'></td>"+ 247 "</tr><tr><td width='50%'><input type='radio' id='radio3' name='radio' value='reject'>"+get_lang(' It sendsa rejection message')+".:</td>"+247 "</tr><tr><td width='50%'><input type='radio' id='radio3' name='radio' value='reject'>"+get_lang('Send a rejection message')+".:</td>"+ 248 248 "<td width='50%'><textarea id='field6' name='field6' rows='3' cols='25'></textarea></td>"+ 249 "</tr><tr><td colspan='2'><input type='radio' id='radio4' name='radio' value='discard'>"+get_lang(' It erasesthe message')+"</td>"+249 "</tr><tr><td colspan='2'><input type='radio' id='radio4' name='radio' value='discard'>"+get_lang('Erase the message')+"</td>"+ 250 250 "</tr></table></div><div id='div_vacation' style='display:none'>"+ 251 251 "<table id='table_vacation' border='0' cellpading='0' cellspacing='0' width='100%'>"+ 252 "<tr><td width='40%' valign='top'>"+get_lang(' To answer messages sent')+":<select multiple id='select_1' name='select_1' size='6' style='width:250px'></select></td>"+252 "<tr><td width='40%' valign='top'>"+get_lang('Reply sent messages to')+":<select multiple id='select_1' name='select_1' size='6' style='width:250px'></select></td>"+ 253 253 "<td width='8%'><table border='0' cellpading='0' cellspacing='0' width='100%'>"+ 254 254 "<tr><td align='right' valign='top'><br><a href=javascript:void(0) onclick='filter.box_select(0);'><<</a> <br><br></td>"+ … … 256 256 "</tr></table></td><td width='52%' valign='top'>"+get_lang('Emails of the account')+":<br><select multiple id='select_2' name='select_2' size='6' style='width:250px'></select>"+ 257 257 "</td></tr><tr><td colspan='3'><hr size='1' width='100%'></td>"+ 258 "</tr><tr><td colspan='3'>"+get_lang('During (days are of the office)')+": <input type='text' id='select_days' size='3'> "+get_lang('day(s)')+"</td>"+258 "</tr><tr><td colspan='3'>"+get_lang('During (days off the office)')+": <input type='text' id='select_days' size='3'> "+get_lang('day(s)')+"</td>"+ 259 259 "</tr><tr><td colspan='3'><hr size='1' width='100%'></td></tr><tr><td colspan='3'>"+get_lang('With the following message')+".:</td>"+ 260 260 "</tr><tr><td colspan='3'><textarea id='field8' rows='3' cols='50'></textarea></td></tr></table></div>"+ 261 "<span align='right'><input type='button' value="+get_lang("to comeback")+" onclick='filter.form_m()'></span>"+262 "<span align='right'><input type='button' value="+get_lang(" to save")+" onclick='filter.saved_rules()'></span>";261 "<span align='right'><input type='button' value="+get_lang("to go back")+" onclick='filter.form_m()'></span>"+ 262 "<span align='right'><input type='button' value="+get_lang("Save")+" onclick='filter.saved_rules()'></span>"; 263 263 return form; 264 264 } … … 316 316 var emailReg = /^[a-z][a-z-_0-9\.]+@[a-z-_=>0-9\.]+\.[a-z]{2,3}$/i 317 317 if(!emailReg.test(email)){ 318 alert(get_lang("I t informs a valid email!"));318 alert(get_lang("Inform a valid e-mail!")); 319 319 return false; 320 320 } … … 404 404 if(LTrim(Element("field1").value) == "" && LTrim(Element("field2").value) == "" && LTrim(Element("field3").value) == "" && Element("field4").value == "") 405 405 { 406 alert(get_lang(" It defines criteria forthe fields From, To and Subject with more than 3 characters!"));406 alert(get_lang("Define some criterion to the fields From, To and Subject with more than 3 characters!")); 407 407 return false; 408 408 } 409 409 410 410 if((LTrim(Element("field1").value).length <= 3) && (LTrim(Element("field2").value).length <= 3) && (LTrim(Element("field3").value).length <= 3 && Element("field4").value == "")){ 411 alert(get_lang(" It defines criteria forthe fields From, To and Subject with more than 3 characters!"));411 alert(get_lang("Define some criterion to the fields From, To and Subject with more than 3 characters!")); 412 412 return false; 413 413 } … … 424 424 mount_rule += "address&&"; 425 425 if(Element("field5").value == ""){ 426 alert(get_lang("I t informs a guiding email!"));426 alert(get_lang("Inform a forwarding e-mail!")); 427 427 return false; 428 428 }else{ … … 431 431 mount_rule += Element("field5").value + "&&"; 432 432 }else{ 433 alert(get_lang("I t informs a valid email!"));433 alert(get_lang("Inform a valid e-mail!")); 434 434 return false; 435 435 } … … 440 440 mount_rule += "reject&&"; 441 441 if(Element("field6").value == ""){ 442 alert(get_lang("I t informsa text for rejection!"));442 alert(get_lang("Inform a text for rejection!")); 443 443 return false; 444 444 }else{ … … 452 452 } 453 453 if(!v_checked){ 454 alert(get_lang("No option was notmarked!"));454 alert(get_lang("No option marked!")); 455 455 return false; 456 456 } … … 481 481 mount_rule += fld_days.value + "&&"; 482 482 }else{ 483 alert(get_lang("I t informsbetween 1 and 31!"));483 alert(get_lang("Inform between 1 and 31!")); 484 484 return false; 485 485 } 486 486 }else{ 487 alert(get_lang("I t informsthe days!"));487 alert(get_lang("Inform the days!")); 488 488 return false; 489 489 } … … 496 496 mount_rule += fld_men.value + "&&on "; 497 497 }else{ 498 alert(get_lang("I t informs email(s) for guiding!"));498 alert(get_lang("Inform the forwarding e-mail(s)!")); 499 499 return false; 500 500 } 501 501 if(LTrim(fld_men.value) == ""){ 502 alert(get_lang("I t informsa message!"));502 alert(get_lang("Inform a message!")); 503 503 return false; 504 504 }
Note: See TracChangeset
for help on using the changeset viewer.