Bulgarian Charset
[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 15/*****************************************************************/
16/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/
17/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/
18/*** + Base level indent should begin at left margin, as ***/
19/*** the require_once below looks. ***/
20/*** + All identation should consist of four space blocks ***/
21/*** + Tab characters are evil. ***/
22/*** + all comments should use "slash-star ... star-slash" ***/
23/*** style -- no pound characters, no slash-slash style ***/
24/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/
25/*** ALWAYS USE { AND } CHARACTERS!!! ***/
26/*** + Please use ' instead of ", when possible. Note " ***/
27/*** should always be used in _( ) function calls. ***/
28/*** Thank you for your help making the SM code more readable. ***/
29/*****************************************************************/
30
31require_once('../src/validate.php');
32require_once('../functions/strings.php');
33require_once('../config/config.php');
34require_once('../src/load_prefs.php');
35require_once('../functions/page_header.php');
f226cba7 36
692155b7 37 displayHtmlHeader( _("Printer Friendly"),
38 "<script language=\"javascript\">\n".
39 "<!--\n".
40 "function printPopup() {\n".
41 "parent.frames[1].focus();\n".
42 "parent.frames[1].print();\n".
43 "}\n".
44 "-->\n".
45 "</script>\n", FALSE );
f226cba7 46
f226cba7 47
692155b7 48 echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
49 //'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle" align="center">'.
50 '<center><b>'.
51 '<form>'.
52 '<input type="button" value="' . _("Print") . '" onClick="printPopup()"> '.
53 '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">'.
54 '</form>'.
55 '</b>'.
56 //'</td></tr></table>'.
57 '</body>'.
58 "</html>\n";
f226cba7 59
35586184 60?>