summaryrefslogtreecommitdiffstats
path: root/templates/show_democratic_playlist.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 19:51:11 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 19:51:11 +0000
commit3508380e994d80c6df1a287606a969c218d81694 (patch)
tree051e95a5541256f344bacd8d11df6a484f1f77cf /templates/show_democratic_playlist.inc.php
parent9344fd377da5c65a0aabf0ad9838e60dd08ff7f9 (diff)
downloadampache-3508380e994d80c6df1a287606a969c218d81694.tar.gz
ampache-3508380e994d80c6df1a287606a969c218d81694.tar.bz2
ampache-3508380e994d80c6df1a287606a969c218d81694.zip
democratic play on its way to being fixed, can add songs to a playlist, and view them ca not play it or delete/vote yet...
Diffstat (limited to 'templates/show_democratic_playlist.inc.php')
-rw-r--r--templates/show_democratic_playlist.inc.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/templates/show_democratic_playlist.inc.php b/templates/show_democratic_playlist.inc.php
index 4838457b..eba142f4 100644
--- a/templates/show_democratic_playlist.inc.php
+++ b/templates/show_democratic_playlist.inc.php
@@ -30,7 +30,7 @@
<?php } ?>
</colgroup>
<?php
-if (!count($songs)) {
+if (!count($objects)) {
$playlist = new Playlist($tmp_playlist->base_playlist);
?>
<tr>
@@ -57,17 +57,14 @@ else {
</tr>
<?php
-
-foreach($songs as $row_id=>$song_id) {
- $song = new Song($song_id);
- $song->format_song();
+foreach($objects as $row_id=>$object_data) {
+ $song = new Song($object_data['0']);
+ $song->format();
?>
<tr class="<?php echo flip_class(); ?>">
<td class="cel_action">
<?php if ($tmp_playlist->has_vote($song_id)) { ?>
- <input class="button" type="button" value="-" onclick="ajaxPut('<?php echo conf('ajax_url'); ?>?action=vote&amp;object_id=<?php echo $song_id; ?>&amp;vote=-1<?php echo conf('ajax_info'); ?>')" />
<?php } else { ?>
- <input class="button" type="button" value="+" onclick="ajaxPut('<?php echo conf('ajax_url'); ?>?action=vote&amp;object_id=<?php echo $song_id; ?>&amp;vote=1<?php echo conf('ajax_info'); ?>')" />
<?php } ?>
</td>
<td class="cel_votes"><?php echo scrub_out($tmp_playlist->get_vote($row_id)); ?></td>
@@ -75,9 +72,6 @@ foreach($songs as $row_id=>$song_id) {
<td class="cel_time"><?php echo $song->f_time; ?></td>
<?php if ($GLOBALS['user']->has_access(100)) { ?>
<td class="cel_admin">
- <span onclick="ajaxPut('<?php echo conf('ajax_url'); ?>?action=tv_admin&amp;cmd=delete&amp;track_id=<?php echo $song_id; ?><?php echo conf('ajax_info'); ?>')" />
- <?php echo get_user_icon('delete'); ?>
- </span>
</td>
<?php } ?>
</tr>