| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
// Get parameter definition. |
| 7 |
$definition = $this->getDefinition(); |
| 8 |
|
| 9 |
// All values to be displayed in the list. |
| 10 |
$values = $definition->getValues(); |
| 11 |
$elementId = $this->getElementId(); |
| 12 |
?> |
| 13 |
<label for="<?php echo $elementId ?>" title="<?php echo $definition->getDescription() ?>"><?php echo $definition->getName() ?></label> |
| 14 |
<select id="<?php echo $elementId ?>" name="<?php echo $this->getName() ?>" size="2"> |
| 15 |
<?php |
| 16 |
foreach ($values as $value) : |
| 17 |
$selected = ($this->getValue() == $value->getValue()) ? ' selected="selected"' : ''; |
| 18 |
?> |
| 19 |
<option value="<?php echo $value->getValue() ?>"<?php echo $selected ?>><?php echo $value->getText() ?></option> |
| 20 |
<?php endforeach; ?> |
| 21 |
</select> |
| 22 |
<?php echo $this->getTemplate('helpText') ?> |