echo "<span class=\"total-rows\">$numrows quarantined mail(s)</span>";
echo "<table><tr>";
echo "<table><tr><th>Received</th><th>Cause</th>";
- echo "<th>Sender</th><th>Recipient</th><th>Subject</th><th>Action</th>";
+ echo "<th>Sender</th><th>Recipient</th><th>Subject</th><th>Action</th><th></th>";
echo "</tr>";
$mailInfo = array();
$id = $row->mail_id;
$mailInfo[$id] = serialize($row);
$url = urlencode($id);
+ $checkbox = "<input name=\"action\" type=\"checkbox\" value=\"$url\" />";
$recipient = "<a title=\"Show Report\" href=\"mail_report.php?id=$url\">{$row->recipient}</a>";
$action = "<a title=\"Release Mail\" href=\"quarantine.php?id=$url&op=release\">";
$action .= "<img class=\"nav-img\" src=\"pics/release.png\" alt=\"Release\" /></a>";
$subject = $row->subject;
echo "<td>$received</td><td class=\"nav-action\">".
"$quaratinefor</td><td>$sender</td><td>$recipient</td>".
- "<td>$subject</td><td class=\"nav-action\">$action</td></tr>";
+ "<td>$subject</td><td class=\"nav-action\">$action</td><td>$checkbox</td></tr>";
$i++;
}
$_SESSION['mailInfo'] = $mailInfo;
$_SESSION['marked'] = serialize($marked);
echo '<input class="mail-purge" type="button" value="Purge Mails ('.
count($marked).')" onclick="javascript: location.href=\'quarantine.php?op=purge\'"/>';
+ echo '<input class="mail-purge" type="button" value="Release checked Mails."
+ onclick="javascript: checkAction();"/>';
echo "<p class=\"page-nav\">$first$prev Showing page $pageNum of
$maxPage pages $next$last</p>";