adding option that allows html transitional or frameset doctype
[squirrelmail.git] / src / printer_friendly_top.php
CommitLineData
f226cba7 1<?php
2
35586184 3/**
4 * printer_friendly_top.php
5 *
82d304a0 6 * Copyright (c) 1999-2004 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 *
30967a1e 12 * @version $Id$
8f6f9ba5 13 * @package squirrelmail
35586184 14 */
f226cba7 15
30967a1e 16/**
17 * Path for SquirrelMail required files.
18 * @ignore
19 */
86725763 20define('SM_PATH','../');
21
22/* SquirrelMail required files. */
08185f2a 23require_once(SM_PATH . 'include/validate.php');
86725763 24require_once(SM_PATH . 'functions/strings.php');
25require_once(SM_PATH . 'config/config.php');
08185f2a 26require_once(SM_PATH . 'include/load_prefs.php');
86725763 27require_once(SM_PATH . 'functions/page_header.php');
28require_once(SM_PATH . 'functions/html.php');
f226cba7 29
3bbf5974 30displayHtmlHeader( _("Printer Friendly"),
9d9430d6 31 "<script language=\"javascript\" type=\"text/javascript\">\n".
3bbf5974 32 "<!--\n".
33 "function printPopup() {\n".
34 "parent.frames[1].focus();\n".
35 "parent.frames[1].print();\n".
36 "}\n".
37 "-->\n".
38 "</script>\n", FALSE );
f226cba7 39
f226cba7 40
d6bc7d16 41echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n" .
1c663478 42 html_tag( 'div',
43 '<b>'.
44 '<form>'.
d68323ff 45 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
46 '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
1c663478 47 '</form>'.
48 '</b>',
6206f6c4 49 'right' );
9d9430d6 50?>
d6bc7d16 51</body></html>