Moving some HTML out of PHP
[squirrelmail.git] / src / printer_friendly_main.php
index 24d10e222b8f6384e9d58fb7dc9da7d535bfc567..b8493e23a6cc9ba5182da8e93e85084b13e45ceb 100644 (file)
@@ -3,13 +3,17 @@
 /**
  * printer_friendly_main.php
  *
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
- * $Id$
+ * @version $Id$
+ * @package squirrelmail
  */
 
-/* Path for SquirrelMail required files. */
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
 define('SM_PATH','../');
 
 /* SquirrelMail required files. */
@@ -23,14 +27,12 @@ $passed_ent_id = $_GET['passed_ent_id'];
 $passed_id = (int) $_GET['passed_id'];
 $mailbox = $_GET['mailbox'];
 /* end globals */
-
-echo "<frameset rows=\"60, *\" noresize border=\"0\">\n".
-     '<frame src="printer_friendly_top.php" name="top_frame" scrolling="no" />'.
-     '<frame src="printer_friendly_bottom.php?passed_ent_id='.
-     urlencode($passed_ent_id) . '&amp;mailbox=' . urlencode($mailbox) .
-     '&amp;passed_id=' . $passed_id .
-     '" name="bottom_frame" />'.
-     "\n</frameset>\n".
-     "</html>\n";
-
 ?>
+<frameset rows="60, *" noresize="noresize" border="0">
+    <frame src="printer_friendly_top.php" name="top_frame" scrolling="no" />
+    <frame src="printer_friendly_bottom.php?passed_ent_id=<?php
+        echo urlencode($passed_ent_id) . '&amp;mailbox=' . urlencode($mailbox) .
+             '&amp;passed_id=' . $passed_id;
+        ?>" name="bottom_frame" />
+</frameset>
+</html>