X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fvcard.php;h=1fac0172c3c353303ffd81d0910213fd3fd0b8f3;hb=9c66bc9a51a04e6460ddc17321a6eb67082cdc7c;hp=1d669d1074c21ba44bd893a0165b7a93bb23e19d;hpb=1d80c108a1d741b7dcb562ea1cf6d2214322b192;p=squirrelmail.git diff --git a/src/vcard.php b/src/vcard.php index 1d669d10..1fac0172 100644 --- a/src/vcard.php +++ b/src/vcard.php @@ -3,16 +3,19 @@ /** * vcard.php * - * Copyright (c) 1999-2003 The SquirrelMail Project Team + * Copyright (c) 1999-2004 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * This file shows an attched vcard * - * $Id$ + * @version $Id$ * @package squirrelmail */ -/** Path for SquirrelMail required files. */ +/** + * Path for SquirrelMail required files. + * @ignore + */ Define('SM_PATH','../'); /* SquirrelMail required files. */ @@ -45,8 +48,8 @@ echo '
' . _("Viewing a Business Card") . " - "; $msg_url = 'read_body.php?mailbox='.urlencode($mailbox). - '&startMessage='.$startMessage. - '&passed_id='.$passed_id; + '&startMessage='.urlencode($startMessage). + '&passed_id='.urlencode($passed_id); $msg_url = set_url_var($msg_url, 'ent_id', 0); @@ -144,81 +147,67 @@ echo '
' . _("Add to Addressbook") . '' . '' . - '
' . + addForm('../src/addressbook.php', 'POST', 'f_add') . '' . '' . - '' . - '' . + '' . + +echo addSelect('addaddr[label]', $opts, '', TRUE); +echo '' . '' . '
Nickname:
Note Field Contains:' . - ''. + addInput('addaddr[nickname]', $vcard_safe['firstname'] . '-' . $vcard_safe['lastname'], '20'). + '
Note Field Contains:' ; +$opts = array(); if (isset($vcard_nice['url'])) { - echo '\n"; + $opts[$vcard_nice['url']] = _("Web Page"); } if (isset($vcard_nice['adr'])) { - echo '\n"; + $opts[$vcard_nice['adr']] = _("Address"); } if (isset($vcard_nice['title'])) { - echo '\n"; + $opts[$vcard_nice['title']] = _("Title"); } if (isset($vcard_nice['org'])) { - echo '\n"; + $opts[$vcard_nice['org']] = _("Organization / Department"); } if (isset($vcard_nice['title'])) { - echo '\n"; + $opts[$vcard_nice['title'].'; '.$vcard_nice['org']] = _("Title & Org. / Dept."); } if (isset($vcard_nice['tel;work'])) { - echo '\n"; + $opts[$vcard_nice['tel;work']] = _("Work Phone"); } if (isset($vcard_nice['tel;home'])) { - echo '\n"; + $opts[$vcard_nice['tel;home']] = _("Home Phone"); } if (isset($vcard_nice['tel;cell'])) { - echo '\n"; + $opts[$vcard_nice['tel;cell']] = _("Cellular Phone"); } if (isset($vcard_nice['tel;fax'])) { - echo '\n"; + $opts[$vcard_nice['tel;fax']] = _("Fax"); } if (isset($vcard_nice['note'])) { - echo '\n"; + $opts[$vcard_nice['note']] = _("Note"); } -echo '' . - '
' . - '' . - '' . - '' . - '' . + addHidden('addaddr[email]', $vcard_nice['email;internet']). + addHidden('addaddr[firstname]', $vcard_safe['firstname']). + addHidden('addaddr[lastname]', $vcard_safe['lastname']). + addSubmit(_("Add to Address Book"), 'addaddr[SUBMIT]'). '
' . - '
' . + '' . '' . '' . '' . _("Download this as a file") . '' . '' . '' . '
' . - '
'; - noframes_bottom(); + '' . + ''; -?> \ No newline at end of file +?>