1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-18 07:41:28 +00:00

use prototype in form editor

This commit is contained in:
Andrew Dolgov
2006-05-20 12:16:16 +01:00
parent c6932f8da2
commit 14f69488da
6 changed files with 1849 additions and 132 deletions

View File

@@ -1610,10 +1610,10 @@
function print_feed_cat_select($link, $id, $default_id = "",
$attributes = "", $include_all_cats = true) {
print "<select id=\"$id\" $attributes>";
print "<select name=\"$id\" $attributes>";
if ($include_all_cats) {
print "<option id=\"0\">Uncategorized</option>";
print "<option value=\"0\">Uncategorized</option>";
}
$result = db_query($link, "SELECT id,title FROM ttrss_feed_categories
@@ -1629,11 +1629,14 @@
} else {
$is_selected = "";
}
printf("<option $is_selected id='%d'>%s</option>",
printf("<option $is_selected value='%d'>%s</option>",
$line["id"], $line["title"]);
}
print "</select>";
}
function checkbox_to_sql_bool($val) {
return ($val == "on") ? "true" : "false";
}
?>