1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 03:15:56 +00:00

move getArticleFeed to Article

move print_label_select to controls
This commit is contained in:
Andrew Dolgov
2017-05-04 14:26:44 +03:00
parent e60d5b0a84
commit 4122da0290
4 changed files with 38 additions and 36 deletions

View File

@@ -300,3 +300,28 @@ function format_inline_player($url, $ctype) {
return "";
}
function print_label_select($name, $value, $attributes = "") {
$result = db_query("SELECT caption FROM ttrss_labels2
WHERE owner_uid = '".$_SESSION["uid"]."' ORDER BY caption");
print "<select default=\"$value\" name=\"" . htmlspecialchars($name) .
"\" $attributes>";
while ($line = db_fetch_assoc($result)) {
$issel = ($line["caption"] == $value) ? "selected=\"1\"" : "";
print "<option value=\"".htmlspecialchars($line["caption"])."\"
$issel>" . htmlspecialchars($line["caption"]) . "</option>";
}
# print "<option value=\"ADD_LABEL\">" .__("Add label...") . "</option>";
print "</select>";
}