projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move sqm_array_merge to arrays.php and subsequently move inclusion of arrays.php...
[squirrelmail.git]
/
src
/
printer_friendly_top.php
diff --git
a/src/printer_friendly_top.php
b/src/printer_friendly_top.php
index 5771c3c31b8a3f41172e133d3dd936fe2ec7ed8f..837e58c9668f92f72289e0ffc2bba99843e6bc15 100644
(file)
--- a/
src/printer_friendly_top.php
+++ b/
src/printer_friendly_top.php
@@
-1,44
+1,41
@@
<?php
<?php
-
/**
- ** printer_friendly_top.php
-
*
*
- ** Copyright (c) 1999-2000 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 frame
+ *
+ * top frame of printer_friendly_main.php
+ * displays some javascript buttons for printing & closing
+ *
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package squirrelmail
+ */
- 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');
+/**
+ * Include the SquirrelMail initialization file.
+ */
+include('../include/init.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 );
+displayHtmlHeader( _("Printer Friendly"),
+ "<script 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"
.
+ html_tag( 'div',
'<form>'.
'<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";
+ '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
+ '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
+ '</form>',
+ 'right' );
+$oTemplate->display('footer.tpl');
?>
\ No newline at end of file
?>
\ No newline at end of file