summaryrefslogtreecommitdiffstats
path: root/templates/show_song.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-12 02:52:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-12 02:52:50 +0000
commit693e26e2ad074f8cc9d37098a0568cd93ae30f52 (patch)
tree8588523335a337d0971df768da0456e325bb6b66 /templates/show_song.inc.php
parent003619c52c0370f03b9edb466addaaebac13ce41 (diff)
downloadampache-693e26e2ad074f8cc9d37098a0568cd93ae30f52.tar.gz
ampache-693e26e2ad074f8cc9d37098a0568cd93ae30f52.tar.bz2
ampache-693e26e2ad074f8cc9d37098a0568cd93ae30f52.zip
commit of the patches from codeoverload to implement tagging, will not work without manual modification of database, yes.. this commit breaks things cope
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(); ?>