1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 09:51:28 +00:00

add tag dropbox to tag editor

This commit is contained in:
Andrew Dolgov
2006-12-07 10:27:34 +01:00
parent 3fd7138fc2
commit d62a3b6349
4 changed files with 63 additions and 3 deletions

View File

@@ -283,9 +283,34 @@
$tags_str = join(", ", $tags);
print "<input type=\"hidden\" name=\"id\" value=\"$param\">";
print "<table width='100%'>";
print "<textarea rows='4' class='iedit' name='tags_str'>$tags_str</textarea>";
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>";
$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>";