Some code cleanups to read_body.php
[squirrelmail.git] / plugins / newmail / newmail.php
1 <?php
2
3 /**
4 ** newmail.php
5 **
6 ** Copyright (c) 1999-2002 The SquirrelMail Project Team
7 ** Licensed under the GNU GPL. For full terms see the file COPYING.
8 **
9 ** Displays all options relating to new mail sounds
10 **
11 ** $Id$
12 **
13 **/
14 chdir('..');
15 define('SM_PATH','../');
16
17 /* SquirrelMail required files. */
18 require_once(SM_PATH . 'include/validate.php');
19 require_once(SM_PATH . 'include/load_prefs.php');
20 require_once(SM_PATH . 'functions/page_header.php');
21
22 displayHtmlHeader( _("New Mail"), '', FALSE );
23
24 echo "<body bgcolor=\"$color[4]\" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n".
25 '<center>'. "\n" .
26 html_tag( 'table', "\n" .
27 html_tag( 'tr', "\n" .
28 html_tag( 'td', '<b>' . _("SquirrelMail Notice:") . '</b>', 'center', $color[0] )
29 ) .
30 html_tag( 'tr', "\n" .
31 html_tag( 'td',
32 '<br><big><font color="' . $color[2] . '">' .
33 _("You have new mail!") . '</font><br></big><br>' . "\n" .
34 '<form name="nm">' . "\n".
35 '<input type=button name=bt value="' . _("Close Window") .'" onClick="javascript:window.close();">'."\n".
36 '</form>',
37 'center' )
38 ) ,
39 '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
40 '</center>' .
41 "<script language=javascript>\n".
42 "<!--\n".
43 "document.nm.bt.focus();\n".
44 "-->\n".
45 "</script>\n".
46 "</body></html>\n";
47
48 ?>