' . _("Additional info") . ': | ';
$opts = array();
if (isset($vcard_nice['url'])) {
$opts[$vcard_nice['url']] = _("Web Page");
}
if (isset($vcard_nice['adr'])) {
$opts[$vcard_nice['adr']] = _("Address");
}
if (isset($vcard_nice['title'])) {
$opts[$vcard_nice['title']] = _("Title");
}
if (isset($vcard_nice['org'])) {
$opts[$vcard_nice['org']] = _("Organization / Department");
}
if (isset($vcard_nice['title'])) {
$opts[$vcard_nice['title'].'; '.$vcard_nice['org']] = _("Title & Org. / Dept.");
}
if (isset($vcard_nice['tel;work'])) {
$opts[$vcard_nice['tel;work']] = _("Work Phone");
}
if (isset($vcard_nice['tel;home'])) {
$opts[$vcard_nice['tel;home']] = _("Home Phone");
}
if (isset($vcard_nice['tel;cell'])) {
$opts[$vcard_nice['tel;cell']] = _("Cellular Phone");
}
if (isset($vcard_nice['tel;fax'])) {
$opts[$vcard_nice['tel;fax']] = _("Fax");
}
if (isset($vcard_nice['note'])) {
$opts[$vcard_nice['note']] = _("Note");
}
/*
* If the vcard comes with nothing but name and e-mail address, the user gets
* the chance to type some additional info. If there's more info in the card,
* the user gets to choose what will be added as additional info.
*/
if (count($opts) == 0) {
echo addInput('addaddr[label]', '', '20');
} else {
echo addSelect('addaddr[label]', $opts, '', TRUE);
}
?>
|