newmail.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * newmail.php - popup page
  4. *
  5. * Displays all options relating to new mail sounds
  6. *
  7. * @copyright &copy; 1999-2007 The SquirrelMail Project Team
  8. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  9. * @version $Id$
  10. * @package plugins
  11. * @subpackage newmail
  12. */
  13. /**
  14. * Path for SquirrelMail required files.
  15. * @ignore
  16. */
  17. require('../../include/init.php');
  18. sqGetGlobalVar('numnew', $numnew, SQ_GET);
  19. $numnew = (int)$numnew;
  20. displayHtmlHeader( _("New Mail"), '', FALSE );
  21. echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n".
  22. '<div style="text-align: center;">'. "\n" .
  23. html_tag( 'table', "\n" .
  24. html_tag( 'tr', "\n" .
  25. // i18n: %s inserts the organisation name (typically SquirrelMail)
  26. html_tag( 'td', '<b>' . sprintf(_("%s notice:"), $org_name) . '</b>', 'center', $color[0] )
  27. ) .
  28. html_tag( 'tr', "\n" .
  29. html_tag( 'td',
  30. '<br /><big><font color="' . $color[2] . '">'.
  31. sprintf(ngettext("You have %s new message","You have %s new messages",$numnew), $numnew ) .
  32. '</font><br /></big><br />' . "\n" .
  33. '<form name="nm">' . "\n".
  34. '<input type="button" name="bt" value="' . _("Close Window") .
  35. '" onclick="javascript:window.close();" />'."\n".
  36. '</form>',
  37. 'center' )
  38. ) ,
  39. '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
  40. '</div>' .
  41. "<script type=\"text/javascript\">\n".
  42. "<!--\n".
  43. "document.nm.bt.focus();\n".
  44. "-->\n".
  45. "</script>\n".
  46. "</body></html>\n";
  47. ?>