mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-06 16:19:15 +00:00
Extended Actions to include Select by tag (add local modifications, fix
display for tags starting with a number)
This commit is contained in:
committed by
Andrew Dolgov
parent
8efb5f62e8
commit
147f563228
@@ -737,8 +737,38 @@
|
||||
print "</div>";
|
||||
|
||||
print "]]></content>";
|
||||
}
|
||||
|
||||
//return;
|
||||
if ($id == 'printTagSelect') {
|
||||
print "<title>" . __('Select item(s) by tags') . "</title>";
|
||||
print "<content><![CDATA[";
|
||||
|
||||
print __("Match:"). " " .
|
||||
"<input class=\"noborder\" dojoType=\"dijit.form.RadioButton\" type=\"radio\" checked value=\"any\" name=\"tag_mode\"> Any ";
|
||||
print "<input class=\"noborder\" dojoType=\"dijit.form.RadioButton\" type=\"radio\" value=\"all\" name=\"tag_mode\"> All ";
|
||||
print " tags.";
|
||||
|
||||
print "<select id=\"all_tags\" name=\"all_tags\" title=\"" . __('Which Tags?') . "\" multiple=\"multiple\" size=\"10\" style=\"width : 100%\">";
|
||||
$result = db_query($link, "SELECT DISTINCT tag_name FROM ttrss_tags WHERE owner_uid = ".$_SESSION['uid']."
|
||||
AND LENGTH(tag_name) <= 30 ORDER BY tag_name ASC");
|
||||
|
||||
while ($row = db_fetch_assoc($result)) {
|
||||
$tmp = htmlspecialchars($row["tag_name"]);
|
||||
print "<option value=\"" . str_replace(" ", "%20", $tmp) . "\">$tmp</option>";
|
||||
}
|
||||
|
||||
print "</select>";
|
||||
|
||||
print "<div align='right'>";
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"viewfeed(get_all_tags($('all_tags')),
|
||||
get_radio_checked($('tag_mode')));\">" . __('Display entries') . "</button>";
|
||||
print " ";
|
||||
print "<button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"return closeInfoBox()\">" .
|
||||
__('Close this window') . "</button>";
|
||||
print "</div>";
|
||||
|
||||
print "]]></content>";
|
||||
}
|
||||
|
||||
if ($id == "emailArticle") {
|
||||
|
||||
Reference in New Issue
Block a user