<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<?php
$options = $this->controller->getOptions();
if ($akSelectAllowMultipleValues) { ?>

	<?php foreach($options as $opt) { ?>
		<label class="checkbox"><input type="checkbox" name="<?php echo $this->field('atSelectOptionID')?>[]" value="<?php echo $opt->getSelectAttributeOptionID()?>" <?php if (in_array($opt->getSelectAttributeOptionID(), $selectedOptions)) { ?> checked <?php } ?> /><?php echo $opt->getSelectAttributeOptionDisplayValue()?></label>
	<?php } ?>

<?php } else { ?>
	<select name="<?php echo $this->field('atSelectOptionID')?>[]">
		<option value=""><?php echo t('** All')?></option>
	<?php foreach($options as $opt) { ?>
		<option value="<?php echo $opt->getSelectAttributeOptionID()?>" <?php if (in_array($opt->getSelectAttributeOptionID(), $selectedOptions)) { ?> selected <?php } ?>><?php echo $opt->getSelectAttributeOptionDisplayValue()?></option>	
	<?php } ?>
	</select>

<?php }