Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_community/libraries/elements/cmultilist.php
Ðазад
<?php /** * @copyright (C) 2013 iJoomla, Inc. - All rights reserved. * @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @author iJoomla.com <webmaster@ijoomla.com> * @url https://www.jomsocial.com/license-agreement * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0 * More info at https://www.jomsocial.com/license-agreement */ use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; // Check to ensure this file is within the rest of the framework defined('JPATH_BASE') or die(); /** * Renders a multiple item select element * */ class CMultiList { /** * Element name * * @access protected * @var string */ var $_name = 'MultipleList'; public function fetchElement($name, $value, &$node, $control_name) { // Base name of the HTML control. $ctrl = $control_name .'['. $name .']'; // Construct an array of the HTML OPTION statements. $options = array (); foreach ($node->children() as $option) { $val = $option->attributes('value'); $text = $option->data(); $options[] = HTMLHelper::_('select.option', $val, Text::_($text)); } if ($node->attributes( 'query' )) { $db = Factory::getDBO(); $db->setQuery($node->attributes('query')); $options = $db->loadObjectList(); $key = ($node->attributes('key_field') ? $node->attributes('key_field') : 'value'); $val = ($node->attributes('value_field') ? $node->attributes('value_field') : $name); } else { $key = 'value'; $val = 'text'; } // Construct the various argument calls that are supported. $attribs = ' '; if ($v = $node->attributes( 'size' )) { $attribs .= 'size="'.$v.'"'; } if ($v = $node->attributes( 'class' )) { $attribs .= 'class="'.$v.'"'; } else { $attribs .= 'class="inputbox"'; } if ($m = $node->attributes( 'multiple' )) { $attribs .= ' multiple="multiple"'; $ctrl .= '[]'; } if(is_string($value)) { $selected = explode('|', $value); } else { $selected = $value; } // Render the HTML SELECT list. return HTMLHelper::_('select.genericlist', $options, $ctrl, $attribs, $key, $val, $selected, $control_name.$name ); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка