<?php
/**
* @package HikaShop for Joomla!
* @version 1.4.3
* @author hikashop.com
* @copyright (C) 2010 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
class hikashopCharacteristicdisplayType{
function load(){
$this->values = array();
$this->values[] = JHTML::_('select.option', 'dropdown',JText::_('DROPDOWN'));
$this->values[] = JHTML::_('select.option', 'radio',JText::_('FIELD_RADIO'));
$this->values[] = JHTML::_('select.option', 'table',JText::_('TABLE'));//table only works for 2 characteristics, it will default to dropdown if less or more
}
function display($map,$value){
$this->load();
return JHTML::_('select.genericlist', $this->values, $map, 'class="inputbox" size="1"', 'value', 'text', $value );
}
}