summaryrefslogtreecommitdiffstats
path: root/templates/show_localplay_status.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-28 05:39:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-28 05:39:50 +0000
commitebdb7573bf4176b81264d2c66dd567fa3c3ee0bd (patch)
treef16da64cdfec967a34bc71d5902ca59c64d7b9ac /templates/show_localplay_status.inc.php
parent6232e0f8d78c2555e64672341c54916cc0e8b3ed (diff)
downloadampache-ebdb7573bf4176b81264d2c66dd567fa3c3ee0bd.tar.gz
ampache-ebdb7573bf4176b81264d2c66dd567fa3c3ee0bd.tar.bz2
ampache-ebdb7573bf4176b81264d2c66dd567fa3c3ee0bd.zip
fixed up localplay a little more, to the point of it basicly working... added check for mysql on installer langue page, tweaked some css as well
Diffstat (limited to 'templates/show_localplay_status.inc.php')
-rw-r--r--templates/show_localplay_status.inc.php39
1 files changed, 34 insertions, 5 deletions
diff --git a/templates/show_localplay_status.inc.php b/templates/show_localplay_status.inc.php
index c4352323..28918a35 100644
--- a/templates/show_localplay_status.inc.php
+++ b/templates/show_localplay_status.inc.php
@@ -36,9 +36,38 @@ $track_name = $status['track_artist'] . ' - ' . $status['track_album'] . ' - ' .
$track_name = ltrim(ltrim($track_name,' - '));
?>
-<?php echo _('State') .": ". ucfirst($status['state']); ?><br />
-<?php echo _('Repeat') . ":" . print_boolean($status['repeat']); ?>&nbsp;|&nbsp;
-<?php echo _('Random') . ":" . print_boolean($status['random']); ?><br />
-<?php echo _('Volume') . ":" . $status['volume']; ?><br />
+<strong><?php echo $localplay->get_user_state($status['state']) ?></strong><br />
+&nbsp;&nbsp;<?php echo '[' . $status['track'] . '] - ' . $track_name . '<br />'; ?>
+<div align="center"><?php require (conf('prefix') . '/templates/show_localplay_control.inc.php'); ?></div>
+<div align="center">
+ <?php if ($localplay->has_function('volume_up')) { ?>
+ <span id="up_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&amp;cmd=volume_up<?php echo $required_info; ?>','localplay_state');return true;">
+ <img src="<?php echo $web_path; ?>/images/localplay/volup.gif" alt="volume up" />
+ </span>
+ <?php } ?>
+ <?php if ($localplay->has_function('volume_down')) { ?>
+ <span id="down_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&amp;cmd=volume_down<?php echo $required_info; ?>','localplay_state');return true;">
+ <img src="<?php echo $web_path; ?>/images/localplay/voldn.gif" alt="volume down" />
+ </span>
+ <?php } ?>
+ <?php if ($localplay->has_function('volume_mute')) { ?>
+ <span id="mute_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&amp;cmd=volume_mute<?php echo $required_info; ?>','localplay_state');return true;">
+ <img src="<?php echo $web_path; ?>/images/localplay/volmute.gif" alt="volume mute" />
+ </span>
+ <?php } ?>
+ <br />
+ <?php echo _('Volume') . ":" . $status['volume']; ?>
+</div>
<br />
-<span class="header2"><?php echo _('Now Playing') . '</span><br />[' . $status['track'] . '] - ' . $track_name . '<br />'; ?>
+<?php if ($localplay->has_function('repeat')) { ?>
+ <?php echo _('Repeat') . ":" . print_boolean($status['repeat']); ?> |
+ <a href="<?php echo $web_path; ?>/localplay.php?action=repeat&value=<?php echo invert_boolean($status['repeat']); ?>">
+ <?php echo print_boolean(invert_boolean($status['repeat'])); ?>
+ </a><br />
+ <?php } ?>
+<?php if ($localplay->has_function('random')) { ?>
+ <?php echo _('Random') . ":" . print_boolean($status['random']); ?> |
+ <a href="<?php echo $web_path; ?>/localplay.php?action=random&value=<?php echo invert_boolean($status['random']); ?>">
+ <?php echo print_boolean(invert_boolean($status['random'])); ?>
+ </a><br />
+<?php } ?>