f226cba7 |
1 | <?php |
2 | |
35586184 |
3 | /** |
4 | * printer_friendly_top.php |
5 | * |
15e6162e |
6 | * Copyright (c) 1999-2002 The SquirrelMail Project Team |
35586184 |
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 | */ |
f226cba7 |
14 | |
35586184 |
15 | require_once('../src/validate.php'); |
16 | require_once('../functions/strings.php'); |
17 | require_once('../config/config.php'); |
18 | require_once('../src/load_prefs.php'); |
19 | require_once('../functions/page_header.php'); |
f226cba7 |
20 | |
3bbf5974 |
21 | displayHtmlHeader( _("Printer Friendly"), |
22 | "<script language=\"javascript\">\n". |
23 | "<!--\n". |
24 | "function printPopup() {\n". |
25 | "parent.frames[1].focus();\n". |
26 | "parent.frames[1].print();\n". |
27 | "}\n". |
28 | "-->\n". |
29 | "</script>\n", FALSE ); |
f226cba7 |
30 | |
f226cba7 |
31 | |
3bbf5974 |
32 | echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" . |
33 | //'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center">'. |
34 | '<center><b>'. |
35 | '<form>'. |
36 | '<input type="button" value="' . _("Print") . '" onClick="printPopup()"> '. |
37 | '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">'. |
38 | '</form>'. |
39 | '</b>'. |
40 | //'</td></tr></table>'. |
41 | '</body>'. |
42 | "</html>\n"; |
f226cba7 |
43 | |
3bbf5974 |
44 | ?> |