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

    foreach($vars['options'] as $option) {
        if (!in_array($option,$vars['value'])) {
            $selected = "";
        } else {
            $selected = "checked = \"checked\"";
        }
        echo "<label><input type=\"checkbox\" {$vars['js']} name=\"{$vars['internalname']}[]\" {$selected} value=\"".htmlentities($option)."\" {$selected} />{$option}</label><br />";
    }

?>