]> git.datanom.net - qtadmin.git/blobdiff - index.php
reload page when session expire
[qtadmin.git] / index.php
index 68526246ecccf1e7ba3ac56c035934504e45d890..1dc0606ee3fcd1d34a3dc609b579ef757118b472 100644 (file)
--- a/index.php
+++ b/index.php
@@ -33,7 +33,7 @@
         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();
@@ -46,6 +46,7 @@
             $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>";
@@ -57,7 +58,7 @@
             $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"
+              onclick="javascript: checkAction(\'release\');"/>';
+        echo '<input class="mail-purge" type="button" value="Delete checked"
+              onclick="javascript: checkAction(\'delete\');"/>';
         echo "<p class=\"page-nav\">$first$prev Showing page $pageNum of
               $maxPage pages $next$last</p>";
 
This page took 0.042769 seconds and 5 git commands to generate.