Adding more index.php files
[squirrelmail.git] / plugins / message_details / message_details_top.php
CommitLineData
bbdea028 1<?php
86c62251 2/**
91e0dccc 3 * Message Details plugin - top frame with buttons
8d6a115b 4 *
5 * Plugin to view the RFC822 raw message output and the bodystructure of a message
6 *
86c62251 7 * @author Marc Groot Koerkamp
8 * @copyright Copyright &copy; 2002 Marc Groot Koerkamp, The Netherlands
6c84ba1e 9 * @copyright Copyright &copy; 2004-2005 The SquirrelMail Project Team
86c62251 10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @version $Id$
ea5f4b8e 12 * @package plugins
13 * @subpackage message_details
8d6a115b 14 */
bbdea028 15
ea5f4b8e 16/** @ignore */
92219031 17define('SM_PATH','../../');
89252d71 18
19/* SquirrelMail required files. */
20require_once(SM_PATH . 'include/validate.php');
d8a8fe9f 21require_once(SM_PATH . 'functions/forms.php');
bbdea028 22
3720bcfc 23displayHtmlHeader( _("Message Details"),
a74103dd 24 "<script language=\"javascript\" 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" .
a74103dd 37 '<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').
c435f076 43 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" />&nbsp;&nbsp;'.
44 '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" />&nbsp;&nbsp;'.
d8a8fe9f 45 addSubmit(_("Save Message")).
a74103dd 46 '</form></center>'.
bbdea028 47 '</body>'.
48 "</html>\n";
f8a1ed5a 49?>