summaryrefslogtreecommitdiffstats
path: root/templates/show_democratic_playlist.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 21:16:13 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 21:16:13 +0000
commit27ba8110cab5b09220a110f0e2f3af026582c9fc (patch)
treed54b665062b1dab40deff47ca519eca1ee251db0 /templates/show_democratic_playlist.inc.php
parent3508380e994d80c6df1a287606a969c218d81694 (diff)
downloadampache-27ba8110cab5b09220a110f0e2f3af026582c9fc.tar.gz
ampache-27ba8110cab5b09220a110f0e2f3af026582c9fc.tar.bz2
ampache-27ba8110cab5b09220a110f0e2f3af026582c9fc.zip
democratic play working, if still slightly sketchy
Diffstat (limited to 'templates/show_democratic_playlist.inc.php')
-rw-r--r--templates/show_democratic_playlist.inc.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/show_democratic_playlist.inc.php b/templates/show_democratic_playlist.inc.php
index eba142f4..5798d522 100644
--- a/templates/show_democratic_playlist.inc.php
+++ b/templates/show_democratic_playlist.inc.php
@@ -31,7 +31,7 @@
</colgroup>
<?php
if (!count($objects)) {
- $playlist = new Playlist($tmp_playlist->base_playlist);
+ $playlist = new Playlist($democratic->base_playlist);
?>
<tr>
<td>
@@ -63,15 +63,16 @@ foreach($objects as $row_id=>$object_data) {
?>
<tr class="<?php echo flip_class(); ?>">
<td class="cel_action">
- <?php if ($tmp_playlist->has_vote($song_id)) { ?>
+ <?php if ($democratic->has_vote($song_id)) { ?>
<?php } else { ?>
<?php } ?>
</td>
- <td class="cel_votes"><?php echo scrub_out($tmp_playlist->get_vote($row_id)); ?></td>
+ <td class="cel_votes"><?php echo scrub_out($democratic->get_vote($row_id)); ?></td>
<td class="cel_song"><?php echo $song->f_link . " / " . $song->f_album_link . " / " . $song->f_artist_link; ?></td>
<td class="cel_time"><?php echo $song->f_time; ?></td>
<?php if ($GLOBALS['user']->has_access(100)) { ?>
<td class="cel_admin">
+ <?php echo Ajax::button('?page=democratic&action=delete&row_id=' . $row_id,'delete',_('Delete'),'delete_row_' . $row_id); ?>
</td>
<?php } ?>
</tr>