Put names to checkboxes that can be used by others
[squirrelmail.git] / src / addressbook.php
index 24a5bcfca4aba06e8218d51f7fb98e5200d310f6..9a1ced25a9d4966cec17b26bef9a70adedd2a352 100644 (file)
@@ -5,13 +5,16 @@
  *
  * Manage personal address book.
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  * @subpackage addressbook
  */
 
+/** This is the addressbook page */
+define('PAGE_NAME', 'addressbook');
+
 /**
  * Include the SquirrelMail initialization file.
  */
@@ -21,7 +24,6 @@ include('../include/init.php');
 /* address book functions */
 require_once(SM_PATH . 'functions/addressbook.php');
 include_once(SM_PATH . 'templates/util_addressbook.php');
-include_once(SM_PATH . 'functions/template/general_util.php');
 
 /* form functions */
 require_once(SM_PATH . 'functions/forms.php');
@@ -41,7 +43,7 @@ sqgetGlobalVar('doedit',        $doedit,        SQ_POST);
 $abook_sort_order = get_abook_sort();
 
 /* Create page header before addressbook_init in order to  display error messages correctly. */
-displayPageHeader($color, 'None');
+displayPageHeader($color);
 
 /* Open addressbook with error messages on.
  remote backends (LDAP) are enabled because they can be used. (list_addr function)
@@ -257,7 +259,7 @@ while (list($k, $backend) = each ($abook->backends)) {
 
 
 if ($showaddrlist) {
-    echo addForm($form_url, 'post');
+    echo addForm($form_url, 'post', 'address_book_form');
     
     $oTemplate->assign('addresses', $addresses);
     $oTemplate->assign('current_backend', $current_backend);
@@ -280,4 +282,3 @@ echo "</form>\n";
 do_hook('addressbook_bottom', $null);
 
 $oTemplate->display('footer.tpl');
-?>