HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/administrator/components/com_jevents/fields/jeveventlock.php
<?php

use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormField;

defined('JPATH_BASE') or die;

jimport('joomla.html.html');
jimport('joomla.form.formfield');

class FormFieldJeveventlock extends FormField
{

	/**
	 * The form field type.
	 *
	 * @var        string
	 * @since    1.6
	 */
	protected $type = 'Jeveventlock';

	protected function getLabel()
	{

		$offerlock = $this->form->jevdata[$this->name]["offerlock"];
		if ($this->getInput() && $offerlock)
		{
			return parent::getLabel();
		}

		return "";

	}

	/**
	 * Method to get the field input markup.
	 *
	 * @return    string    The field input markup.
	 * @since    1.6
	 */
	protected function getInput()
	{

		ob_start();
		$offerlock = $this->form->jevdata[$this->name]["offerlock"];

		$btngroup = "btn-group";
		$btn      = "btn";
		if ($offerlock)
		{
			?>
			<div class="radio <?php echo $btngroup; ?>">
				<label class="radio  <?php echo $btn; ?>" for="lockevent1">
					<?php echo Text::_("JEV_YES"); ?>
					<input type="radio" name="lockevent" id="lockevent1"
					       value="1" <?php echo($this->value ? "checked='checked'" : "") ?> />
				</label>
				<label class="radio   <?php echo $btn; ?>" for="lockevent0">
					<?php echo Text::_("JEV_NO"); ?>
					<input type="radio" name="lockevent" id="lockevent0"
					       value="0" <?php echo(!$this->value ? "checked='checked'" : ""); ?> />
				</label>
			</div>
			<?php
		}
		$input = ob_get_clean();

		return $input;

	}

}
class_alias("FormFieldJeveventlock", "JFormFieldJeveventlock");