primo commit
This commit is contained in:
45
administrator/components/com_jem/models/fields/starttime.php
Normal file
45
administrator/components/com_jem/models/fields/starttime.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package JEM
|
||||
* @copyright (C) 2013-2024 joomlaeventmanager.net
|
||||
* @copyright (C) 2005-2009 Christoph Lukes
|
||||
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
|
||||
*/
|
||||
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
use Joomla\CMS\Form\FormField;
|
||||
|
||||
//JFormHelper::loadFieldClass('list');
|
||||
|
||||
jimport('joomla.html.html');
|
||||
|
||||
|
||||
/**
|
||||
* CountryOptions Field class.
|
||||
*
|
||||
*
|
||||
*/
|
||||
class JFormFieldStarttime extends FormField
|
||||
{
|
||||
/**
|
||||
* The form field type.
|
||||
*
|
||||
*/
|
||||
protected $type = 'Starttime';
|
||||
|
||||
|
||||
public function getInput()
|
||||
{
|
||||
|
||||
|
||||
$starthours = JEMHelper::buildtimeselect(23, 'starthours', substr( $this->value, 0, 2 ),array('class'=>'form-select','class'=>'select-time'));
|
||||
$startminutes = JEMHelper::buildtimeselect(59, 'startminutes', substr($this->value, 3, 2 ),array('class'=>'form-select','class'=>'select-time'));
|
||||
|
||||
$var2 = $starthours.$startminutes;
|
||||
|
||||
return $var2;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user