<?php
include('../db.inc.php');
$s=base64_decode($_GET['s']);
$alert=mysqli_fetch_array(mysqli_query($connectionString,"SELECT * FROM alerts WHERE id='$s'"),MYSQLI_ASSOC);
mysqli_query($connectionString,"UPDATE alerts SET status='1' WHERE id='$s'");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - Internet Banking</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#999999" style="margin-top:2em;">
  <tr>
    <td bgcolor="#FFFFFF"><strong>Date :</strong> <?php echo strftime('%d %B, %Y at %I:%M%p',strtotime($alert['date'])); ?></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><strong>Subject:</strong> <?php echo stripslashes($alert['subject']); ?></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><?php echo nl2br(stripslashes($alert['message'])); ?></td>
  </tr>
</table>


</body>

</html>
