XHTML fixes
[squirrelmail.git] / src / printer_friendly_top.php
... / ...
CommitLineData
1<?php
2
3/**
4 * printer_friendly_top.php
5 *
6 * Copyright (c) 1999-2004 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * top frame of printer_friendly_main.php
10 * displays some javascript buttons for printing & closing
11 *
12 * @version $Id$
13 * @package squirrelmail
14 */
15
16/**
17 * Path for SquirrelMail required files.
18 * @ignore
19 */
20define('SM_PATH','../');
21
22/* SquirrelMail required files. */
23require_once(SM_PATH . 'include/validate.php');
24require_once(SM_PATH . 'functions/strings.php');
25require_once(SM_PATH . 'config/config.php');
26require_once(SM_PATH . 'include/load_prefs.php');
27require_once(SM_PATH . 'functions/page_header.php');
28require_once(SM_PATH . 'functions/html.php');
29
30displayHtmlHeader( _("Printer Friendly"),
31 "<script language=\"javascript\" type=\"text/javascript\">\n".
32 "<!--\n".
33 "function printPopup() {\n".
34 "parent.frames[1].focus();\n".
35 "parent.frames[1].print();\n".
36 "}\n".
37 "-->\n".
38 "</script>\n", FALSE );
39
40
41echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n" .
42 html_tag( 'div',
43 '<b>'.
44 '<form>'.
45 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
46 '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
47 '</form>'.
48 '</b>',
49 'right' );
50?>
51</body></html>