summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-06 02:50:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-06 02:50:03 +0000
commit6c570d4e5a66ca2d49295f6352c71cee6ae32097 (patch)
treee17a820a40a3251c818635e6fa00f316c275edd8 /templates
parent56acdc4b64567461ca153f617e3ec86938369516 (diff)
downloadampache-6c570d4e5a66ca2d49295f6352c71cee6ae32097.tar.gz
ampache-6c570d4e5a66ca2d49295f6352c71cee6ae32097.tar.bz2
ampache-6c570d4e5a66ca2d49295f6352c71cee6ae32097.zip
added volume controls, missing mute icon
Diffstat (limited to 'templates')
-rw-r--r--templates/show_localplay.inc.php7
-rw-r--r--templates/show_localplay_control.inc.php26
2 files changed, 28 insertions, 5 deletions
diff --git a/templates/show_localplay.inc.php b/templates/show_localplay.inc.php
index 9329a114..aa124503 100644
--- a/templates/show_localplay.inc.php
+++ b/templates/show_localplay.inc.php
@@ -35,6 +35,13 @@ $songs = $localplay->get();
</div>
<br />
<div class="text-box">
+<h2>Debug Status Information (Temp!)</h2>
+<pre>
+<?php print_r($localplay->status()); ?>
+</pre>
+</div>
+<br />
+<div class="text-box">
<table class="border" cellspacing="0" border="0">
<tr class="table-header">
<th><?php echo _('Track'); ?></th>
diff --git a/templates/show_localplay_control.inc.php b/templates/show_localplay_control.inc.php
index 47aebac1..2c8d74b5 100644
--- a/templates/show_localplay_control.inc.php
+++ b/templates/show_localplay_control.inc.php
@@ -29,24 +29,40 @@ $ajax_url = $web_path . '/server/ajax.server.php';
?>
<div class="localplaycontrol" style="display:table-cell;cursor:pointer;border:1px solid black;padding:2px;">
<?php if ($localplay->has_function('prev')) { ?>
-<span id="prev_button" onclick="ajaxPut('<?php echo $ajax_url; ?>','action=localplay&amp;cmd=prev<?php echo $required_info; ?>','localplay_state');return true;">
+<span id="prev_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&amp;cmd=prev<?php echo $required_info; ?>','localplay_state');return true;">
<img src="<?php echo $web_path; ?>/images/localplay/prev.gif" alt="prev" />
</span>
<?php } ?>
-<span id="stop_button" onclick="ajaxPut('<?php echo $ajax_url; ?>','action=localplay&amp;cmd=stop<?php echo $required_info; ?>','localplay_state');return true;">
+<span id="stop_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&amp;cmd=stop<?php echo $required_info; ?>','localplay_state');return true;">
<img src="<?php echo $web_path; ?>/images/localplay/stop.gif" alt="stop" />
</span>
<?php if ($localplay->has_function('pause')) { ?>
-<span id="pause_button" onclick="ajaxPut('<?php echo $ajax_url; ?>','action=localplay&amp;cmd=pause<?php echo $requird_info; ?>','localplay_state');return true;">
+<span id="pause_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&amp;cmd=pause<?php echo $requird_info; ?>','localplay_state');return true;">
<img src="<?php echo $web_path; ?>/images/localplay/pause.gif" alt="pause" />
</span>
<?php } ?>
-<span id="play_button" onclick="ajaxPut('<?php echo $ajax_url; ?>','action=localplay&amp;cmd=play<?php echo $required_info; ?>','localplay_state');return true;">
+<span id="play_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&amp;cmd=play<?php echo $required_info; ?>','localplay_state');return true;">
<img src="<?php echo $web_path; ?>/images/localplay/play.gif" alt="play" />
</span>
<?php if ($localplay->has_function('next')) { ?>
-<span id="next_button" onclick="ajaxPut('<?php echo $ajax_url; ?>','action=localplay&amp;cmd=next<?php echo $required_info; ?>','localplay_state');return true;">
+<span id="next_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&amp;cmd=next<?php echo $required_info; ?>','localplay_state');return true;">
<img src="<?php echo $web_path; ?>/images/localplay/next.gif" alt="next" />
</span>
<?php } ?>
+<br />
+<?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 } ?>
</div>