summaryrefslogtreecommitdiffstats
path: root/templates/show_song.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_song.inc.php')
-rw-r--r--templates/show_song.inc.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/show_song.inc.php b/templates/show_song.inc.php
index 260a37b4..d1c5dbe3 100644
--- a/templates/show_song.inc.php
+++ b/templates/show_song.inc.php
@@ -53,7 +53,17 @@
$rowparity = flip_class();
echo "<dt class=\"".$rowparity."\">" . _($key) . "</dt><dd class=\"".$rowparity."\">" . $value . "</dd>";
}
- }?>
+ }
+ echo '<dt> Tags </dt><dd>';
+ $tags = TagCloud::get_tags('song', array($song->id));
+ foreach($tags as $i)
+ echo $i['name'] . ' ';
+ ?><form type=POST action=coin>
+ <?php
+ echo Ajax::text('?page=tag&action=add&type=song&id=' . $song->id . "&val='+document.getElementById('tagname').value+'", _("Add tag"), 'tag_artist');
+ ?>
+ <input type="text" size="10" maxlength="10" id="tagname"></input></form>
+ </dd>
</dl>
<?php show_box_bottom(); ?>