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 | * |
47ccfad4 |
9 | * @copyright © 1999-2006 The SquirrelMail Project Team |
b5cd24a8 |
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 |
19 | define('SM_PATH','../'); |
20 | |
21 | /* SquirrelMail required files. */ |
5c4ff7bf |
22 | include_once(SM_PATH . 'include/validate.php'); |
f226cba7 |
23 | |
3bbf5974 |
24 | displayHtmlHeader( _("Printer Friendly"), |
2c92ea9d |
25 | "<script 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 |
35 | echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n" . |
1c663478 |
36 | html_tag( 'div', |
1c663478 |
37 | '<form>'. |
d68323ff |
38 | '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '. |
39 | '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'. |
a74103dd |
40 | '</form>', |
6206f6c4 |
41 | 'right' ); |
a2b193bc |
42 | |
5c4ff7bf |
43 | $oTemplate->display('footer.tpl'); |
44 | ?> |