skin
[old-projects.git] / philter / philter / include / emails.inc.php
index dee810f..766d91c 100644 (file)
@@ -97,8 +97,8 @@ class EmailPool {
      * @return  the string containing the form
      */
     function to_form() {
-        $res = "<form action=\"{$_SERVER['REQUEST_URI']}\" method=\"post\">\n"
-            .  "<table class=\"bicol\" width=\"100%\">\n";
+        $res = "<form action=\"{$_SERVER['REQUEST_URI']}\" method=\"post\" onsubmit=\"return del_onsubmit()\">\n"
+            .  "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
 
         $pair = true;
         foreach($this->emails as $id => $email) {
@@ -112,17 +112,20 @@ class EmailPool {
 
         $res .= "<tr><td colspan=\"2\">\n"
             .   "    <input type=\"submit\" name=\"emails[apply]\" value=\"Apply changes\" /></td>\n"
-            .   "</tr>\n";
+            .   "</tr>\n"
+            .   "</table>\n</form>\n";
 
         $val = 'your email ...';
-        $res .= "<tr><td colspan=\"2\">\n"
+        
+        $res .= "<form action=\"{$_SERVER['REQUEST_URI']}\" method=\"post\">\n"
+            .   "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
+            .   "<tr><td colspan=\"2\">\n"
             .   "   <input type=\"text\" name=\"emails[new]\" size=\"60\" value='$val' "
             .   "onfocus=\"text_onfocus(this,'$val')\" onblur=\"text_onblur(this,'$val')\" />\n"
-            .   "   <input type=\"submit\" name=\"emails[add]\" value=\"Add\" /></td>\n"
-            .   "</td></tr>\n";
+            .   "   <input type=\"submit\" name=\"emails[add]\" value=\"Add\" />\n"
+            .   "</td></tr>\n"
+            .   "</table>\n</form>\n";
         
-        $res .= "</table>\n</form>\n";
-
         return $res;
     }