added more hooks in options page for inline options
[squirrelmail.git] / src / addressbook.php
index 685ea8365a84c0a1136562e10cbf6048482e0e9e..d269fe5a95f156df3aa17e692bfb85a8b056aa37 100644 (file)
       $headerprinted = false;
 
       // List addresses
-      while(list($key,$row) = each($alist)) {
+      while(list($undef,$row) = each($alist)) {
 
         // New table header for each backend
         if($prevbackend != $row["backend"]) {
 
 
    // Display the "new address" form
-   printf("<FORM ACTION=\"%s\" METHOD=\"POST\">\n", $PHP_SELF);
+   printf("<FORM ACTION=\"%s\" NAME=f_add METHOD=\"POST\">\n", $PHP_SELF);
    print "<TABLE WIDTH=100% COLS=1 ALIGN=CENTER>\n";
    print "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>\n<STRONG>";
    printf(_("Add to %s"), $abook->localbackendname);
    address_form("addaddr", _("Add address"), $defdata);
    print "</FORM>";
 
+   // Add hook for anything that wants on the bottom
+   do_hook("addressbook_bottom");
 ?>
-<!-- ----------------- csv import form --------------------- -->
-  
-<FORM ENCTYPE="multipart/form-data" ACTION="addressbook_csvimport.php" METHOD=POST>
-<INPUT TYPE="hidden" NAME="max_file_size" value="5000">
-Import CSV File: <INPUT NAME="smusercsv" TYPE="file">
-<INPUT TYPE="submit" VALUE="Import CSV File">
-</FORM>
 
 </BODY></HTML>