| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * newmail.php |
| 5 | * |
| 6 | * Copyright (c) 1999-2004 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 | * @package plugins |
| 13 | * @subpackage newmail |
| 14 | */ |
| 15 | |
| 16 | /** @ignore */ |
| 17 | define('SM_PATH','../../'); |
| 18 | |
| 19 | /* SquirrelMail required files. */ |
| 20 | require_once(SM_PATH . 'include/validate.php'); |
| 21 | require_once(SM_PATH . 'include/load_prefs.php'); |
| 22 | require_once(SM_PATH . 'functions/page_header.php'); |
| 23 | |
| 24 | sqGetGlobalVar('numnew', $numnew, SQ_GET); |
| 25 | |
| 26 | displayHtmlHeader( _("New Mail"), '', FALSE ); |
| 27 | |
| 28 | echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n". |
| 29 | '<center>'. "\n" . |
| 30 | html_tag( 'table', "\n" . |
| 31 | html_tag( 'tr', "\n" . |
| 32 | html_tag( 'td', '<b>' . _("SquirrelMail Notice:") . '</b>', 'center', $color[0] ) |
| 33 | ) . |
| 34 | html_tag( 'tr', "\n" . |
| 35 | html_tag( 'td', |
| 36 | '<br /><big><font color="' . $color[2] . '">'. |
| 37 | sprintf( ( $numnew == 1 ? |
| 38 | _("You have %s new message") : |
| 39 | _("You have %s new messages") ), $numnew ) . |
| 40 | '</font><br /></big><br />' . "\n" . |
| 41 | '<form name="nm">' . "\n". |
| 42 | '<input type="button" name="bt" value="' . _("Close Window") . |
| 43 | '" onClick="javascript:window.close();" />'."\n". |
| 44 | '</form>', |
| 45 | 'center' ) |
| 46 | ) , |
| 47 | '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) . |
| 48 | '</center>' . |
| 49 | "<script language=javascript>\n". |
| 50 | "<!--\n". |
| 51 | "document.nm.bt.focus();\n". |
| 52 | "-->\n". |
| 53 | "</script>\n". |
| 54 | "</body></html>\n"; |
| 55 | |
| 56 | ?> |