Moving some HTML out of PHP
authorjervfors <jervfors@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Aug 2004 00:04:29 +0000 (00:04 +0000)
committerjervfors <jervfors@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Aug 2004 00:04:29 +0000 (00:04 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7919 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/printer_friendly_main.php

index d6ec600..b8493e2 100644 (file)
@@ -27,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>