<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="57%" valign="top"><strong class="head">Account Alerts</strong>
          <table width="100%" border="0" cellspacing="1" bgcolor="#de0011">
            <tr bgcolor="#de0011" class="top_menus">
              <td align="center" bgcolor="#de0011">Date</td>
              <td align="center" bgcolor="#de0011">Account</td>
              <td align="center" bgcolor="#de0011">Subject</td>
            </tr>
            <?php 
			if(mysqli_num_rows($sql) == 0) { ?>
				<tr>
				<td colspan="10" class="error_msg" align="center" style="font-size:12px;">There are no alerts for this account.</td>
				</tr> <?php } else {
			
			while($alert=mysqli_fetch_array($sql,MYSQLI_ASSOC)) { ?>
			<tr align="center" bgcolor="#FFFFFF">
              <td><?php echo strftime('%d-%m-%Y',strtotime($alert['date'])); ?></td>
              <td><?php echo $alert['number']; ?></td>
              <td><a href="#" onclick="window.open('viewalert.php?s=<?php echo base64_encode($alert['id']); ?>','alertwin','width=400, height=400, scrollbars=1')"><?php if($alert['status'] == 0) { 
			  	echo "<strong>".$alert['subject']."</strong>";
				} else {
					echo $alert['subject'];
				}
				?></a>
			   </td>
            </tr>
			<?php }} ?>
          </table></td>
        <td width="3%">&nbsp;</td>
        <td width="40%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td class="head">Service Center </td>
          </tr>
          <tr>
            <td style="border:#de0011 1px solid; padding:5px;"><strong>Our Service Center is open 24 hours including weekends and holidays </strong><br />
                <br />
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="20%" valign="top"><strong>Telephone: </strong></td>
                    <td width="80%"><strong><?php echo $phone1; ?></strong> (Please call <strong><?php echo $phone2; ?></strong> if you are calling from outside the Country)</td>
                  </tr>
                  <tr>
                    <td><strong>Email:</strong></td>
                    <td><a href="mailto:info@<?php echo $email_domain; ?>"><strong>info@<?php echo $email_domain; ?></strong></a></td>
                  </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
