summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 04:35:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 04:35:26 +0000
commit0d2c89e90d7c64eba058ae375760a350d336578b (patch)
treeab689e3d203db1e0b2cce5e44e9f42aa95d1aff9 /templates
parent17a4516e29e9ce9d2583d8b06431dfcdf5722c11 (diff)
downloadampache-0d2c89e90d7c64eba058ae375760a350d336578b.tar.gz
ampache-0d2c89e90d7c64eba058ae375760a350d336578b.tar.bz2
ampache-0d2c89e90d7c64eba058ae375760a350d336578b.zip
fixed the last of the missing MPD features, added new ajax config hotness (not that special)
Diffstat (limited to 'templates')
-rw-r--r--templates/show_localplay_playlist.inc.php2
-rw-r--r--templates/show_localplay_status.inc.php22
2 files changed, 14 insertions, 10 deletions
diff --git a/templates/show_localplay_playlist.inc.php b/templates/show_localplay_playlist.inc.php
index 10f8ecb9..e9806a02 100644
--- a/templates/show_localplay_playlist.inc.php
+++ b/templates/show_localplay_playlist.inc.php
@@ -19,6 +19,7 @@
*/
?>
+<?php Ajax::start_container('localplay_playlist'); ?>
<?php show_box_top(_('Current Playlist')); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
@@ -59,3 +60,4 @@ foreach ($objects as $object) {
</tr>
</table>
<?php show_box_bottom(); ?>
+<?php Ajax::end_container(); ?>
diff --git a/templates/show_localplay_status.inc.php b/templates/show_localplay_status.inc.php
index 058b6f98..9da440aa 100644
--- a/templates/show_localplay_status.inc.php
+++ b/templates/show_localplay_status.inc.php
@@ -22,19 +22,21 @@
$status = $localplay->status();
?>
+<?php Ajax::start_container('localplay_status'); ?>
<?php show_box_top(_('Localplay Control')); ?>
-<span id="lp_state"><?php echo $localplay->get_user_state($status['state']) ?></span><br />
-<div id="lp_box_vol">
- <?php echo Ajax::button('?page=localplay&action=command&command=volume_up','volumeup',_('Increase Volume'),'localplay_volume_up'); ?>
- <?php echo Ajax::button('?page=localplay&action=command&command=volume_down','volumedn',_('Decrease Volume'),'localplay_volume_dn'); ?>
- <?php echo Ajax::button('?page=localplay&action=command&command=volume_mute','volumemute',_('Mute'),'localplay_mute'); ?>
- <?php echo _('Volume'); ?>:<span id="lp_volume"><?php echo $status['volume']; ?></span>
-</div>
+<strong><?php echo $localplay->get_user_state($status['state']) ?></strong><br />
+
+<?php echo Ajax::button('?page=localplay&action=command&command=volume_up','volumeup',_('Increase Volume'),'localplay_volume_up'); ?>
+<?php echo Ajax::button('?page=localplay&action=command&command=volume_down','volumedn',_('Decrease Volume'),'localplay_volume_dn'); ?>
+<?php echo Ajax::button('?page=localplay&action=command&command=volume_mute','volumemute',_('Mute'),'localplay_mute'); ?>
+<strong><?php echo _('Volume'); ?>:</strong><?php echo $status['volume']; ?>%
<br />
- <?php echo _('Repeat') . ":" . print_boolean($status['repeat']); ?> |
+ <strong><?php echo _('Repeat') . ":"; ?></strong> <?php echo print_boolean($status['repeat']); ?> |
<?php echo Ajax::text('?page=localplay&action=repeat&value=' . invert_boolean($status['repeat']),print_boolean(invert_boolean($status['repeat'])),'localplay_repeat'); ?>
- <br />
- <?php echo _('Random') . ":" . print_boolean($status['random']); ?> |
+
+ <strong><?php echo _('Random') . ":"; ?></strong> <?php echo print_boolean($status['random']); ?> |
<?php echo Ajax::text('?page=localplay&action=random&value=' . invert_boolean($status['random']),print_boolean(invert_boolean($status['random'])),'localplay_random'); ?>
<br />
+<?php echo Ajax::text('?page=localplay&action=command&command=delete_all',_('Clear Playlist'),'localplay_clear_all'); ?>
<?php show_box_bottom(); ?>
+<?php Ajax::end_container(); ?>