Source for file message_details_top.php

Documentation is available at message_details_top.php

  1. <?php
  2.  
  3. /**
  4.  * Message Details plugin - top frame with buttons
  5.  *
  6.  * Plugin to view the RFC822 raw message output and the bodystructure of a message
  7.  *
  8.  * @author Marc Groot Koerkamp
  9.  * @copyright &copy; 2002 Marc Groot Koerkamp, The Netherlands
  10.  * @copyright &copy; 2002-2006 The SquirrelMail Project Team
  11.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  12.  * @version $Id: message_details_top.php,v 1.27 2006/04/05 00:22:09 stekkel Exp $
  13.  * @package plugins
  14.  * @subpackage message_details
  15.  */
  16.  
  17. /**
  18.  * Include the SquirrelMail initialization file.
  19.  */
  20. require('../../include/init.php');
  21. require(SM_PATH 'functions/forms.php');
  22.  
  23. displayHtmlHeader_("Message Details"),
  24.              "<script type=\"text/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_idSQ_GET);
  34. sqgetGlobalVar('mailbox'$mailboxSQ_GET);
  35.  
  36. echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n.
  37.      '<div style="text-align: center;">' .
  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()" />&nbsp;&nbsp;'.
  44.      '<input type="button" value="' _("Close Window"'" onclick="window.parent.close()" />&nbsp;&nbsp;'.
  45.      addSubmit(_("Save Message")).
  46.      '</form></div>'.
  47.      '</body>'.
  48.      "</html>\n";
  49. ?>

Documentation generated on Sat, 07 Oct 2006 16:12:29 +0300 by phpDocumentor 1.3.0RC6