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