| 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 © 2002 Marc Groot Koerkamp, The Netherlands |
| 9 | * @copyright Copyright © 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/forms.php'); |
| 22 | |
| 23 | displayHtmlHeader( _("Message Details"), |
| 24 | "<script language=\"javascript\">\n". |
| 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 | |
| 33 | sqgetGlobalVar('passed_id', $passed_id, SQ_GET); |
| 34 | sqgetGlobalVar('mailbox', $mailbox, SQ_GET); |
| 35 | |
| 36 | echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" . |
| 37 | '<center><b>' . |
| 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'). |
| 43 | '<input type="button" value="' . _("Print") . '" onClick="printPopup()" /> '. |
| 44 | '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()" /> '. |
| 45 | addSubmit(_("Save Message")). |
| 46 | '</form>'. |
| 47 | '</b>'. |
| 48 | '</body>'. |
| 49 | "</html>\n"; |
| 50 | ?> |