-displayHtmlHeader( _("Printer Friendly"), '', FALSE );
-
-echo "<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
- /* headers (we use table because translations are not all the same width) */
- html_tag( 'table', '', 'center', '', 'cellspacing="0" cellpadding="0" border="0"' ) .
- html_tag( 'tr',
- html_tag( 'td', _("From").' ', 'left' ,'','valign="top"') .
- html_tag( 'td', htmlspecialchars($from), 'left' )
- ) . "\n" .
- html_tag( 'tr',
- html_tag( 'td', _("Subject").' ', 'left','','valign="top"' ) .
- html_tag( 'td', htmlspecialchars($subject), 'left' )
- ) . "\n" .
- html_tag( 'tr',
- html_tag( 'td', _("Date").' ', 'left' ) .
- html_tag( 'td', htmlspecialchars($date), 'left' )
- ) . "\n" .
- html_tag( 'tr',
- html_tag( 'td', _("To").' ', 'left','','valign="top"' ) .
- html_tag( 'td', htmlspecialchars($to), 'left' )
- ) . "\n";
- if ( strlen($cc) > 0 ) { /* only show CC: if it's there... */
- echo html_tag( 'tr',
- html_tag( 'td', _("CC").' ', 'left','','valign="top"' ) .
- html_tag( 'td', htmlspecialchars($cc), 'left' )
- );
- }
- /* body */
- echo html_tag( 'tr',
- html_tag( 'td', '<hr noshade size=1><br>' . "\n" . $body, 'left', '', 'colspan="2"' )
- ) . "\n" .
+displayHtmlHeader($subject);
+
+$aHeaders = array();
+$aHeaders[ _("From") ] = $from;
+$aHeaders[ _("Subject") ] = $subject;
+$aHeaders[ _("Date") ] = htmlspecialchars($date);
+$aHeaders[ _("To") ] = $to;
+$aHeaders[ _("Cc") ] = $cc;