diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-09 09:00:47 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-09 09:00:47 +0000 |
commit | f79a2489c1f18f2bf1436fa5ec4c8fd9c903fd61 (patch) | |
tree | 97952ac522a9f0376623e5aa868141e5d9b3a821 /templates/show_localplay_control.inc.php | |
parent | 78590d7d512ada604987fdcc9c31a8c74591f64b (diff) | |
download | ampache-f79a2489c1f18f2bf1436fa5ec4c8fd9c903fd61.tar.gz ampache-f79a2489c1f18f2bf1436fa5ec4c8fd9c903fd61.tar.bz2 ampache-f79a2489c1f18f2bf1436fa5ec4c8fd9c903fd61.zip |
updates, ajax kind of broken right now its late
Diffstat (limited to 'templates/show_localplay_control.inc.php')
-rw-r--r-- | templates/show_localplay_control.inc.php | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/templates/show_localplay_control.inc.php b/templates/show_localplay_control.inc.php index b45cd887..a0177603 100644 --- a/templates/show_localplay_control.inc.php +++ b/templates/show_localplay_control.inc.php @@ -23,29 +23,36 @@ $web_path = conf('web_path'); $localplay = init_localplay(); -$required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); +$required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); $ajax_url = $web_path . '/server/ajax.server.php'; ?> +<script language="javascript" type="text/javascript"> +<!-- +var lp_control = new Array(2); +lp_control[0] = "lp_state"; +lp_control[1] = "lp_playing"; +--> +</script> <div class="localplaycontrol" style="display:table-cell;cursor:pointer;padding:2px;"> <?php if ($localplay->has_function('prev')) { ?> -<span class="prev_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=prev<?php echo $required_info; ?>','localplay_state');return true;"> +<span class="prev_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=prev<?php echo $required_info; ?>',lp_control);return true;"> <img src="<?php echo $web_path; ?>/images/localplay/prev.gif" alt="prev" /> </span> <?php } ?> -<span class="stop_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=stop<?php echo $required_info; ?>','localplay_state');return true;"> +<span class="stop_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=stop<?php echo $required_info; ?>',lp_control);return true;"> <img src="<?php echo $web_path; ?>/images/localplay/stop.gif" alt="stop" /> </span> <?php if ($localplay->has_function('pause')) { ?> -<span class="pause_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=pause<?php echo $required_info; ?>','localplay_state');return true;"> +<span class="pause_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=pause<?php echo $required_info; ?>',lp_control);return true;"> <img src="<?php echo $web_path; ?>/images/localplay/pause.gif" alt="pause" /> </span> <?php } ?> -<span class="play_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=play<?php echo $required_info; ?>','localplay_state');return true;"> +<span class="play_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=play<?php echo $required_info; ?>',lp_control);return true;"> <img src="<?php echo $web_path; ?>/images/localplay/play.gif" alt="play" /> </span> <?php if ($localplay->has_function('next')) { ?> -<span class="next_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=next<?php echo $required_info; ?>','localplay_state');return true;"> +<span class="next_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=next<?php echo $required_info; ?>',lp_control);return true;"> <img src="<?php echo $web_path; ?>/images/localplay/next.gif" alt="next" /> </span> <?php } ?> |