mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
preferences editor
This commit is contained in:
@@ -454,4 +454,17 @@
|
||||
return ((float)$usec + (float)$sec);
|
||||
}
|
||||
|
||||
function print_radio($id, $default, $values, $attributes = "") {
|
||||
foreach ($values as $v) {
|
||||
|
||||
if ($v == $default)
|
||||
$sel = "checked value=\"1\"";
|
||||
else
|
||||
$sel = "value=\"0\"";
|
||||
|
||||
print "<input type=\"radio\" $sel $attributes name=\"$id\"> $v ";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user