From 648878fb3a0430506c3b0f5a92bc7699b7ceb3ed Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 26 Oct 2008 13:24:26 +0000 Subject: Hide unused fields when showing a contact. Add number of contacts in groups and number of hidden contacts. --- forum/utils/addressbook.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'forum/utils/addressbook.php') diff --git a/forum/utils/addressbook.php b/forum/utils/addressbook.php index c3c5d65..fb34156 100644 --- a/forum/utils/addressbook.php +++ b/forum/utils/addressbook.php @@ -5,6 +5,7 @@ function form($cid, $posturl, $buttontext, $name = "", + $co = "", $address = "", $city = "", $country = "", @@ -21,6 +22,7 @@ function form($cid,
Name:
+ c/o:
Address:
City:
Country:
@@ -51,6 +53,7 @@ if($action == "addgroup" && $gid) { elseif($action == "addcontact" && $gid && $cid) { $contact = new Contact($cid, $name, + $co, $address, $city, $country, @@ -74,6 +77,7 @@ elseif($action =="editcontact" && $cid) { "?mode=addressbook&action=updatecontact".$gid, "Update contact", $contact->name, + $contact->co, $contact->address, $contact->city, $contact->country, @@ -91,6 +95,7 @@ elseif($action == "updatecontact" && $cid) { $contact = $contacts->getContact($cid); $contact->name = $name; + $contact->co = $co; $contact->address = $address; $contact->city = $city; $contact->country = $country; -- cgit v1.2.3