Putting XHTML compliance back
[squirrelmail.git] / src / printer_friendly_top.php
CommitLineData
f226cba7 1<?php
44966ae5 2
35586184 3/**
b5cd24a8 4 * printer_friendly top frame
35586184 5 *
6 * top frame of printer_friendly_main.php
7 * displays some javascript buttons for printing & closing
8 *
b5cd24a8 9 * @copyright (c) 1999-2004 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
30967a1e 11 * @version $Id$
8f6f9ba5 12 * @package squirrelmail
35586184 13 */
f226cba7 14
30967a1e 15/**
16 * Path for SquirrelMail required files.
17 * @ignore
18 */
86725763 19define('SM_PATH','../');
20
21/* SquirrelMail required files. */
08185f2a 22require_once(SM_PATH . 'include/validate.php');
f226cba7 23
3bbf5974 24displayHtmlHeader( _("Printer Friendly"),
9d9430d6 25 "<script language=\"javascript\" type=\"text/javascript\">\n".
3bbf5974 26 "<!--\n".
27 "function printPopup() {\n".
28 "parent.frames[1].focus();\n".
29 "parent.frames[1].print();\n".
30 "}\n".
31 "-->\n".
32 "</script>\n", FALSE );
f226cba7 33
f226cba7 34
d6bc7d16 35echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n" .
1c663478 36 html_tag( 'div',
37 '<b>'.
38 '<form>'.
d68323ff 39 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
40 '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
1c663478 41 '</form>'.
42 '</b>',
6206f6c4 43 'right' );
9d9430d6 44?>
d6bc7d16 45</body></html>