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