[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

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

   1  <?php
   2  
   3  $block_name = _("Google Search");
   4  
   5  /**
   6   * $Horde: horde/lib/Block/google.php,v 1.10.10.1 2005/10/18 11:33:39 jan Exp $
   7   *
   8   * @package Horde_Block
   9   */
  10  class Horde_Block_Horde_google extends Horde_Block {
  11  
  12      var $_app = 'horde';
  13  
  14      /**
  15       * The title to go in this block.
  16       *
  17       * @return string   The title text.
  18       */
  19      function _title()
  20      {
  21          return _("Google Search");
  22      }
  23  
  24      /**
  25       * The content to go in this block.
  26       *
  27       * @return string   The content
  28       */
  29      function _content()
  30      {
  31          $html  = '<form name="google" onsubmit="open_google_win(); return false;">';
  32          $html .= '<table width="100%" height="100%">';
  33          $html .= '<tr><script type="text/javascript" src="' . $GLOBALS['registry']->get('webroot', 'horde') . '/services/javascript.php?file=open_google_win.js&amp;app=horde"></script>';
  34          $html .= '<td>' . Horde::img('google.png', 'Google') . '</td></tr>';
  35          $html .= '<tr><td><input maxLength="256" size="40" name="q" width="100%" /></td></tr>';
  36          $html .= '<tr><td><table width="100%"><tr><td align="center"><input type="radio" name="area" value="web" width="20%" checked="checked" />' . _("Web") . '</td>';
  37          $html .= '<td align="center"><input type="radio" name="area" value="images" width="20%" />' . _("Images") . '</td>';
  38          $html .= '<td align="center"><input type="radio" name="area" value="groups" width="20%" />' . _("Groups") . '</td>';
  39          $html .= '<td align="center"><input type="radio" name="area" value="directory" width="20%" />' . _("Directory") . '</td>';
  40          $html .= '<td align="center"><input type="radio" name="area" value="news" width="20%" />' . _("News") . '</td></tr></table></td></tr>';
  41          $html .= '<tr><td><input type="submit" class="button" value="' . _("Google Search") . '" /></td></tr>';
  42          $html .= '</table>';
  43          $html .= '</form>';
  44          return $html;
  45      }
  46  
  47  }


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