X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fvcard.php;h=c96dab567ede1657accf722b87142d8c41b4c45d;hb=7fcab811a919289459e616f0e47388c1cb27195a;hp=9db7437d4f2c16be9908a119c44aa3c42b11fe2b;hpb=64c9e87e68537c4a9a2a20d4d75ea369f0c4a8e1;p=squirrelmail.git diff --git a/src/vcard.php b/src/vcard.php index 9db7437d..c96dab56 100644 --- a/src/vcard.php +++ b/src/vcard.php @@ -42,14 +42,15 @@ sqimap_mailbox_select($imapConnection, $mailbox); displayPageHeader($color, 'None'); -echo '
' . "\n" . - '
' . - '
' . - _("Viewing a Business Card") . " - "; +echo '
' . "\n" . + '\n"; + echo '\n"; } foreach ($vcard_nice as $k => $v) { @@ -116,8 +117,8 @@ $ShowValues = array( 'tel;fax' => _("Fax"), 'note' => _("Note")); -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); @@ -92,9 +93,9 @@ if ($vcard_nice['version'] == '2.1') { $vcard_nice['email;internet'] = $vcard_nice['email;pref;internet']; } } else { - echo '
vCard Version ' . $vcard_nice['version'] . - ' is not supported. Some information might not be converted ' . - "correctly.
' . + sprintf(_("vCard Version %s is not supported. Some information might not be converted correctly."),$vcard_nice['version']) . + "

' . - '' . "\n"; +echo '

' . + '' . "\n"; if (isset($vcard_safe['email;internet'])) { $vcard_safe['email;internet'] = makeComposeLink('src/compose.php?send_to='.urlencode($vcard_safe['email;internet']), @@ -125,35 +126,35 @@ if (isset($vcard_safe['email;internet'])) { } if (isset($vcard_safe['url'])) { - $vcard_safe['url'] = '' . - $vcard_safe['url'] . ''; + $vcard_safe['url'] = '' . + $vcard_safe['url'] . ''; } foreach ($ShowValues as $k => $v) { if (isset($vcard_safe[$k]) && $vcard_safe[$k]) { - echo "\n"; } } echo '
$v:" . $vcard_safe[$k] . + echo "
$v:" . $vcard_safe[$k] . "
' . - '
' . - '
' . - '' . + '
' . + '' . - '' . - '' . - ' + +
' . - '
' . - _("Add to Addressbook") . - '
' . - addForm('../src/addressbook.php', 'POST', 'f_add') . - '' . - '' . - '' . - '' . + '' . + '' . - '
Nickname:'. - addInput('addaddr[nickname]', $vcard_safe['firstname'] . '-' . $vcard_safe['lastname'], '20'). - '
Note Field Contains:' ; + '
' . + '
' . + _("Add to Addressbook") . + '
' . + addForm('../src/addressbook.php', 'post', 'f_add') . + '' . + '' . + '' . + '' . - '' . - '
' . _("Nickname:") . ''. + addInput('addaddr[nickname]', $vcard_safe['firstname'] . '-' . $vcard_safe['lastname'], '20'). + '
' . _("Note Field Contains:") . '' ; $opts = array(); if (isset($vcard_nice['url'])) { @@ -188,26 +189,29 @@ if (isset($vcard_nice['note'])) { } echo addSelect('addaddr[label]', $opts, '', TRUE); -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") . '' . - '
' . - - '' . - '
' . - '
' . - ''; - ?> +
+ +
+ +
+'. + _("Download this as a file") . ''; +?> +
+ + +
+
+