From 85a3474424ec5ea06be2f0f27198c9ba7f739af9 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 12 Nov 2006 20:10:22 +0000 Subject: added ability to vote songs up and down in democratic play and fixed a problem with ajax not resetting the gettext() and not having a user or session --- templates/show_tv_playlist.inc.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/show_tv_playlist.inc.php b/templates/show_tv_playlist.inc.php index 19a2c80b..150b0b05 100644 --- a/templates/show_tv_playlist.inc.php +++ b/templates/show_tv_playlist.inc.php @@ -18,13 +18,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* Some defaults */ +$web_path = conf('web_path'); ?>

+ - $song_id) { @@ -32,9 +34,15 @@ foreach($songs as $row_id=>$song_id) { $song->format_song(); ?> + - - +
+ has_vote($song_id)) { ?> + + + + + get_vote($row_id)); ?>title); ?>length); ?>title . ' / ' . $song->get_album_name()); ?>
-- cgit