| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @author Mambo Foundation Inc see README.php 5 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 6 * See COPYRIGHT.php for copyright notices and details. 7 * @license GNU/GPL Version 2, see LICENSE.php 8 * 9 * Redistributions of files must retain the above copyright notice. 10 * 11 * Mambo is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation; version 2 of the License. 14 */ 15 16 /** ensure this file is being included by a parent file */ 17 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 18 19 $button = $params->get( 'button', '' ); 20 $button_pos = $params->get( 'button_pos', 'left' ); 21 $button_text = $params->get( 'button_text', T_('Search') ); 22 $width = intval( $params->get( 'width', 20 ) ); 23 $text = $params->get( 'text', T_('search...') ); 24 $moduleclass_sfx = $params->get( 'moduleclass_sfx' ); 25 26 $output = '<input alt="'.T_('search').'" class="inputbox'. $moduleclass_sfx .'" type="text" name="searchword" maxlength="50" size="'. $width .'" value="'. $text .'" onblur="if(this.value==\'\') this.value=\''. $text .'\';" onfocus="if(this.value==\''. $text .'\') this.value=\'\';" />'; 27 28 if ( $button ) { 29 $button = '<input type="submit" value="'. $button_text .'" class="button'. $moduleclass_sfx .'"/>'; 30 } 31 32 switch ( $button_pos ) { 33 case 'top': 34 $button = $button .'<br />'; 35 $output = $button . $output; 36 break; 37 38 case 'bottom': 39 $button = '<br />'. $button; 40 $output = $output . $button; 41 break; 42 43 case 'right': 44 $output = $output . $button; 45 break; 46 47 case 'left': 48 default: 49 $output = $button . $output; 50 break; 51 } 52 ?> 53 54 <form action="<?php echo sefRelToAbs('index.php'); ?>" method="post"> 55 56 <div align="left" class="search<?php echo $moduleclass_sfx; ?>"> 57 <?php echo $output; ?> 58 <input type="hidden" name="option" value="search" /> 59 </div> 60 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |