Conditions | 3 |
Paths | 3 |
Total Lines | 26 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function getHTML() |
||
38 | { |
||
39 | $details = $this->getHTMLDetails(); |
||
40 | extract($details); |
||
41 | |||
42 | $options = null; |
||
43 | foreach ($this['options'] as $optValue => $optText) { |
||
44 | $options .= "<option value='{$optValue}'" |
||
45 | . (($this['value'] == $optValue) |
||
46 | ? " selected" |
||
47 | : null) |
||
48 | . ">{$optText}</option>\n"; |
||
49 | } |
||
50 | |||
51 | return <<<EOD |
||
52 | <p> |
||
53 | <label for='$id'>$label</label> |
||
54 | <br/> |
||
55 | <select id='$id'{$class}{$name}{$autofocus}{$required}{$readonly}{$checked}{$title}> |
||
56 | {$options} |
||
57 | </select> |
||
58 | {$messages} |
||
59 | </p> |
||
60 | <p class='cf-desc'>{$description}</p> |
||
61 | EOD; |
||
62 | } |
||
63 | } |
||
64 |