0byt3m1n1-V2
Path:
/
home
/
academiac
/
www
/
administrator
/
components
/
com_installer
/
models
/
fields
/
[
Home
]
File: search.php
<?php /** * @package Joomla.Administrator * @subpackage com_installer * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License, see LICENSE.php */ // No direct access. defined('_JEXEC') or die; /** * Form Field Search class. * * @package Joomla.Administrator * @subpackage com_installer * @since 1.6 */ class JFormFieldSearch extends JFormField { /** * The field type. * * @var string */ protected $type = 'Search'; /** * Method to get the field input. * * @return string The field input. * @since 1.6 */ protected function getInput() { $html = ''; $html.= '<input type="text" name="' . $this->name . '" id="' . $this->id . '" value="' . htmlspecialchars($this->value) . '" title="' . JText::_('JSEARCH_FILTER') . '" onchange="this.form.submit();" />'; $html.= '<button type="submit" class="btn">' . JText::_('JSEARCH_FILTER_SUBMIT') . '</button>'; $html.= '<button type="button" class="btn" onclick="document.id(\'' . $this->id . '\').value=\'\';this.form.submit();">' . JText::_('JSEARCH_FILTER_CLEAR') . '</button>'; return $html; } }
©
2018.