4 * Message Details plugin - top frame with buttons
6 * Plugin to view the RFC822 raw message output and the bodystructure of a message
8 * @author Marc Groot Koerkamp
9 * @copyright © 2002 Marc Groot Koerkamp, The Netherlands
10 * @copyright © 2002-2007 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
14 * @subpackage message_details
18 * Include the SquirrelMail initialization file.
20 require('../../include/init.php');
21 require(SM_PATH
. 'functions/forms.php');
23 displayHtmlHeader( _("Message Details"),
24 "<script type=\"text/javascript\">\n".
26 "function printPopup() {\n".
27 "parent.frames[1].focus();\n".
28 "parent.frames[1].print();\n".
31 "</script>\n", FALSE );
33 sqgetGlobalVar('passed_id', $passed_id, SQ_GET
);
34 sqgetGlobalVar('mailbox', $mailbox, SQ_GET
);
36 echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
37 '<div style="text-align: center;">' .
38 addForm(SM_PATH
. 'src/download.php', 'GET').
39 addHidden('mailbox', $mailbox).
40 addHidden('passed_id', $passed_id).
41 addHidden('ent_id', '0').
42 addHidden('absolute_dl', 'true').
43 (checkForJavascript() ?
44 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
45 '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" /> ' :'').
46 addSubmit(_("Save Message")).