- echo '<option value="' . $vcard_nice['note'] .
- '">' . _("Note") . "</option>\n";
-}
-echo '</select>' .
- '</td></tr>' .
- '<tr><td colspan=2 align=center>' .
- '<INPUT NAME="addaddr[email]" type=hidden value="' .
- htmlspecialchars($vcard_nice['email;internet']) . '">' .
- '<INPUT NAME="addaddr[firstname]" type=hidden value="' .
- $vcard_safe['firstname'] . '">' .
- '<INPUT NAME="addaddr[lastname]" type=hidden value="' .
- $vcard_safe['lastname'] . '">' .
- '<INPUT TYPE=submit NAME="addaddr[SUBMIT]" ' .
- 'VALUE="Add to Address Book">' .
- '</td></tr>' .
- '</table>' .
- '</FORM>' .
- '</td></tr>' .
- '<tr><td align=center>' .
- '<a href="../src/download.php?absolute_dl=true&passed_id=' .
- $passed_id . '&mailbox=' . urlencode($mailbox) .
- '&passed_ent_id=' . urlencode($passed_ent_id) . '">' .
- _("Download this as a file") . '</A>' .
- '</TD></TR></TABLE>' .
-
- '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>' .
- '<TR><TD BGCOLOR="' . $color[4] . '">' .
- '</TD></TR></TABLE>' .
- '</body></html>';
-
-?>
+ $opts[$vcard_nice['note']] = _("Note");
+}
+
+$oTemplate->assign('view_message_link', $msg_url);
+$oTemplate->assign('download_link', $dl);
+$oTemplate->assign('vcard', $vcard);
+
+$oTemplate->assign('nickname', $vcard_nice['firstname'].'-'.$vcard_safe['lastname']);
+$oTemplate->assign('firstname', $vcard_safe['firstname']);
+$oTemplate->assign('lastname', $vcard_safe['lastname']);
+$oTemplate->assign('email', $email);
+$oTemplate->assign('info', $opts);
+
+$oTemplate->display('vcard.tpl');
+
+$oTemplate->display('footer.tpl');