minor correction
[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 &copy; 1999-2006 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 * Include the SquirrelMail initialization file.
17 */
18 include('../include/init.php');
19
20
21 displayHtmlHeader( _("Printer Friendly"),
22 "<script type=\"text/javascript\">\n".
23 "<!--\n".
24 "function printPopup() {\n".
25 "parent.frames[1].focus();\n".
26 "parent.frames[1].print();\n".
27 "}\n".
28 "-->\n".
29 "</script>\n", FALSE );
30
31
32 echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n" .
33 html_tag( 'div',
34 '<form>'.
35 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
36 '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
37 '</form>',
38 'right' );
39
40 $oTemplate->display('footer.tpl');
41 ?>