fix for unidentified reply-to header lines.
[squirrelmail.git] / src / printer_friendly_top.php
index fd9b101a3e70d243ad9ec369841ef163d030a8dd..6b8224c04bb21450760d5f171112c59b108ef128 100644 (file)
@@ -1,44 +1,50 @@
 <?php
 
-  /**
  **  printer_friendly_top.php
  **
  **  Copyright (c) 1999-2001 The SquirrelMail development team
  **  Licensed under the GNU GPL. For full terms see the file COPYING.
  **
  **  top frame of printer_friendly_main.php
  **  displays some javascript buttons for printing & closing
  **
  **  $Id$
  **/
+/**
* printer_friendly_top.php
+ *
* Copyright (c) 1999-2002 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* top frame of printer_friendly_main.php
* displays some javascript buttons for printing & closing
+ *
* $Id$
+ */
 
-    require_once('../src/validate.php');
-    require_once('../functions/strings.php');
-    require_once('../config/config.php');
-    require_once('../src/load_prefs.php');
-    require_once('../functions/page_header.php');
+/* Path for SquirrelMail required files. */
+define('SM_PATH','../');
 
-    displayHtmlHeader( _("Printer Friendly"),
-                 "<script language=\"javascript\">\n".
-                 "<!--\n".
-                 "function printPopup() {\n".
-                    "parent.frames[1].focus();\n".
-                    "parent.frames[1].print();\n".
-                 "}\n".
-                 "-->\n".
-                 "</script>\n", FALSE );
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/strings.php');
+require_once(SM_PATH . 'config/config.php');
+require_once(SM_PATH . 'include/load_prefs.php');
+require_once(SM_PATH . 'functions/page_header.php');
+require_once(SM_PATH . 'functions/html.php');
 
+displayHtmlHeader( _("Printer Friendly"),
+             "<script language=\"javascript\" type=\"text/javascript\">\n".
+             "<!--\n".
+             "function printPopup() {\n".
+                "parent.frames[1].focus();\n".
+                "parent.frames[1].print();\n".
+             "}\n".
+             "-->\n".
+             "</script>\n", FALSE );
 
-    echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
-         //'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center">'.
-         '<center><b>'.
+
+echo "<body text='$color[8]' bgcolor='$color[3]' link='$color[7]' vlink='$color[7]' alink='$color[7]'>\n" .
+     //'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center">'.
+     html_tag( 'div',
+         '<b>'.
          '<form>'.
          '<input type="button" value="' . _("Print") . '" onClick="printPopup()"> '.
-         '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">'.
+         '<input type="button" value="' . _("Close") . '" onClick="window.parent.close()">'.
          '</form>'.
-         '</b>'.
-         //'</td></tr></table>'.
-         '</body>'.
-         "</html>\n";
+         '</b>',
+     'right' );
+     //'</td></tr></table>'.
+     '</body></html>'. "\n";
 
-?>
\ No newline at end of file
+?>