f226cba7 |
1 | <?php |
2 | |
3 | /** |
4 | ** printer_friendly_top.php |
5 | ** |
6 | ** Copyright (c) 1999-2000 The SquirrelMail development 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 | **/ |
14 | |
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 | |
20 | ?> |
21 | <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"> |
22 | <html> |
23 | <head> |
24 | <script language="javascript"> |
25 | <!-- |
26 | function printPopup() { |
27 | parent.frames[1].focus(); |
28 | parent.frames[1].print(); |
29 | } |
30 | --> |
31 | </script> |
32 | </head> |
33 | <?php |
34 | |
35 | if ($theme_css != "") |
36 | { |
37 | printf ('<LINK REL="stylesheet" TYPE="text/css" HREF="%s">', $theme_css); |
38 | echo "\n"; |
39 | } |
40 | |
41 | |
42 | printf('<body text="%s" bgcolor="%s" link="%s" vlink="%s" alink="%s">', |
43 | $color[8], $color[3], $color[7], $color[7], $color[7]); |
44 | ?> |
45 | <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center"> |
46 | <b> |
47 | <form> |
48 | <input type="button" value="Print" onClick="printPopup()"> |
49 | <input type="button" value="Close Window" onClick="window.parent.close()"> |
50 | </form> |
51 | </b> |
52 | </td></tr></table> |
53 | </body> |
54 | </html> |