PluginProbe
User Access Manager / trunk
User Access Manager vtrunk
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
user-access-manager / src / View / AdminForm / Select.php

Select.php in User Access Manager trunk, at src/View/AdminForm/Select.php

38 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @var Select $select
4 */
5
6 use UserAccessManager\Form\Element\Select;
7
8 ?>
9 <th scope="row">
10 <label for="uam_<?php echo $select->getId(); ?>">
11 <?php echo $select->getLabel(); ?>
12 </label>
13 </th>
14 <td>
15 <select id="uam_<?php echo $select->getId(); ?>"
16 name="config_parameters[<?php echo $select->getId(); ?>]">
17 <?php
18 $possibleValues = $select->getPossibleValues();
19
20 foreach ($possibleValues as $possibleValue) {
21 ?>
22 <option value="<?php echo $possibleValue->getValue(); ?>" <?php
23 if ($select->getValue() === $possibleValue->getValue()) {
24 echo 'selected="selected"';
25 }
26 if ($possibleValue->isDisabled() === true) {
27 echo 'disabled="disabled"';
28 }
29 ?> >
30 <?php echo $possibleValue->getLabel(); ?>
31 </option>
32 <?php
33 }
34 ?>
35 </select>
36 <br/>
37 <p class="description"><?php echo $select->getDescription(); ?></p>
38 </td>