00001 <?php 00008 class RadioListField extends AbstractListField 00009 { 00013 function drawInput() 00014 { 00015 foreach($this->options as $value => $title) 00016 { 00017 $id = uniqid($this->name); 00018 echo "<input type=\"radio\" name=\"$this->name\" value=\"$value\" id=\"$id\"", $this->value == $value ? ' checked="checked"/>' : '/>'; 00019 echo " <label for=\"$id\">$title</label><br/>"; 00020 } 00021 } 00022 00023 } 00024 00025 ?>