9748e4ddb49e715330ca217009e2007a13fcca56
[squirrelmail.git] / src / printer_friendly_top.php
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 * $Id$
13 * @package squirrelmail
14 */
15
16 /** Path for SquirrelMail required files. */
17 define('SM_PATH','../');
18
19 /* SquirrelMail required files. */
20 require_once(SM_PATH . 'include/validate.php');
21 require_once(SM_PATH . 'functions/strings.php');
22 require_once(SM_PATH . 'config/config.php');
23 require_once(SM_PATH . 'include/load_prefs.php');
24 require_once(SM_PATH . 'functions/page_header.php');
25 require_once(SM_PATH . 'functions/html.php');
26
27 displayHtmlHeader( _("Printer Friendly"),
28 "<script language=\"javascript\" type=\"text/javascript\">\n".
29 "<!--\n".
30 "function printPopup() {\n".
31 "parent.frames[1].focus();\n".
32 "parent.frames[1].print();\n".
33 "}\n".
34 "-->\n".
35 "</script>\n", FALSE );
36
37
38 echo "<body text='$color[8]' bgcolor='$color[3]' link='$color[7]' vlink='$color[7]' alink='$color[7]'>\n" .
39 html_tag( 'div',
40 '<b>'.
41 '<form>'.
42 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
43 '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
44 '</form>'.
45 '</b>',
46 'right' );
47 '</body></html>'. "\n";
48
49 ?>