r2l by Yoav
[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
35586184 15require_once('../src/validate.php');
16require_once('../functions/strings.php');
17require_once('../config/config.php');
18require_once('../src/load_prefs.php');
19require_once('../functions/page_header.php');
1c663478 20require_once('../functions/html.php');
f226cba7 21
3bbf5974 22displayHtmlHeader( _("Printer Friendly"),
9d9430d6 23 "<script language=\"javascript\" type=\"text/javascript\">\n".
3bbf5974 24 "<!--\n".
25 "function printPopup() {\n".
26 "parent.frames[1].focus();\n".
27 "parent.frames[1].print();\n".
28 "}\n".
29 "-->\n".
30 "</script>\n", FALSE );
f226cba7 31
f226cba7 32
3bbf5974 33echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
34 //'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center">'.
1c663478 35 html_tag( 'div',
36 '<b>'.
37 '<form>'.
38 '<input type="button" value="' . _("Print") . '" onClick="printPopup()"> '.
39 '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">'.
40 '</form>'.
41 '</b>',
42 'center' );
3bbf5974 43 //'</td></tr></table>'.
1c663478 44 '</body></html>'. "\n";
f226cba7 45
9d9430d6 46?>