diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-09 07:55:50 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-09 07:55:50 +0000 |
commit | 5aeac3b17e31d0cc88321a614469c4f3f1a9c0dc (patch) | |
tree | ff7ceb1767ce45ab9dc9e5e192ed36bc69e3db90 /templates | |
parent | 79a890b7bf7bd9b31e6879c64d5651cef02975f3 (diff) | |
download | ampache-5aeac3b17e31d0cc88321a614469c4f3f1a9c0dc.tar.gz ampache-5aeac3b17e31d0cc88321a614469c4f3f1a9c0dc.tar.bz2 ampache-5aeac3b17e31d0cc88321a614469c4f3f1a9c0dc.zip |
added an ugly localplay view page, and made it so you can remove songs from your mpd playlist... its ugly.. I know.. ooh yea you can also deactivate modules now
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_localplay.inc.php | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/templates/show_localplay.inc.php b/templates/show_localplay.inc.php index ece7ecde..e0074b50 100644 --- a/templates/show_localplay.inc.php +++ b/templates/show_localplay.inc.php @@ -21,5 +21,37 @@ */ $web_path = conf('web_path'); - +$localplay = init_localplay(); +$songs = $localplay->get(); ?> + +<div class="text-box"> +<span class="header2"><?php echo _('Localplay'); ?></span> +<!-- Yea I don't know what to put here... yet.. --> +</div> +<br /> +<div class="text-box"> +<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 scrub_out($song['name']); ?> + </td> + <td> + <a href="<?php echo $web_path; ?>/localplay.php?action=delete_song&song_id=<?php echo $song['id']; ?>"><?php echo _('Delete'); ?></a> + </td> +</tr> +<?php } if (!count($songs)) { ?> +<tr class="<?php echo flip_class(); ?>"> + <td colspan="2"><span class="error"><?php echo _('No Records Found'); ?></span></td> +</tr> +<?php } ?> +</table> |