Slight adjustment. Plugins create their own table row for login_form hook; core...
[squirrelmail.git] / src / printer_friendly_top.php
CommitLineData
f226cba7 1<?php
44966ae5 2
35586184 3/**
b5cd24a8 4 * printer_friendly top frame
35586184 5 *
6 * top frame of printer_friendly_main.php
7 * displays some javascript buttons for printing & closing
8 *
47ccfad4 9 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
b5cd24a8 10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
30967a1e 11 * @version $Id$
8f6f9ba5 12 * @package squirrelmail
35586184 13 */
f226cba7 14
30967a1e 15/**
202bcbcc 16 * Include the SquirrelMail initialization file.
30967a1e 17 */
202bcbcc 18include('../include/init.php');
86725763 19
f226cba7 20
3bbf5974 21displayHtmlHeader( _("Printer Friendly"),
2c92ea9d 22 "<script type=\"text/javascript\">\n".
3bbf5974 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 );
f226cba7 30
f226cba7 31
d6bc7d16 32echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n" .
1c663478 33 html_tag( 'div',
1c663478 34 '<form>'.
d68323ff 35 '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
36 '<input type="button" value="' . _("Close") . '" onclick="window.parent.close()" />'.
a74103dd 37 '</form>',
6206f6c4 38 'right' );
a2b193bc 39
5c4ff7bf 40$oTemplate->display('footer.tpl');
41?>