diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-08-05 01:46:01 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-08-05 01:46:01 +0000 |
commit | 0dbace41fe33a9bc2460a58be1022f11b35f4b8c (patch) | |
tree | e533d73eebe62c38c04a36df09bc7592a3983953 /templates/show_localplay_playlist.inc.php | |
parent | f3b10721ac15f9a477057d3a7cddba3b3a67b7a9 (diff) | |
download | ampache-0dbace41fe33a9bc2460a58be1022f11b35f4b8c.tar.gz ampache-0dbace41fe33a9bc2460a58be1022f11b35f4b8c.tar.bz2 ampache-0dbace41fe33a9bc2460a58be1022f11b35f4b8c.zip |
added paging to the localplay playlist, fixed some preferences issues I introduced with the form register and caching
Diffstat (limited to 'templates/show_localplay_playlist.inc.php')
-rw-r--r-- | templates/show_localplay_playlist.inc.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/templates/show_localplay_playlist.inc.php b/templates/show_localplay_playlist.inc.php index b8d87108..fe0eb84b 100644 --- a/templates/show_localplay_playlist.inc.php +++ b/templates/show_localplay_playlist.inc.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -18,9 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +$localplay = new Localplay(Config::get('localplay_controller')); ?> -<?php Ajax::start_container('localplay_playlist'); ?> -<?php show_box_top(_('Current Playlist')); ?> +<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?> <table class="tabledata" cellpadding="0" cellspacing="0"> <colgroup> <col id="col_track" /> @@ -33,7 +33,7 @@ <th class="cel_action"><?php echo _('Action'); ?></th> </tr> <?php -foreach ($objects as $object) { +foreach ($object_ids as $object) { $class = ' class="cel_name"'; if ($status['track'] == $object['track']) { $class=' class="cel_name lp_current"'; } ?> @@ -48,7 +48,7 @@ foreach ($objects as $object) { <?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($objects)) { ?> +<?php } if (!count($object_ids)) { ?> <tr class="<?php echo flip_class(); ?>"> <td colspan="3"><span class="error"><?php echo _('No Records Found'); ?></span></td> </tr> @@ -59,5 +59,4 @@ foreach ($objects as $object) { <th class="cel_action"><?php echo _('Action'); ?></th> </tr> </table> -<?php show_box_bottom(); ?> -<?php Ajax::end_container(); ?> +<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?> |