1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

rework filter dialogs to use dijit.Form

This commit is contained in:
Andrew Dolgov
2010-11-20 14:10:26 +03:00
parent 48b05a2986
commit d90868d719
7 changed files with 144 additions and 145 deletions

View File

@@ -6794,23 +6794,24 @@
return true;
}
function print_label_select($link, $name, $value, $style = "") {
function print_label_select($link, $name, $value, $attributes = "") {
$result = db_query($link, "SELECT caption FROM ttrss_labels2
WHERE owner_uid = '".$_SESSION["uid"]."' ORDER BY caption");
print "<select default=\"$value\" name=\"" . htmlspecialchars($name) .
"\" style=\"$style\" onchange=\"labelSelectOnChange(this)\" >";
"\" $attributes onchange=\"labelSelectOnChange(this)\" >";
while ($line = db_fetch_assoc($result)) {
$issel = ($line["caption"] == $value) ? "selected=\"1\"" : "";
print "<option $issel>" . htmlspecialchars($line["caption"]) . "</option>";
print "<option value=\"".htmlspecialchars($line["caption"])."\"
$issel>" . htmlspecialchars($line["caption"]) . "</option>";
}
print "<option value=\"ADD_LABEL\">" .__("Add label...") . "</option>";
# print "<option value=\"ADD_LABEL\">" .__("Add label...") . "</option>";
print "</select>";