b67b705ae289b5a17d61c3820f3cb535f2af455f
[squirrelmail.git] / src / printer_friendly_top.php
1 <?php
2
3 /**
4 * printer_friendly top frame
5 *
6 * top frame of printer_friendly_main.php
7 * displays some javascript buttons for printing & closing
8 *
9 * @copyright &copy; 1999-2005 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @version $Id$
12 * @package squirrelmail
13 */
14
15 /**
16 * Path for SquirrelMail required files.
17 * @ignore
18 */
19 define('SM_PATH','../');
20
21 /* SquirrelMail required files. */
22 require_once(SM_PATH . 'include/validate.php');
23
24 displayHtmlHeader( _("Printer Friendly"),
25 "<script language=\"javascript\" type=\"text/javascript\">\n".
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 );
33
34
35 echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n" .
36 html_tag( 'div',
37 '<form>'.
38 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
39 '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
40 '</form>',
41 'right' );
42
43 ?>
44 </body></html>