summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-20 12:16:16 +0100
committerAndrew Dolgov <[email protected]>2006-05-20 12:16:16 +0100
commit14f69488dafab0fc44666038eb370d59b54d1e9c (patch)
treeba13d122515ba6436a5f21d253cc4d07a159efd8 /functions.php
parentc6932f8da234df5b53eef4b599fbcf6999f3c84b (diff)
use prototype in form editor
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index 343315eb1..0f05f8aec 100644
--- a/functions.php
+++ b/functions.php
@@ -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";
+ }
?>