removing version info from login_error page.
[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 (c) 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 '<b>'.
38 '<form>'.
39 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
40 '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
41 '</form>'.
42 '</b>',
43 'right' );
44 ?>
45 </body></html>