芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.2/components/com_banners/src/Field/ImptotalField.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Banners\Administrator\Field; \defined('_JEXEC') or die; use Joomla\CMS\Form\FormField; use Joomla\CMS\Language\Text; /** * Total Impressions field. * * @since 1.6 */ class ImptotalField extends FormField { /** * The form field type. * * @var string * @since 1.6 */ protected $type = 'ImpTotal'; /** * Method to get the field input markup. * * @return string The field input markup. * * @since 1.6 */ protected function getInput() { $class = ' class="form-control validate-numeric text_area"'; $onchange = ' onchange="document.getElementById(\'' . $this->id . '_unlimited\').checked=document.getElementById(\'' . $this->id . '\').value==\'\';"'; $onclick = ' onclick="if (document.getElementById(\'' . $this->id . '_unlimited\').checked) document.getElementById(\'' . $this->id . '\').value=\'\';"'; $value = empty($this->value) ? '' : $this->value; $checked = empty($this->value) ? ' checked="checked"' : ''; return '
' . '
' . '
' . Text::_('COM_BANNERS_UNLIMITED') . '
'; } }