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