Added Message details plugin to CVS
[squirrelmail.git] / plugins / message_details / message_details_top.php
1 <?php
2 /** Message Source
3 *
4 * Plugin to view the RFC822 raw message output and the bodystructure of a message
5 *
6 * Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * $Id$
10 **/
11
12 chdir('..');
13 require_once ('../src/validate.php');
14 require_once ('../functions/strings.php');
15 require_once ('../config/config.php');
16
17
18 displayHtmlHeader( _("Message details"),
19 "<script language=\"javascript\">\n".
20 "<!--\n".
21 "function printPopup() {\n".
22 "parent.frames[1].focus();\n".
23 "parent.frames[1].print();\n".
24 "}\n".
25 "-->\n".
26 "</script>\n", FALSE );
27
28
29 echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
30 '<center><b>'.
31 '<FORM name=rfc822 action="message_details_download.php?savemessage=1&passed_id='."$passed_id".'" METHOD=POST>' .
32 '<input type="button" value="' . _("Print") . '" onClick="printPopup()">&nbsp&nbsp '.
33 '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">&nbsp&nbsp'.
34 '<input type="submit" value="' . _("Save Message") . '"> '.
35 '<input type="hidden" name="mailbox" value="'. "$mailbox" . '"> ' .
36 '</form>'.
37 '</b>'.
38 '</body>'.
39 "</html>\n";
40 ?>