Source for file newmail.php

Documentation is available at newmail.php

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

Documentation generated on Sat, 07 Oct 2006 16:12:39 +0300 by phpDocumentor 1.3.0RC6