[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/core/include/smarty_plugins/ -> modifier.print_percent.php (source)

   1  <?php
   2  /**
   3   * Smarty plugin
   4   * @package Smarty
   5   * @subpackage plugins
   6   */
   7  
   8  function smarty_modifier_print_percent($string)
   9  {
  10      if(substr($string, 0, 1) === '-')
  11      {
  12          $span = "negatif";
  13      }
  14      else
  15      {
  16          $span = "positif";
  17      }
  18      return "<span class=\"$span\">$string</span>";
  19  }
  20  
  21  ?>


Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics