public static function assetgrouplist($name, $selected, $attribs = null, $config = array())
	{
		static $count;

		$options = self::assetgroups();
		if (isset($config['title']))
		{
			array_unshift($options, Select::option('', $config['title']));
		}

		return Select::genericlist(
			$options,
			$name,
			array(
				'id' => isset($config['id']) ? $config['id'] : 'assetgroups_' . ++$count,
				'list.attr' => (is_null($attribs) ? 'class="inputbox" size="3"' : $attribs),
				'list.select' => (int) $selected
			)
		);
	}
public static function assetgrouplist($name, $selected, $attribs = null, $config = array())
	{
		static $count;

		$options = self::assetgroups();
		if (isset($config['title']))
		{
			array_unshift($options, Select::option('', $config['title']));
		}

		return Select::genericlist(
			$options,
			$name,
			array(
				'id' => isset($config['id']) ? $config['id'] : 'assetgroups_' . ++$count,
				'list.attr' => (is_null($attribs) ? 'class="inputbox" size="3"' : $attribs),
				'list.select' => (int) $selected
			)
		);
	}
public static function assetgrouplist ( $ name , $ selected , $ attribs = null , $ config = array ( ) ) { static $ count ; $ options = self :: assetgroups ( ) ; if ( isset ( $ config [ 'title' ] ) ) { array_unshift ( $ options , Select :: option ( '' , $ config [ 'title' ] ) ) ; } return Select :: genericlist ( $ options , $ name , array ( 'id' => isset ( $ config [ 'id' ] ) ? $ config [ 'id' ] : 'assetgroups_' . ++ $ count , 'list.attr' => ( is_null ( $ attribs ) ? 'class="inputbox" size="3"' : $ attribs ) , 'list.select' => ( int ) $ selected ) ) ; }
Displays a Select list of the available asset groups

@param   string  $name      The name of the select element
@param   mixed   $selected  The selected asset group id
@param   string  $attribs   Optional attributes for the select field
@param   array   $config    An array of options for the control
@return  mixed   An HTML string or null if an error occurs
Displays a Select list of the available asset groups