| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/moke/administrator/components/com_myrssreader/elements/ |
Upload File : |
<?php
/**
* @package My RSS Reader
* @copyright Copyright (C) 2010 FalsinSoft. All rights reserved.
* @license GNU/GPL
* @website http://falsinsoft.blogspot.com
* @email falsinsoft@gmail.com
*
*/
defined('_JEXEC') or die( 'Restricted access' );
class JFormFieldCategory extends JFormField
{
public $type = 'Category';
protected function getInput()
{
$db = &JFactory::getDBO();
$db->setQuery('SELECT id, title FROM #__myrssreader_category ORDER BY title');
$category_list = $db->loadObjectList();
$options = array();
$options[] = JHTML::_('select.option', '0', JText::_('COM_MYRSSREADER_UNCATEGORISED'));
foreach($category_list as $category)
{
$options[] = JHTML::_('select.option', $category->id, $category->title);
}
return JHTML::_('select.genericlist', $options, $this->name, 'class="inputbox"', 'value', 'text', $this->value);
}
}
?>