diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-25 10:04:27 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-25 10:04:27 +0000 |
commit | 27158141ee1a14b7d23ae8997d2c41b49fc904d9 (patch) | |
tree | 2180fff67d21ffdbab32f2105cff3c7275b6b511 /templates/show_album.inc | |
parent | 5415c2e847032896907946c98d68a254399e4416 (diff) | |
download | ampache-27158141ee1a14b7d23ae8997d2c41b49fc904d9.tar.gz ampache-27158141ee1a14b7d23ae8997d2c41b49fc904d9.tar.bz2 ampache-27158141ee1a14b7d23ae8997d2c41b49fc904d9.zip |
initial ratings mojo, some stylesheet fixes, changed user preferences again and a db update
Diffstat (limited to 'templates/show_album.inc')
-rw-r--r-- | templates/show_album.inc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/show_album.inc b/templates/show_album.inc index ad445246..d16a9cf3 100644 --- a/templates/show_album.inc +++ b/templates/show_album.inc @@ -28,7 +28,14 @@ $row_classes = array('even','odd'); //FIXME: I hate having to create this here again... LAME -$user = new User($_SESSION['userdata']['username']); +$user = $GLOBALS['user']; + +// Generate variables for the flash ratings +//FIXME: +$album_id=$album->id; +$artist_id=$album->artist_id; +$username=$user->username; + ?> <br /> <table class="border" cellspacing="1" cellpadding="3" border="0"> @@ -49,6 +56,12 @@ $user = new User($_SESSION['userdata']['username']); ?> </td> <td valign="top"> + <?php + if (conf('ratings')) { + show_rating($album->id,'artist'); + } // end if flash + echo "<br />\n"; + ?> <b>Actions:</b><br /> <a href="<?php echo conf('web_path'); ; ?>/song.php?action=m3u&album=<?php echo $album->id; ; ?>"><?php echo _("Play Album"); ; ?></a><br /> <a href="<?php echo conf('web_path'); ; ?>/song.php?action=m3u&album_random=<?php echo $album->id; ; ?>"><?php echo _("Play Random from Album"); ; ?></a><br /> @@ -60,7 +73,6 @@ $user = new User($_SESSION['userdata']['username']); <?php if( batch_ok() ) { ?> <a href="<?php echo conf('web_path'); ; ?>/batch.php?action=alb&id=<?php echo $album->id; ; ?>"><?php echo _("Download"); ?></a><br /> <?php } ?> - </td> </tr> </table> |