summaryrefslogtreecommitdiff
path: root/modules/popup-dialog.php
diff options
context:
space:
mode:
authorCraig Meyer <[email protected]>2011-08-11 18:51:00 -0400
committerAndrew Dolgov <[email protected]>2011-08-23 12:49:18 +0400
commit147f5632281b0da6f4232b5d8f4e6998ebf1e40b (patch)
tree27abbbe036c7ad5e324482f615fcf0b6f472c1c3 /modules/popup-dialog.php
parent8efb5f62e86fd0c11147aec979733a33ade53756 (diff)
Extended Actions to include Select by tag (add local modifications, fix
display for tags starting with a number)
Diffstat (limited to 'modules/popup-dialog.php')
-rw-r--r--modules/popup-dialog.php32
1 files changed, 31 insertions, 1 deletions
diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php
index 6cb60eef4..4d2408d15 100644
--- a/modules/popup-dialog.php
+++ b/modules/popup-dialog.php
@@ -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:"). "&nbsp;" .
+ "<input class=\"noborder\" dojoType=\"dijit.form.RadioButton\" type=\"radio\" checked value=\"any\" name=\"tag_mode\">&nbsp;Any&nbsp;";
+ print "<input class=\"noborder\" dojoType=\"dijit.form.RadioButton\" type=\"radio\" value=\"all\" name=\"tag_mode\">&nbsp;All&nbsp;";
+ print "&nbsp;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 "&nbsp;";
+ print "<button dojoType=\"dijit.form.Button\"
+ onclick=\"return closeInfoBox()\">" .
+ __('Close this window') . "</button>";
+ print "</div>";
+
+ print "]]></content>";
}
if ($id == "emailArticle") {