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