4508b1b6 |
1 | <?php |
4b4abf93 |
2 | |
8d6a115b |
3 | /** |
ebe02dfc |
4 | * newmail.php - popup page |
8d6a115b |
5 | * |
8d6a115b |
6 | * Displays all options relating to new mail sounds |
7 | * |
47ccfad4 |
8 | * @copyright © 1999-2006 The SquirrelMail Project Team |
4b4abf93 |
9 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
ebe02dfc |
10 | * @version $Id$ |
ea5f4b8e |
11 | * @package plugins |
12 | * @subpackage newmail |
8d6a115b |
13 | */ |
d0dbdb14 |
14 | |
202bcbcc |
15 | /** |
16 | * Path for SquirrelMail required files. |
17 | * @ignore |
18 | */ |
19 | require('../../include/init.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". |
f265009a |
27 | '<div style="text-align: center;">'. "\n" . |
4cf43843 |
28 | html_tag( 'table', "\n" . |
29 | html_tag( 'tr', "\n" . |
47f7f1e7 |
30 | // i18n: %s inserts the organisation name (typically SquirrelMail) |
31 | html_tag( 'td', '<b>' . sprintf(_("%s notice:"), $org_name) . '</b>', 'center', $color[0] ) |
4cf43843 |
32 | ) . |
33 | html_tag( 'tr', "\n" . |
34 | html_tag( 'td', |
c5a2a440 |
35 | '<br /><big><font color="' . $color[2] . '">'. |
36 | sprintf(ngettext("You have %s new message","You have %s new messages",$numnew), $numnew ) . |
37 | '</font><br /></big><br />' . "\n" . |
38 | '<form name="nm">' . "\n". |
39 | '<input type="button" name="bt" value="' . _("Close Window") . |
c435f076 |
40 | '" onclick="javascript:window.close();" />'."\n". |
c5a2a440 |
41 | '</form>', |
42 | 'center' ) |
43 | ) , |
44 | '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) . |
f265009a |
45 | '</div>' . |
2c92ea9d |
46 | "<script type=\"text/javascript\">\n". |
c5a2a440 |
47 | "<!--\n". |
48 | "document.nm.bt.focus();\n". |
49 | "-->\n". |
50 | "</script>\n". |
51 | "</body></html>\n"; |
6fd95361 |
52 | ?> |