| Current Path : /var/www/iplanru/data/www/www.i-plan.ru/administrator/components/com_zoo/helpers/fields/ | 
| Current File : /var/www/iplanru/data/www/www.i-plan.ru/administrator/components/com_zoo/helpers/fields/zoolist.php | 
<?php
/**
* @package   com_zoo
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
$name = $control_name.'['.$name.']';
$class = ($node->attributes('class') ? $node->attributes('class') : 'inputbox');
printf('<select %s>', $this->app->field->attributes(compact('name', 'class')));
foreach ($node->children() as $option) {
	// set attributes
	$attributes = array('value' => (string) $option);
	// is checked ?
	if ((string) $option == $value) {
		$attributes['selected'] = 'selected';
	}
	printf('<option %s>%s</option>', $this->app->field->attributes($attributes), JText::_((string) $option->attributes()->name));
}
printf('</select>');