-
+
-
-
+ |
+ ">
|
-
-
+ |
+ ">
|
-
+ |
" . lang("Cancel"); ?>
|
diff --git a/addressbook/edit.php b/addressbook/edit.php
index 445c110606..6cfe29394a 100755
--- a/addressbook/edit.php
+++ b/addressbook/edit.php
@@ -27,31 +27,33 @@
if (! $submit) {
$phpgw->db->query("SELECT * FROM addressbook WHERE ab_owner='"
- . $phpgw_info["user"]["account_id"] . "' AND ab_id=$ab_id");
+ . $phpgw_info["user"]["account_id"] . "' AND ab_id=$ab_id");
$phpgw->db->next_record();
- $fields = array('ab_id' => $phpgw->db->f("ab_id"),
- 'owner' => $phpgw->db->f("ab_owner"),
- 'access' => $phpgw->db->f("ab_access"),
- 'firstname' => $phpgw->db->f("ab_firstname"),
- 'lastname' => $phpgw->db->f("ab_lastname"),
- 'title' => $phpgw->db->f("ab_title"),
- 'email' => $phpgw->db->f("ab_email"),
- 'hphone' => $phpgw->db->f("ab_hphone"),
- 'wphone' => $phpgw->db->f("ab_wphone"),
- 'fax' => $phpgw->db->f("ab_fax"),
- 'pager' => $phpgw->db->f("ab_pager"),
- 'mphone' => $phpgw->db->f("ab_mphone"),
- 'ophone' => $phpgw->db->f("ab_ophone"),
- 'street' => $phpgw->db->f("ab_street"),
- 'address2' => $phpgw->db->f("ab_address2"),
- 'city' => $phpgw->db->f("ab_city"),
- 'state' => $phpgw->db->f("ab_state"),
- 'zip' => $phpgw->db->f("ab_zip"),
- 'bday' => $phpgw->db->f("ab_bday"),
- 'company' => $phpgw->db->f("ab_company"),
- 'company_id' => $phpgw->db->f("ab_company_id"),
- 'notes' => $phpgw->db->f("ab_notes")
+ $fields = array('ab_id' => $phpgw->db->f("ab_id"),
+ 'owner' => $phpgw->db->f("ab_owner"),
+ 'access' => $phpgw->db->f("ab_access"),
+ 'firstname' => $phpgw->db->f("ab_firstname"),
+ 'lastname' => $phpgw->db->f("ab_lastname"),
+ 'title' => $phpgw->db->f("ab_title"),
+ 'email' => $phpgw->db->f("ab_email"),
+ 'hphone' => $phpgw->db->f("ab_hphone"),
+ 'wphone' => $phpgw->db->f("ab_wphone"),
+ 'fax' => $phpgw->db->f("ab_fax"),
+ 'pager' => $phpgw->db->f("ab_pager"),
+ 'mphone' => $phpgw->db->f("ab_mphone"),
+ 'ophone' => $phpgw->db->f("ab_ophone"),
+ 'street' => $phpgw->db->f("ab_street"),
+ 'address2' => $phpgw->db->f("ab_address2"),
+ 'city' => $phpgw->db->f("ab_city"),
+ 'state' => $phpgw->db->f("ab_state"),
+ 'zip' => $phpgw->db->f("ab_zip"),
+ 'bday' => $phpgw->db->f("ab_bday"),
+ 'company' => $phpgw->db->f("ab_company"),
+ 'company_id' => $phpgw->db->f("ab_company_id"),
+ 'notes' => $phpgw->db->f("ab_notes")
+,
+ 'url' => $phpgw->db->f("ab_url")
);
form("","edit.php","Edit",$fields);
@@ -64,45 +66,47 @@
if($phpgw_info["apps"]["timetrack"]["enabled"]) {
$sql = "UPDATE addressbook set ab_email='" . addslashes($email)
- . "', ab_firstname='". addslashes($firstname)
- . "', ab_lastname='" . addslashes($lastname)
- . "', ab_title='" . addslashes($title)
- . "', ab_hphone='" . addslashes($hphone)
- . "', ab_wphone='" . addslashes($wphone)
- . "', ab_fax='" . addslashes($fax)
- . "', ab_pager='" . addslashes($pager)
- . "', ab_mphone='" . addslashes($mphone)
- . "', ab_ophone='" . addslashes($ophone)
- . "', ab_street='" . addslashes($street)
- . "', ab_address2='" . addslashes($address2)
- . "', ab_city='" . addslashes($city)
- . "', ab_state='" . addslashes($state)
- . "', ab_zip='" . addslashes($zip)
- . "', ab_bday='" . addslashes($bday)
- . "', ab_notes='" . addslashes($notes)
- . "', ab_company_id='" . addslashes($company)
- . "', ab_access='" . addslashes($access)
- . "' WHERE ab_owner='" . $phpgw_info["user"]["account_id"] . "' AND ab_id=$ab_id";
+ . "', ab_firstname='" . addslashes($firstname)
+ . "', ab_lastname='" . addslashes($lastname)
+ . "', ab_title='" . addslashes($title)
+ . "', ab_hphone='" . addslashes($hphone)
+ . "', ab_wphone='" . addslashes($wphone)
+ . "', ab_fax='" . addslashes($fax)
+ . "', ab_pager='" . addslashes($pager)
+ . "', ab_mphone='" . addslashes($mphone)
+ . "', ab_ophone='" . addslashes($ophone)
+ . "', ab_street='" . addslashes($street)
+ . "', ab_address2='" . addslashes($address2)
+ . "', ab_city='" . addslashes($city)
+ . "', ab_state='" . addslashes($state)
+ . "', ab_zip='" . addslashes($zip)
+ . "', ab_bday='" . addslashes($bday)
+ . "', ab_notes='" . addslashes($notes)
+ . "', ab_company_id='" . addslashes($company)
+ . "', ab_access='" . addslashes($access)
+ . "', ab_url='" . addslashes($url)
+ . "' WHERE ab_owner='" . $phpgw_info["user"]["account_id"] . "' AND ab_id=$ab_id";
} else {
$sql = "UPDATE addressbook set ab_email='" . addslashes($email)
. "', ab_firstname='". addslashes($firstname)
. "', ab_lastname='" . addslashes($lastname)
- . "', ab_title='" . addslashes($title)
- . "', ab_hphone='" . addslashes($hphone)
- . "', ab_wphone='" . addslashes($wphone)
- . "', ab_fax='" . addslashes($fax)
- . "', ab_pager='" . addslashes($pager)
- . "', ab_mphone='" . addslashes($mphone)
- . "', ab_ophone='" . addslashes($ophone)
- . "', ab_street='" . addslashes($street)
+ . "', ab_title='" . addslashes($title)
+ . "', ab_hphone='" . addslashes($hphone)
+ . "', ab_wphone='" . addslashes($wphone)
+ . "', ab_fax='" . addslashes($fax)
+ . "', ab_pager='" . addslashes($pager)
+ . "', ab_mphone='" . addslashes($mphone)
+ . "', ab_ophone='" . addslashes($ophone)
+ . "', ab_street='" . addslashes($street)
. "', ab_address2='" . addslashes($address2)
- . "', ab_city='" . addslashes($city)
- . "', ab_state='" . addslashes($state)
- . "', ab_zip='" . addslashes($zip)
- . "', ab_bday='" . addslashes($bday)
- . "', ab_notes='" . addslashes($notes)
- . "', ab_company='" . addslashes($company)
- . "', ab_access='" . addslashes($access)
+ . "', ab_city='" . addslashes($city)
+ . "', ab_state='" . addslashes($state)
+ . "', ab_zip='" . addslashes($zip)
+ . "', ab_bday='" . addslashes($bday)
+ . "', ab_notes='" . addslashes($notes)
+ . "', ab_company='" . addslashes($company)
+ . "', ab_access='" . addslashes($access)
+ . "', ab_url='" . addslashes($url)
. "' WHERE ab_owner='" . $phpgw_info["user"]["account_id"] . "' AND ab_id=$ab_id";
}
@@ -120,16 +124,16 @@
-
+
-
+ |
">
|
-
+ |
" . lang("Cancel"); ?>
|
-
+ |
" . lang("Delete"); ?>
|
diff --git a/addressbook/inc/functions.inc.php b/addressbook/inc/functions.inc.php
index e083d8294f..3bede63c9f 100755
--- a/addressbook/inc/functions.inc.php
+++ b/addressbook/inc/functions.inc.php
@@ -32,8 +32,7 @@
function form($format,$action,$title,$fields)
{
- global $phpgw;
- global $phpgw_info;
+ global $phpgw, $phpgw_info;
$email = $fields["email"];
$firstname = $fields["firstname"];
@@ -56,6 +55,7 @@
$ab_company = $fields["company"];
$company_id = $fields["company_id"];
$company_name = $fields["company_name"];
+ $url = $fields["url"];
if ($format != "view") {
$email = "";
@@ -73,6 +73,8 @@
$city = "";
$state = "";
$zip = "";
+ $url = "";
+
if($phpgw_info["apps"]["timetrack"]["enabled"]) {
$company = ' |