| Current Path : /home/echanges/www/administrator/components/com_spidercalendar/elements/ |
| Current File : /home/echanges/www/administrator/components/com_spidercalendar/elements/theme.php |
<?php
/**
* @package Spider Calendar lite
* @author Web-Dorado
* @copyright (C) 2011 Web-Dorado. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die( 'Restricted access' );
jimport('joomla.html.parameter.element');
class JFormFieldTheme extends JFormField
{
/**
* Element name
*
* @access protected
* @var string
*/
var $type = 'Theme';
function getInput()
{
$db =JFactory::getDBO();
$query = 'SELECT id, title FROM #__spidercalendar_theme';
$db->setQuery( $query );
$options = $db->loadObjectList();
$name = $this->name;
$value = $this->value;
$node = $this->element;
$control_name = $this->options['title'];
$id= $this->id;
array_unshift($options, JHTML::_('select.option', '-1', ''.JText::_('Select Theme').'', 'id', 'title', $disable=true ));
return JHTML::_('select.genericlist', $options, $this->name, $control_name, 'id', 'title', $this->value );
}
}
?>