message_details_top.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 &copy; 2002 Marc Groot Koerkamp, The Netherlands
  9. * @copyright &copy; 2002-2007 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. * Include the SquirrelMail initialization file.
  17. */
  18. require('../../include/init.php');
  19. require(SM_PATH . 'functions/forms.php');
  20. displayHtmlHeader( _("Message Details"),
  21. "<script type=\"text/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. '<div style="text-align: center;">' .
  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. (checkForJavascript() ?
  39. '<input type="button" value="' . _("Print") . '" onclick="printPopup()" />&nbsp;&nbsp;'.
  40. '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" />&nbsp;&nbsp;' :'').
  41. addSubmit(_("Save Message")).
  42. '</form></div>'.
  43. '</body>'.
  44. "</html>\n";
  45. ?>