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