Source for file message_details_top.php

Documentation is available at message_details_top.php

  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 &copy; 2002 Marc Groot Koerkamp, The Netherlands
  9.  * @copyright Copyright &copy; 2004-2006 The SquirrelMail Project Team
  10.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11.  * @version $Id: message_details_top.php,v 1.11.2.4 2006/02/03 22:27:52 jervfors Exp $
  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.  
  22. displayHtmlHeader_("Message Details"),
  23.              "<script language=\"javascript\">\n".
  24.              "<!--\n".
  25.              "function printPopup() {\n".
  26.                 "parent.frames[1].focus();\n".
  27.                 "parent.frames[1].print();\n".
  28.              "}\n".
  29.              "-->\n".
  30.              "</script>\n"FALSE );
  31.  
  32. sqgetGlobalVar('passed_id'$passed_idSQ_GET);
  33. sqgetGlobalVar('mailbox'$mailboxSQ_GET);
  34.  
  35. echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n.
  36.      '<center><b>' .
  37.      '<form action="' SM_PATH 'src/download.php" method="GET">' .     
  38.      '<input type="button" value="' _("Print"'" onClick="printPopup()" />&nbsp;&nbsp;'.
  39.      '<input type="button" value="' _("Close Window"'" onClick="window.parent.close()" />&nbsp;&nbsp;'.
  40.      '<input type="submit" value="' _("Save Message"'" /> '.
  41.      '<input type="hidden" name="mailbox" value="' urlencode($mailbox'" />' .
  42.      '<input type="hidden" name="passed_id" value="' urlencode($passed_id'" />' .
  43.      '<input type="hidden" name="ent_id" value="0" />' .
  44.      '<input type="hidden" name="absolute_dl" value="true" />' .
  45.      '</form>'.
  46.      '</b>'.
  47.      '</body>'.
  48.      "</html>\n";
  49. ?>

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