A terrible pile of things done to the code. Did a little bit of SM_PATH
[squirrelmail.git] / src / printer_friendly_top.php
CommitLineData
f226cba7 1<?php
2
35586184 3/**
4 * printer_friendly_top.php
5 *
15e6162e 6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
35586184 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 */
f226cba7 14
86725763 15/* Path for SquirrelMail required files. */
16define('SM_PATH','../');
17
18/* SquirrelMail required files. */
08185f2a 19require_once(SM_PATH . 'include/validate.php');
86725763 20require_once(SM_PATH . 'functions/strings.php');
21require_once(SM_PATH . 'config/config.php');
08185f2a 22require_once(SM_PATH . 'include/load_prefs.php');
86725763 23require_once(SM_PATH . 'functions/page_header.php');
24require_once(SM_PATH . 'functions/html.php');
f226cba7 25
3bbf5974 26displayHtmlHeader( _("Printer Friendly"),
9d9430d6 27 "<script language=\"javascript\" type=\"text/javascript\">\n".
3bbf5974 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 );
f226cba7 35
f226cba7 36
6206f6c4 37echo "<body text='$color[8]' bgcolor='$color[3]' link='$color[7]' vlink='$color[7]' alink='$color[7]'>\n" .
3bbf5974 38 //'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center">'.
1c663478 39 html_tag( 'div',
40 '<b>'.
41 '<form>'.
42 '<input type="button" value="' . _("Print") . '" onClick="printPopup()"> '.
6206f6c4 43 '<input type="button" value="' . _("Close") . '" onClick="window.parent.close()">'.
1c663478 44 '</form>'.
45 '</b>',
6206f6c4 46 'right' );
3bbf5974 47 //'</td></tr></table>'.
1c663478 48 '</body></html>'. "\n";
f226cba7 49
9d9430d6 50?>