[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/modules/mod_search/tmpl/ -> default.php (source)

   1  <?php // no direct access
   2  defined('_JEXEC') or die('Restricted access'); ?>
   3  <form action="index.php" method="post">
   4      <div class="search<?php echo $params->get('moduleclass_sfx') ?>">
   5          <?php
   6              $output = '<input name="searchword" id="mod_search_searchword" maxlength="'.$maxlength.'" alt="'.$button_text.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'"  onblur="if(this.value==\'\') this.value=\''.$text.'\';" onfocus="if(this.value==\''.$text.'\') this.value=\'\';" />';
   7  
   8              if ($button) :
   9                  if ($imagebutton) :
  10                      $button = '<input type="image" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" src="'.$img.'" onclick="this.form.searchword.focus();"/>';
  11                  else :
  12                      $button = '<input type="submit" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" onclick="this.form.searchword.focus();"/>';
  13                  endif;
  14              endif;
  15  
  16              switch ($button_pos) :
  17                  case 'top' :
  18                      $button = $button.'<br />';
  19                      $output = $button.$output;
  20                      break;
  21  
  22                  case 'bottom' :
  23                      $button = '<br />'.$button;
  24                      $output = $output.$button;
  25                      break;
  26  
  27                  case 'right' :
  28                      $output = $output.$button;
  29                      break;
  30  
  31                  case 'left' :
  32                  default :
  33                      $output = $button.$output;
  34                      break;
  35              endswitch;
  36  
  37              echo $output;
  38          ?>
  39      </div>
  40      <input type="hidden" name="task"   value="search" />
  41      <input type="hidden" name="option" value="com_search" />
  42      <input type="hidden" name="Itemid" value="<?php echo $mitemid; ?>" />
  43  </form>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1