Use checkForJavascript() instead of $javascript_on. Except I did not change mailbox_...
[squirrelmail.git] / plugins / message_details / message_details_top.php
CommitLineData
bbdea028 1<?php
4b4abf93 2
86c62251 3/**
91e0dccc 4 * Message Details plugin - top frame with buttons
8d6a115b 5 *
6 * Plugin to view the RFC822 raw message output and the bodystructure of a message
7 *
86c62251 8 * @author Marc Groot Koerkamp
4b4abf93 9 * @copyright &copy; 2002 Marc Groot Koerkamp, The Netherlands
47ccfad4 10 * @copyright &copy; 2002-2006 The SquirrelMail Project Team
86c62251 11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id$
ea5f4b8e 13 * @package plugins
14 * @subpackage message_details
8d6a115b 15 */
bbdea028 16
202bcbcc 17/**
18 * Include the SquirrelMail initialization file.
19 */
20require('../../include/init.php');
21require(SM_PATH . 'functions/forms.php');
bbdea028 22
3720bcfc 23displayHtmlHeader( _("Message Details"),
2c92ea9d 24 "<script type=\"text/javascript\">\n".
bbdea028 25 "<!--\n".
26 "function printPopup() {\n".
27 "parent.frames[1].focus();\n".
28 "parent.frames[1].print();\n".
29 "}\n".
30 "-->\n".
31 "</script>\n", FALSE );
32
f360843c 33sqgetGlobalVar('passed_id', $passed_id, SQ_GET);
34sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
bbdea028 35
36echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
f265009a 37 '<div style="text-align: center;">' .
d8a8fe9f 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').
4d7e2270 43 ($javascript_on ?
c435f076 44 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" />&nbsp;&nbsp;'.
4d7e2270 45 '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" />&nbsp;&nbsp;' :'').
d8a8fe9f 46 addSubmit(_("Save Message")).
f265009a 47 '</form></div>'.
bbdea028 48 '</body>'.
49 "</html>\n";
4d7e2270 50?>