| Current Path : /var/www/cesa.co.za/Mailer/ |
| Current File : /var/www/cesa.co.za/Mailer/temper.html |
fr.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n");
fr.write("<html>\n");
fr.write("<head>\n");
fr.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>\n");
fr.write("<title>" + news.getTitle() + "</title>\n");
fr.write("</head>\n");
fr.write("<body topmargin='0' leftmargin='0' rightmargin='0' bottommargin='10' background='images/background.gif'>\n");
fr.write("<table border='0' cellpadding='0' cellspacing='0' width='100%' height='100%'>\n");
fr.write(" <tr valign='top'>\n");
fr.write(" <td align='center'>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0' width='621' height='100%'>\n");
fr.write(" <tr>\n");
fr.write(" <td colspan='3' style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;color:#FFFFFF;padding-right:6px;padding-bottom:2px;' align='right'><a name='top'></a>" + thisDate + "</td>\n");
fr.write(" </tr>\n");
fr.write(" <tr valign='top'>\n");
fr.write(" <td style='border:1px solid #ffffff;'>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0' height='100%'>\n");
fr.write(" <tr>\n");
fr.write(" <td><img src='images/masthead-pic2.gif' width='621' height='135' border='0'></td>\n");
fr.write(" </tr>\n");
fr.write(" <tr valign='top'>\n");
fr.write(" <td>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n");
fr.write(" <tr valign='top'>\n");
fr.write(" <td width='483' style='background-color:#0C96D5;padding-left:14px;padding-right:14px;padding-top:5px;'>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n");
fr.write(" <tr>\n");
fr.write(" <td style='background-color:#FFFFFF;color:#02577E;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;height:24px;border:1px solid #ffffff;padding-left:10px;font-weight:bold;'>In this issue:</td>\n");
fr.write(" </tr>\n");
fr.write(" <tr valign='top'>\n");
fr.write(" <td style='background-color:#B4E1F6;padding-left:15px;padding-top:4px;padding-bottom:3px;padding-right:15px;border-bottom:1px solid #ffffff;border-left:1px solid #ffffff;border-right:1px solid #ffffff;height:124px;'>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0'>\n");
Section sec = new Section();\
Vector sections = sec.getSectionsByParentId(news.getId());
while (!sections.isEmpty()) {
sec = (Section) sections.remove(0);
fr.write(" <!---------------Headings Start--------------->\n");
fr.write(" <tr>\n");
fr.write(" <td style='width:20px;height:20px;'><img src='images/bullet.gif' width='10' height='10'></td>\n");
fr.write(" <td style='color:#00587E;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;'><a href='#" + sec.getTitle().replaceAll(' ', '_') + "' style='color:#00587E;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;text-decoration:none;'>" + sec.getTitle() + "</a>News</a></td>\n");
fr.write(" </tr>\n");
fr.write(" <!---------------Headings End--------------->\n");
}
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" <td width='187' bgcolor='#0C96D5'><img src='images/masthead-pic.gif' width='187' height='156'></td>\n");
fr.write(" </tr>\n");
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" <tr>\n");
fr.write(" <td>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n");
fr.write(" <tr>\n");
fr.write(" <td height='5' bgcolor='#0C96D5'><img src='images/spacer.gif' width='1' height='5'></td>\n");
fr.write(" </tr>\n");
fr.write(" <tr>\n");
fr.write(" <td height='1' bgcolor='#FFFFFF'><img src='images/spacer.gif' width='1' height='1'></td>\n");
fr.write(" </tr>\n");
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" <tr valign='top'>\n");
fr.write(" <td style='background-color:#D0ECF8;padding-left:14px;padding-right:14px;padding-top:12px;' height='100%'>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0' width='100%' height='100%'>\n");
sections = sec.getSectionsByParentId(news.getId());
while (!sections.isEmpty()) {\
sec = (Section) sections.remove(0);
fr.write(" <!---------------Article Start--------------->\n");
fr.write(" <tr>\n");
fr.write(" <td style='background-color:#0C96D5;height:23px;width:643px;'>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n");
fr.write(" <tr>\n");
fr.write(" <td style='color:#FFFFFF;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;font-weight:bold;padding-left:10px;'><a name='" + sec.getTitle().replaceAll(' ', '_') + "'></a>" + sec.getTitle() + "</td>\n");
fr.write(" <td width='25' align='right'><a href='#top'><img src='images/top-button.gif' width='25' height='23' border='0'></a></td>\n");
fr.write(" </tr>\n");
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
Headline head = new Headline();
Vector heads = head.getByParentId(sec.getId());
Publisher publisher = null;
while(!heads.isEmpty()) {
head = (Headline) heads.remove(0);
publisher = new Publisher(head.getId(), Publisher.FKID);
fr.write(" <tr valign='top'>\n");
fr.write(" <td style='text-align:justify;padding-right:25px;padding-top:10px;color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;line-height:14px;'>\n");
fr.write(" " + publisher.getCopy() + "\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" <!---------------Article End--------------->\n");
}
}
fr.write(" <!---------------Issued By--------------->\n");
fr.write(" <tr>\n");
fr.write(" <td style='background-color:#0C96D5;height:23px;width:643px;'>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n");
fr.write(" <tr>\n");
fr.write(" <td style='color:#FFFFFF;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;font-weight:bold;padding-left:10px;'>Issued by:</td>\n");
fr.write(" <td width='25' align='right'><a href='#top'><img src='images/top-button.gif' width='25' height='23' border='0'></a></td>\n");
fr.write(" </tr>\n");
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" <tr valign='top'>\n");
fr.write(" <td style='padding-right:25px;padding-top:10px;color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;line-height:14px;'>\n");
fr.write(" <p style='color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;line-height:14px;'>\n");
fr.write(" Lefadi Makibinyane<br>\n");
fr.write(" Chief Executive Officer<br>\n");
fr.write(" <strong>South African Association of Consulting Engineers</strong><br>\n");
fr.write(" E-mail: jean@cesa.co.za <br>\n");
fr.write(" Tel: +27 (11) 463-2022<br>\n");
fr.write(" Fax: +27 (11) 463-7383<br>\n");
fr.write(" P O Box 68482. Bryanston. 2021<br>\n");
fr.write(" Website: <a href='http://www.cesa.co.za' target='_blank' style='color:#01577D;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;text-decoration:underline;'>www.cesa.co.za</a>\n");
fr.write(" </p>\n");
fr.write(" <p style='color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;line-height:14px;'> </p>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" <!---------------Disclaimer--------------->\n");
fr.write(" <tr>\n");
fr.write(" <td style='background-color:#0C96D5;height:23px;width:643px;'>\n");
fr.write(" <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n");
fr.write(" <tr>\n");
fr.write(" <td style='color:#FFFFFF;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;font-weight:bold;padding-left:10px;'>Disclaimer</td>\n");
fr.write(" <td width='25' align='right'><a href='#top'><img src='images/top-button.gif' width='25' height='23' border='0'></a></td>\n");
fr.write(" </tr>\n");
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" <tr valign='top'>\n");
fr.write(" <td style='text-align:justify;padding-right:25px;padding-top:10px;color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;line-height:14px;'>\n");
fr.write(" <p style='color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;line-height:14px;'>This e-mail is for the intended addressee only. If you have received it in error, please notify us by e-mail to the sender. Dissemination or copying is prohibited unless permitted by the sender, and then only by the intended addressee. Whilst reasonable measures are used to guard against the transmission of malicious code, no liability is accepted for its transmission. If this e-mail is not related to the business of the SAACE, it is sent by the abovementioned in their individual capacity and not on behalf of the SAACE.</p>\n");
fr.write(" <p style='color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;line-height:14px;'> </p>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write(" </table>\n");
fr.write(" </td>\n");
fr.write(" </tr>\n");
fr.write("</table>\n");
fr.write("</body>\n");
fr.write("</html>\n");