forked from extern/egroupware
Update field names to new class
This commit is contained in:
parent
60d5f7322d
commit
4f95d122cd
@ -15,7 +15,7 @@
|
|||||||
// NOTE: This entire file needs to be rewritten. There is a great deal of code not being used
|
// NOTE: This entire file needs to be rewritten. There is a great deal of code not being used
|
||||||
// anymore. This should also be converted to templates while where at it (jengo)
|
// anymore. This should also be converted to templates while where at it (jengo)
|
||||||
|
|
||||||
$abc = array('company' => 'company', // AddressBook Columns and their descriptions
|
/* $abc = array('company' => 'company', // AddressBook Columns and their descriptions
|
||||||
'firstname' => 'first name',
|
'firstname' => 'first name',
|
||||||
'lastname' => 'last name',
|
'lastname' => 'last name',
|
||||||
'email' => 'email',
|
'email' => 'email',
|
||||||
@ -33,34 +33,31 @@
|
|||||||
'bday' => 'birthday',
|
'bday' => 'birthday',
|
||||||
'url' => 'URL'
|
'url' => 'URL'
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
function form($format,$action,$title,$fields) { // used for add/edit
|
function form($format,$action,$title,$fields) { // used for add/edit
|
||||||
global $phpgw, $phpgw_info;
|
global $phpgw, $phpgw_info;
|
||||||
|
|
||||||
$t = new Template($phpgw_info["server"]["app_tpl"]);
|
$t = new Template($phpgw_info["server"]["app_tpl"]);
|
||||||
$t->set_file(array( "form" => "form.tpl"));
|
$t->set_file(array( "form" => "form.tpl"));
|
||||||
|
|
||||||
$email = $fields["email"];
|
$email = $fields["D.EMAIL"];
|
||||||
$firstname = $fields["firstname"];
|
$firstname = $fields["N_Given"];
|
||||||
$lastname = $fields["lastname"];
|
$lastname = $fields["N_Family"];
|
||||||
$title = $fields["title"];
|
$title = $fields["TITLE"];
|
||||||
$hphone = $fields["hphone"];
|
$hphone = $fields["A_TEL"];
|
||||||
$wphone = $fields["wphone"];
|
$wphone = $fields["B_TEL"];
|
||||||
$fax = $fields["fax"];
|
$fax = $fields["C_TEL"];
|
||||||
$pager = $fields["pager"];
|
$pager = $fields["pager"];
|
||||||
$mphone = $fields["mphone"];
|
$mphone = $fields["mphone"];
|
||||||
$ophone = $fields["ophone"];
|
$ophone = $fields["ophone"];
|
||||||
$street = $fields["street"];
|
$street = $fields["ADR_Street"];
|
||||||
$address2 = $fields["address2"];
|
$address2 = $fields["address2"];
|
||||||
$city = $fields["city"];
|
$city = $fields["ADR_Locality"];
|
||||||
$state = $fields["state"];
|
$state = $fields["ADR_Region"];
|
||||||
$zip = $fields["zip"];
|
$zip = $fields["ADR_PostalCode"];
|
||||||
$bday = $fields["bday"];
|
$bday = $fields["bday"];
|
||||||
$notes = $fields["notes"];
|
$notes = $fields["notes"];
|
||||||
$access = $fields["access"];
|
$company = $fields["ORG_Name"];
|
||||||
$company = $fields["company"];
|
|
||||||
$company_id = $fields["company_id"];
|
|
||||||
$company_name = $fields["company"];
|
|
||||||
$url = $fields["url"];
|
$url = $fields["url"];
|
||||||
|
|
||||||
if ($format != "view") {
|
if ($format != "view") {
|
||||||
|
Loading…
Reference in New Issue
Block a user