summaryrefslogtreecommitdiffstats
path: root/templates/show_localplay.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-15 09:28:23 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-15 09:28:23 +0000
commitad6644d6cb748929108dad3143021e85ed048906 (patch)
tree34dce627a366ae1e6a1b19280c2cb7c7a36e55ff /templates/show_localplay.inc.php
parent9c30aa01fec45685f2cd12db63f031cd4d1ce422 (diff)
downloadampache-ad6644d6cb748929108dad3143021e85ed048906.tar.gz
ampache-ad6644d6cb748929108dad3143021e85ed048906.tar.bz2
ampache-ad6644d6cb748929108dad3143021e85ed048906.zip
fixed some localplay issues
Diffstat (limited to 'templates/show_localplay.inc.php')
-rw-r--r--templates/show_localplay.inc.php28
1 files changed, 3 insertions, 25 deletions
diff --git a/templates/show_localplay.inc.php b/templates/show_localplay.inc.php
index 0ad5938c..206389d2 100644
--- a/templates/show_localplay.inc.php
+++ b/templates/show_localplay.inc.php
@@ -22,7 +22,6 @@
$web_path = conf('web_path');
$localplay = init_localplay();
-$songs = $localplay->get();
?>
<?php show_box_top(ucfirst($localplay->type) . ' ' . _('Localplay')); ?>
<table>
@@ -41,28 +40,7 @@ $songs = $localplay->get();
<?php show_box_top(_('Current Playlist')); ?>
-<table class="border" cellspacing="0" border="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) { ?>
-<tr class="<?php echo flip_class(); ?>">
- <td>
- <?php echo scrub_out($song['track']); ?>
- </td>
- <td>
- <?php echo $localplay->format_name($song['name'],$song['id']); ?>
- </td>
- <td>
- <a href="<?php echo $web_path; ?>/localplay.php?action=delete_song&amp;song_id=<?php echo $song['id']; ?>"><?php echo _('Delete'); ?></a>
- </td>
-</tr>
-<?php } if (!count($songs)) { ?>
-<tr class="<?php echo flip_class(); ?>">
- <td colspan="3"><span class="error"><?php echo _('No Records Found'); ?></span></td>
-</tr>
-<?php } ?>
-</table>
+<div id="lp_playlist">
+<?php require_once(conf('prefix') . '/templates/show_localplay_playlist.inc.php'); ?>
+</div>
<?php show_box_bottom(); ?>