aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/radio.php
blob: 6c60fab54ecd3262482709d79faf029bca8c0e03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php

    foreach($vars['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 />";
    }

?>