Location: PHPKode > projects > AcyMailing > back/types/status.php
<?php
/**
 * @copyright	Copyright (C) 2009-2011 ACYBA SARL - All rights reserved.
 * @license		http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */
defined('_JEXEC') or die('Restricted access');
?>
<?php
class statusType{
	function statusType(){
		$this->values = array();
		$this->values[] = JHTML::_('select.option', '-1', JText::_('UNSUBSCRIBED') );
		$this->values[] = JHTML::_('select.option', '0', JText::_('NO_SUBSCRIPTION') );
		$this->values[] = JHTML::_('select.option', '2', JText::_('PENDING_SUBSCRIPTION') );
		$this->values[] = JHTML::_('select.option', '1', JText::_('SUBSCRIBED') );
	}
	function display($map,$value){
		static $i = 0;
		return JHTML::_('select.radiolist', $this->values, $map , 'class="inputbox" size="1"', 'value', 'text', (int) $value,'status'.$i++);
	}
}
Return current item: AcyMailing