Replacing HTML "script" element deprecated attribute "language".
[squirrelmail.git] / plugins / message_details / message_details_top.php
1 <?php
2
3 /**
4 * Message Details plugin - top frame with buttons
5 *
6 * Plugin to view the RFC822 raw message output and the bodystructure of a message
7 *
8 * @author Marc Groot Koerkamp
9 * @copyright &copy; 2002 Marc Groot Koerkamp, The Netherlands
10 * @copyright &copy; 2002-2006 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id$
13 * @package plugins
14 * @subpackage message_details
15 */
16
17 /** @ignore */
18 define('SM_PATH','../../');
19
20 /* SquirrelMail required files. */
21 require_once(SM_PATH . 'include/validate.php');
22 require_once(SM_PATH . 'functions/forms.php');
23
24 displayHtmlHeader( _("Message Details"),
25 "<script type=\"text/javascript\">\n".
26 "<!--\n".
27 "function printPopup() {\n".
28 "parent.frames[1].focus();\n".
29 "parent.frames[1].print();\n".
30 "}\n".
31 "-->\n".
32 "</script>\n", FALSE );
33
34 sqgetGlobalVar('passed_id', $passed_id, SQ_GET);
35 sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
36
37 echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
38 '<div style="text-align: center;">' .
39 addForm(SM_PATH . 'src/download.php', 'GET').
40 addHidden('mailbox', $mailbox).
41 addHidden('passed_id', $passed_id).
42 addHidden('ent_id', '0').
43 addHidden('absolute_dl', 'true').
44 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" />&nbsp;&nbsp;'.
45 '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" />&nbsp;&nbsp;'.
46 addSubmit(_("Save Message")).
47 '</form></div>'.
48 '</body>'.
49 "</html>\n";
50 ?>