diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-12 02:52:50 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-12 02:52:50 +0000 |
commit | 693e26e2ad074f8cc9d37098a0568cd93ae30f52 (patch) | |
tree | 8588523335a337d0971df768da0456e325bb6b66 /templates/show_song.inc.php | |
parent | 003619c52c0370f03b9edb466addaaebac13ce41 (diff) | |
download | ampache-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.php | 12 |
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(); ?> |