Location: PHPKode > projects > Anahita Social Engine > admin/elements/checkbox.php
<?php
/**
 * @version		1.0.0
 * @category	Anahita Social Engine™
 * @copyright	Copyright (C) 2008 - 2010 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     	http://www.anahitapolis.com
 */

class JElementCheckbox extends JElement
{
	function fetchElement($name, $value, &$node, $control_name)
	{
		$fields = array('ACTIVITY-PARTNERS','DATING','FRIENDS','NETWORKING','RANDOM','RELATIONSHIP');

		$input  = '';

		foreach($fields as $field) {
			$input .= AnUikitHtmlTag::checkbox('lookingFor[]', $field, in_array($field, $value)).' '.JText::_('AN-SE-PERSON-SELECT-LOOKINGFOR-'.$field);
		}
		
		return $input;
	}
	
}
Return current item: Anahita Social Engine