newmail.php 1.7 KB

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