summaryrefslogtreecommitdiff
path: root/forum/utils/addressbook.php
diff options
context:
space:
mode:
authordeva <deva>2008-10-26 13:24:26 +0000
committerdeva <deva>2008-10-26 13:24:26 +0000
commit648878fb3a0430506c3b0f5a92bc7699b7ceb3ed (patch)
treef247d42bea2569cbd0b1fa39f557b106a512a4bb /forum/utils/addressbook.php
parent1d91956f828b9dd53bb760b4289ea55d3ec3fd49 (diff)
Hide unused fields when showing a contact. Add number of contacts in groups and number of hidden contacts.
Diffstat (limited to 'forum/utils/addressbook.php')
-rw-r--r--forum/utils/addressbook.php5
1 files changed, 5 insertions, 0 deletions
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,
<form method="post" action="<?php echo $posturl; ?>">
<input type="hidden" name="cid" value="<?php echo $cid;?>">
Name: <input name="name" value="<?php echo $name;?>"><br/>
+ c/o: <input name="co" value="<?php echo $co;?>"><br/>
Address: <input name="address" value="<?php echo $address;?>"><br/>
City: <input name="city" value="<?php echo $city;?>"><br/>
Country: <input name="country" value="<?php echo $country;?>"><br/>
@@ -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&amp;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;