diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-08 17:23:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-08 17:23:24 +0000 |
commit | de5f1c00d30c01d7e8628dafe8e4c02b2f3c61ea (patch) | |
tree | 4ad4591bf9eb9968dca64d3c782a98f8bb43c5dd /templates/show_localplay_control.inc.php | |
parent | 46b19c81697929117bf2f0585cc2beb1c879e49c (diff) | |
download | ampache-de5f1c00d30c01d7e8628dafe8e4c02b2f3c61ea.tar.gz ampache-de5f1c00d30c01d7e8628dafe8e4c02b2f3c61ea.tar.bz2 ampache-de5f1c00d30c01d7e8628dafe8e4c02b2f3c61ea.zip |
cleaned up the play type switch as well as updating the icons so they look a little better
Diffstat (limited to 'templates/show_localplay_control.inc.php')
-rw-r--r-- | templates/show_localplay_control.inc.php | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/templates/show_localplay_control.inc.php b/templates/show_localplay_control.inc.php index b40fcc77..da37a005 100644 --- a/templates/show_localplay_control.inc.php +++ b/templates/show_localplay_control.inc.php @@ -21,12 +21,13 @@ */ $web_path = conf('web_path'); -$data = $localplay->status(); +$localplay = init_localplay(); $required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); $ajax_url = $web_path . '/server/ajax.server.php'; ?> +<div style="background:white;display:table-cell;cursor:pointer;border:1px solid black;padding-top:2px;padding-left:5px;padding-right:5px;"> <?php if ($localplay->has_function('prev')) { ?> <span id="prev_button" onclick="ajaxPut('<?php echo $ajax_url; ?>','action=localplay&cmd=prev<?php echo $required_info; ?>','localplay_state');return true;"> <img src="<?php echo $web_path; ?>/images/localplay/prev.gif" alt="prev" /> @@ -37,7 +38,7 @@ $ajax_url = $web_path . '/server/ajax.server.php'; </span> <?php if ($localplay->has_function('pause')) { ?> <span id="pause_button" onclick="ajaxPut('<?php echo $ajax_url; ?>','action=localplay&cmd=pause<?php echo $requird_info; ?>','localplay_state');return true;"> - <img src="<?Php echo $web_path; ?>/images/localplay/pause.gif" alt="pause" /> + <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&cmd=play<?php echo $required_info; ?>','localplay_state');return true;"> @@ -48,16 +49,4 @@ $ajax_url = $web_path . '/server/ajax.server.php'; <img src="<?php echo $web_path; ?>/images/localplay/next.gif" alt="next" /> </span> <?php } ?> -<br /> -Current State:<span id="localplay_state"><?php echo $data['state']; ?></span><br /> -<span id="play_type"> -<?php if (conf('play_type') == 'localplay' AND strlen($_SESSION['data']['old_play_type'])) { ?> -<span style="text-decoration:underline;cursor:pointer;" onclick="ajaxPut('<?php echo $ajax_url; ?>','action=change_play_type&type=<?php echo $_SESSION['data']['old_play_type'] . $required_info; ?>','play_type');return true;"> - <?php echo ucfirst($_SESSION['data']['old_play_type']) . ' ' . _('Mode'); ?> -</span> -<?php } else { ?> -<span style="text-decoration:underline;cursor:pointer;" onclick="ajaxPut('<?php echo $ajax_url; ?>','action=change_play_type&type=localplay<?php echo $required_info; ?>','play_type');return true;"> - <?php echo _('Localplay Mode'); ?> -</span> -<?php } ?> -</span><br /> +</div> |