> Can someone tell me how to edit the following code from
> printer_friendly_bottom.php so that the order of the headers is..
>
> Date
> From
> To (or CC if it exists)
> Subject
>
> I've tried several ways of doing it but I always get an error when I
> switch To/CC with Subject.
You probably forgot to adjust the end and start of the echo statements,
but it would have been nice if you included the actual error message.
Anyway, I got mine to work by doing this:
echo '<body text="#000000" bgcolor="#FFFFFF" link="#000000"
vlink="#000000" alink="#000000">'."\n" .
/* headers (we use table because translations are not all the same
width) */
html_tag( 'table', '', 'center', '', 'cellspacing="0"
cellpadding="0" border="0" width="100%"' ) .
html_tag( 'tr',
html_tag( 'td', _("From").' ', 'left' ,'','valign="top"')
.
html_tag( 'td', $from, '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', $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', $cc, 'left' )
);
}
echo html_tag( 'tr',
html_tag( 'td', _("Subject").' ', 'left','','valign="top"'
) .
html_tag( 'td', $subject, 'left' )
);
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users