summaryrefslogtreecommitdiff
path: root/modules/popup-dialog.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-12-07 10:27:34 +0100
committerAndrew Dolgov <[email protected]>2006-12-07 10:27:34 +0100
commitd62a3b6349e5bd5c7bf860e5c5a8a27b7aa1d89b (patch)
tree794d30c1e388c9fbbc9f72c90fb298d7ba81dd27 /modules/popup-dialog.php
parent3fd7138fc22de45e4be31568e8ff04883d221329 (diff)
add tag dropbox to tag editor
Diffstat (limited to 'modules/popup-dialog.php')
-rw-r--r--modules/popup-dialog.php29
1 files changed, 27 insertions, 2 deletions
diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php
index a1ead2b00..40f4df8a2 100644
--- a/modules/popup-dialog.php
+++ b/modules/popup-dialog.php
@@ -283,9 +283,34 @@
$tags_str = join(", ", $tags);
- print "<input type=\"hidden\" name=\"id\" value=\"$param\">";
+ print "<table width='100%'>";
+
+ print "<tr><td colspan='2'><input type=\"hidden\" name=\"id\" value=\"$param\"></td></tr>";
+
+ print "<tr><td colspan='2'><textarea rows='4' class='iedit' name='tags_str'>$tags_str</textarea></td></tr>";
+
+ print "<tr><td>Add existing tag:</td>";
- print "<textarea rows='4' class='iedit' name='tags_str'>$tags_str</textarea>";
+ $result = db_query($link, "SELECT DISTINCT tag_name FROM ttrss_tags
+ WHERE owner_uid = '".$_SESSION["uid"]."' ORDER BY tag_name");
+
+ $found_tags = array();
+
+ array_push($found_tags, '');
+
+ while ($line = db_fetch_assoc($result)) {
+ array_push($found_tags, $line["tag_name"]);
+ }
+
+ print "<td align='right'>";
+
+ print_select("found_tags", '', $found_tags, "onchange=\"javascript:editTagsInsert()\"");
+
+ print "</td>";
+
+ print "</tr>";
+
+ print "</table>";
print "</form>";