Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

select-field.inc.php

Go to the documentation of this file.
00001 <?php
00008 class SelectField extends AbstractListField
00009 {
00013     public function drawInput()
00014     {
00015         $attr = $this->extrasAsAttributes();
00016         
00017         echo "<select name=\"$this->name\" $attr>";
00018         
00019         foreach($this->options as $value => $title)
00020             echo "<option value=\"$value\"", $this->value == $value ? ' selected="selected"' : null,
00021                 ">$title</option>";
00022 
00023         echo "</select>";
00024     }
00025 }
00026 ?>

Generated on Fri Oct 27 12:26:40 2006 for BaseJumper by doxygen 1.3.9.1