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 1999-2020 The SquirrelMail Project Team
  10.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11.  * @version $Id: printer_friendly_top.php 14840 2020-01-07 07:42:38Z pdontthink $
  12.  * @package squirrelmail
  13.  */
  14.  
  15. /** This is the printer_friendly_top page */
  16. define('PAGE_NAME''printer_friendly_top');
  17.  
  18. /**
  19.  * Path for SquirrelMail required files.
  20.  * @ignore
  21.  */
  22. define('SM_PATH','../');
  23.  
  24. /* SquirrelMail required files. */
  25. require_once(SM_PATH 'include/validate.php');
  26.  
  27. displayHtmlHeader_("Printer Friendly"),
  28.              "<script language=\"javascript\" type=\"text/javascript\">\n".
  29.              "<!--\n".
  30.              "function printPopup() {\n".
  31.                 "parent.frames[1].focus();\n".
  32.                 "parent.frames[1].print();\n".
  33.              "}\n".
  34.              "-->\n".
  35.              "</script>\n"FALSE );
  36.  
  37.  
  38. echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n" .
  39.      html_tag'div',
  40.          '<b>'.
  41.          '<form>'.
  42.          '<input type="button" value="' _("Print"'" onclick="printPopup()" /> '.
  43.          '<input type="button" value="' _("Close"'" onclick="window.parent.close()" />'.
  44.          '</form>'.
  45.          '</b>',
  46.      'right' );
  47. ?>
  48. </body></html>

Documentation generated on Mon, 13 Jan 2020 04:25:11 +0100 by phpDocumentor 1.4.3