* * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id$ */ $abc = array('company' => 'company', // AddressBook Columns and their descriptions 'firstname' => 'first name', 'lastname' => 'last name', 'email' => 'email', 'wphone' => 'work phone', 'hphone' => 'home phone', 'fax' => 'fax', 'pager' => 'pager', 'mphone' => 'mobile phone', 'ophone' => 'other phone', 'street' => 'street', 'city' => 'city', 'state' => 'state', 'zip' => 'zip code', 'bday' => 'birthday', 'url' => 'URL' ); function form($format,$action,$title,$fields) { global $phpgw, $phpgw_info; $email = $fields["email"]; $firstname = $fields["firstname"]; $lastname = $fields["lastname"]; $title = $fields["title"]; $hphone = $fields["hphone"]; $wphone = $fields["wphone"]; $fax = $fields["fax"]; $pager = $fields["pager"]; $mphone = $fields["mphone"]; $ophone = $fields["ophone"]; $street = $fields["street"]; $address2 = $fields["address2"]; $city = $fields["city"]; $state = $fields["state"]; $zip = $fields["zip"]; $bday = $fields["bday"]; $notes = $fields["notes"]; $access = $fields["access"]; $ab_company = $fields["company"]; $company_id = $fields["company_id"]; $company_name = $fields["company_name"]; $url = $fields["url"]; if ($format != "view") { $email = ""; $firstname = ""; $lastname = ""; $title = ""; $hphone = ""; $wphone = ""; $fax = ""; $pager = ""; $mphone = ""; $ophone = ""; $street = ""; $address2 = ""; $city = ""; $state = ""; $zip = ""; $url = ""; if($phpgw_info["apps"]["timetrack"]["enabled"]) { $company = '"; } else { $company = ""; } if (strlen($bday) > 2) { list( $month, $day, $year ) = split( '/', $bday ); $temp_month[$month] = "SELECTED"; $bday ="" . "" . "" . "(e.g. 1969)"; } else { $bday ="" . "" . "" . "(e.g. 1969)"; } $notes = ""; } else { $notes = "
"; if ($bday == "//") $bday = ""; if($phpgw_info["apps"]["timetrack"]["enabled"]) { $company = $company_name; } else { $company = $ab_company; } } if ($action) { echo "
link($action)."\" method=\"post\">\n"; } // test: //echo "Time track app status = " . $phpgw_info["apps"]["timetrack"]["enabled"]; ?> " . lang("Group access") . ":" . "" . ""; } if ($format == "view") echo "" . "
: :
: :
: :
: :
: :
: :
: :
:
:
:
:
" . $phpgw->accounts->convert_string_to_names($access); } else { echo "" . lang("access") . ":" . $access; } } else { ?> : "; } ?>
" . lang("Which groups") . ":
" . lang("Created by") . ":" . grab_owner_name($fields["owner"]); ?>
: