rendered paste body<?php
$name = "is_" . $GLOBALS['user']->prefs['play_type'];
${$name} = 'selected="selected" ';
if (has_preference_access('play_type')){
?>
<select style="font-size:0.9em;" name="type">
<?php if (conf('allow_stream_playback')) { ?>
<option onclick="ajaxPut('<?php echo $ajax_url; ?>?action=change_play_type&type=stream<?php echo $required_info; ?>');return true;" <?php echo $is_stream; ?>><?php echo _('Stream'); ?></option>
<?php } if (conf('allow_localplay_playback')) { ?>
<option onclick="ajaxPut('<?php echo $ajax_url; ?>?action=change_play_type&type=localplay<?php echo $required_info; ?>');return true;" <?php echo $is_localplay; ?>><?php echo _('Localplay'); ?></option>
<?php } if (conf('allow_downsample_playback')) { ?>
<option onclick="ajaxPut('<?php echo $ajax_url; ?>?action=change_play_type&type=downsample<?php echo $required_info; ?>');return true;" <?php echo $is_downsample; ?>><?php echo _('Downsample'); ?></option>
<?php } if (conf('allow_democratic_playback')) { ?>
<option onclick="ajaxPut('<?php echo $ajax_url; ?>?action=change_play_type&type=democratic<?php echo $required_info; ?>');return true;" <?php echo $is_democratic; ?>><?php echo _('Democratic'); ?></option>
<?php } ?>
<option onclick="ajaxPut('<?php echo $ajax_url; ?>?action=change_play_type&type=xspf_player<?php echo $required_info; ?>');return true;" <?php echo $is_xspf_player; ?>><?php echo _('XSPF Player'); ?></option>
</select>
<?php
} else {echo $GLOBALS['user']->prefs['play_type'];}