<?php
require_once('../config/config.php');
require_once(CLASS_DIR.'dbClass.php');
$obj = new DBClass();
$cupage = 'news';

$sql = "SELECT * FROM ".TBL_EMAIL." WHERE id = '".$_GET['id']."'";
$rs = $obj->executeQry($sql,$link);
$row = $obj->fetchrow();
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="17"></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td class="pagehead"><table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="35">View Email</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td valign="top" bgcolor="#FFFFFF" class="innermain"><table border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top" class="bdr4"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td bgcolor="#990066" class="form_head">&nbsp;</td>
                </tr>
              <tr>
                <td valign="top" class="form_bg"><table border="0" cellpadding="0" cellspacing="0" class="form_txt1">
                  <tr>
                    <td align="left" width="30">Subject</td>
			<td align="center" width="5">:</td>
                    <td><? echo $row['subject'];?></td>
                    </tr>
                  <tr>
                    <td align="left" width="30">News</td>
			<td align="center" width="5">:</td>
                    <td><? echo html_entity_decode(stripslashes($row['message']));?></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td bgcolor="#990066" class="form_head">&nbsp;</td>
              </tr>
              </table></td>
          </tr>
          </table></td>
      </tr>
      </table></td>
  </tr>
  <tr>
    <td height="40"><a href="sendmail.php?id=<?=$_GET['id'];?>">Send Email</a></td>
  </tr>
</table>