]> git.datanom.net - qtadmin.git/blobdiff - index.php
Add multi action
[qtadmin.git] / index.php
index 68526246ecccf1e7ba3ac56c035934504e45d890..96cfd4ed61ea586ce650312a1355e3ecede712b0 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;
This page took 0.028619 seconds and 5 git commands to generate.