diff options
Diffstat (limited to 'views/default/input/gender.php')
-rw-r--r-- | views/default/input/gender.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/views/default/input/gender.php b/views/default/input/gender.php new file mode 100644 index 000000000..e54fb8e70 --- /dev/null +++ b/views/default/input/gender.php @@ -0,0 +1,13 @@ +<?php
+
+ $options = array('Male' => "Male", 'Female' => "Female");
+ foreach($options as $option => $label) {
+ if ($option != $vars['value']) {
+ $selected = "";
+ } else {
+ $selected = "checked = \"checked\"";
+ }
+ echo "<label><input type=\"radio\" {$vars['js']} name=\"{$vars['internalname']}\" value=\"".htmlentities($option)."\" {$selected} />{$label}</label><br />";
+ }
+
+?>
\ No newline at end of file |