bring string in line with rest
[squirrelmail.git] / src / printer_friendly_top.php
index cc7a924f8d4c9589c0146f2f1c52ada7bb18ac37..2ffaf6b45f2bef845ffcc21428f6d276f6e5770d 100644 (file)
  */
 
 /**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
  */
-define('SM_PATH','../');
+include('../include/init.php');
 
-/* SquirrelMail required files. */
-include_once(SM_PATH . 'include/validate.php');
+displayHtmlHeader( _("Printer Friendly"));
+$oErrorHandler->setDelayedErrors(true);
 
-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" .
-     html_tag( 'div',
-         '<form>'.
-         '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
-         '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
-         '</form>',
-     'right' );
+$oTemplate->display('printer_friendly_top.tpl');
 
 $oTemplate->display('footer.tpl');
 ?>
\ No newline at end of file