diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-18 05:52:06 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-18 05:52:06 +0000 |
commit | f64a2f4d00b801408b558917bae8f6a428931fe7 (patch) | |
tree | 3640a6ac0a94c00d021835a6cf94d83ec7377ccb /templates/show_localplay_playlist.inc.php | |
parent | 15c56f21f2a74c8d25e8d74b2cc4b4020e9db74f (diff) | |
download | ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.tar.gz ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.tar.bz2 ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.zip |
fixed admin prefs, flushed out localplay stuff, tweaked filters on browse
Diffstat (limited to 'templates/show_localplay_playlist.inc.php')
-rw-r--r-- | templates/show_localplay_playlist.inc.php | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/templates/show_localplay_playlist.inc.php b/templates/show_localplay_playlist.inc.php index 7932f419..216f1523 100644 --- a/templates/show_localplay_playlist.inc.php +++ b/templates/show_localplay_playlist.inc.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2006 Ampache.org + Copyright (c) 2001 - 2007 Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -18,37 +18,34 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - -$songs = $localplay->get(); -$status = $localplay->status(); ?> -<table cellspacing="0"> +<?php show_box_top(_('Current Playlist')); ?> +<table class="table-data" cellspacing="0"> <tr class="table-header"> <th><?php echo _('Track'); ?></th> <th><?php echo _('Name'); ?></th> <th><?php echo _('Action'); ?></th> </tr> <?php -foreach ($songs as $song) { +foreach ($objects as $object) { $class = ''; - if ($status['track'] == $song['track']) { $class=' class="lp_current"'; } + if ($status['track'] == $object['track']) { $class=' class="lp_current"'; } ?> -<tr class="<?php echo flip_class(); ?>"> +<tr class="<?php echo flip_class(); ?>" id="localplay_playlist_<?php echo $object['id']; ?>"> <td> - <?php echo scrub_out($song['track']); ?> + <?php echo scrub_out($object['track']); ?> </td> <td<?php echo $class; ?>> - <?php echo $localplay->format_name($song['name'],$song['id']); ?> + <?php echo $localplay->format_name($object['name'],$object['id']); ?> </td> <td> - <a href="<?php echo $web_path; ?>/localplay.php?action=delete_song&song_id=<?php echo scrub_out($song['id']); ?>"> - <?php echo get_user_icon('delete'); ?> - </a> + <?php echo Ajax::button('?page=localplay&action=delete_track&id=' . intval($object['id']),'delete',_('Delete'),'localplay_delete_' . intval($object['id'])); ?> </td> </tr> -<?php } if (!count($songs)) { ?> +<?php } if (!count($objects)) { ?> <tr class="<?php echo flip_class(); ?>"> <td colspan="3"><span class="error"><?php echo _('No Records Found'); ?></span></td> </tr> <?php } ?> </table> +<?php show_box_bottom(); ?> |