Source for file printer_friendly_top.php

Documentation is available at printer_friendly_top.php

  1. <?php
  2.  
  3. /**
  4.  * printer_friendly top frame
  5.  *
  6.  * top frame of printer_friendly_main.php
  7.  * displays some javascript buttons for printing & closing
  8.  *
  9.  * @copyright &copy; 1999-2006 The SquirrelMail Project Team
  10.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11.  * @version $Id: printer_friendly_top.php,v 1.14.2.7 2006/04/14 22:27:08 jervfors Exp $
  12.  * @package squirrelmail
  13.  */
  14.  
  15. /**
  16.  * Path for SquirrelMail required files.
  17.  * @ignore
  18.  */
  19. define('SM_PATH','../');
  20.  
  21. /* SquirrelMail required files. */
  22. require_once(SM_PATH 'include/validate.php');
  23.  
  24. displayHtmlHeader_("Printer Friendly"),
  25.              "<script language=\"javascript\" type=\"text/javascript\">\n".
  26.              "<!--\n".
  27.              "function printPopup() {\n".
  28.                 "parent.frames[1].focus();\n".
  29.                 "parent.frames[1].print();\n".
  30.              "}\n".
  31.              "-->\n".
  32.              "</script>\n"FALSE );
  33.  
  34.  
  35. echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n" .
  36.      html_tag'div',
  37.          '<b>'.
  38.          '<form>'.
  39.          '<input type="button" value="' _("Print"'" onclick="printPopup()" /> '.
  40.          '<input type="button" value="' _("Close"'" onclick="window.parent.close()" />'.
  41.          '</form>'.
  42.          '</b>',
  43.      'right' );
  44. ?>
  45. </body></html>

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