summaryrefslogtreecommitdiffstats
path: root/templates/show_artist_box.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_artist_box.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_artist_box.inc.php')
-rw-r--r--templates/show_artist_box.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/show_artist_box.inc.php b/templates/show_artist_box.inc.php
index 07307d8e..7968eb11 100644
--- a/templates/show_artist_box.inc.php
+++ b/templates/show_artist_box.inc.php
@@ -29,8 +29,22 @@ if (Config::get('ratings')) {
show_rating($artist->id, 'artist');
echo "</div>";
} // end if ratings ?>
+
<strong><?php echo _('Actions'); ?>:</strong>
<div id="information_actions">
+Tags:
+ <?php
+ $tags = TagCloud::get_tags('artist', array($artist->id));
+ foreach($tags as $i)
+ echo ($i['name']) . ' ';
+ ?>
+ <br/>
+<form type=POST action=coin>
+<?php
+echo Ajax::text('?page=tag&action=add&type=artist&id=' . $artist->id . "&val='+document.getElementById('tagname').value+'", _("Add tag"), 'tag_artist');
+?>
+<input type="text" size="10" maxlength="10" id="tagname"></input></form>
+
<a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist->id; ?>"><?php echo _("Show All Songs By") . " " . $artist->f_name; ?></a><br />
<?php echo Ajax::text('?action=basket&type=artist&id=' . $artist->id,_('Add All Songs By') . ' ' . $artist->f_name,'play_full_artist'); ?><br />
<?php echo Ajax::text('?action=basket&type=artist_random&id=' . $artist->id,_('Add Random Songs By') . ' ' . $artist->f_name,'play_random_artist'); ?><br />