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