Internationlization of print header
[squirrelmail.git] / src / printer_friendly_top.php
index 3e7376d28a30e3da9e0e007bc3d4e0cc41e57bd8..5771c3c31b8a3f41172e133d3dd936fe2ec7ed8f 100644 (file)
     require_once('../functions/strings.php');
     require_once('../config/config.php');
     require_once('../src/load_prefs.php');
+    require_once('../functions/page_header.php');
 
-?>
-<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
-<html>
-  <head>
-  <script language="javascript">
-  <!--
-    function printPopup() {
-        parent.frames[1].focus();
-        parent.frames[1].print();
-    }
-  -->
-  </script>
-  </head>
-<?php
+    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 );
 
-    if ($theme_css != "")
-    {
-        printf ('<LINK REL="stylesheet" TYPE="text/css" HREF="%s">', $theme_css);
-        echo "\n";
-    }
 
+    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>'.
+         '<form>'.
+         '<input type="button" value="' . _("Print") . '" onClick="printPopup()"> '.
+         '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">'.
+         '</form>'.
+         '</b>'.
+         //'</td></tr></table>'.
+         '</body>'.
+         "</html>\n";
 
-    printf('<body text="%s" bgcolor="%s" link="%s" vlink="%s" alink="%s">',
-        $color[8], $color[3], $color[7], $color[7], $color[7]);
-?>
-    <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center">
-      <b>
-      <form>
-      <input type="button" value="Print" onClick="printPopup()">
-      <input type="button" value="Close Window" onClick="window.parent.close()">
-      </form>
-      </b>
-    </td></tr></table>
-  </body>
-</html>
+?>
\ No newline at end of file