[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Block/ -> color.php (source)

   1  <?php
   2  
   3  // This block is an example and probably not useful to users.
   4  // $block_name = _("Color");
   5  
   6  /**
   7   * $Horde: horde/lib/Block/color.php,v 1.12 2004/06/01 10:05:31 jan Exp $
   8   *
   9   * @package Horde_Block
  10   */
  11  class Horde_Block_Horde_color extends Horde_Block {
  12  
  13      var $_app = 'horde';
  14  
  15      function _params()
  16      {
  17          return array('type' => 'text',
  18                       'name' => _("Color"),
  19                       'default' => '#ff0000');
  20      }
  21  
  22      /**
  23       * The title to go in this block.
  24       *
  25       * @return string   The title text.
  26       */
  27      function _title()
  28      {
  29          return _("Color");
  30      }
  31  
  32      /**
  33       * The content to go in this block.
  34       *
  35       * @return string   The content
  36       */
  37      function _content()
  38      {
  39          $html  = '<table width="100" height="100" bgcolor="%s">';
  40          $html .= '<tr><td>&nbsp;</td></tr>';
  41          $html .= '</table>';
  42  
  43          return sprintf($html, $this->_params['color']);
  44      }
  45  
  46  }


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7