message_details_top.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. * @package plugins
  11. * @subpackage message_details
  12. */
  13. /** @ignore */
  14. define('SM_PATH','../../');
  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. require_once(SM_PATH . 'functions/forms.php');
  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. sqgetGlobalVar('passed_id', $passed_id, SQ_GET);
  30. sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
  31. echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
  32. '<center><b>' .
  33. addForm(SM_PATH . 'src/download.php', 'GET').
  34. addHidden('mailbox', $mailbox).
  35. addHidden('passed_id', $passed_id).
  36. addHidden('ent_id', '0').
  37. addHidden('absolute_dl', 'true').
  38. '<input type="button" value="' . _("Print") . '" onClick="printPopup()" />&nbsp;&nbsp;'.
  39. '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()" />&nbsp;&nbsp;'.
  40. addSubmit(_("Save Message")).
  41. '</form>'.
  42. '</b>'.
  43. '</body>'.
  44. "</html>\n";
  45. ?>