summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-20 14:10:26 +0300
committerAndrew Dolgov <[email protected]>2010-11-20 14:10:26 +0300
commitd90868d719a4a620ff5c1f74457626c429196590 (patch)
tree71e92f7f7b88a0454e9c4eee490343befa50fa21 /functions.php
parent48b05a29860da1b2181689bc93622ca6f89d87ab (diff)
rework filter dialogs to use dijit.Form
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/functions.php b/functions.php
index fe42ea43b..2dcf5d3fc 100644
--- a/functions.php
+++ b/functions.php
@@ -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>";