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