state == MPD_STATE_PLAYING or $myMpd->state == MPD_STATE_PAUSED ) { ?>
state} = "style=\"background-color: black;color:white;\""; ?>
" name="action" value="|< " /> " name="action" value=" X " /> " name="action" value=" > " /> " name="action" value=" = " /> " name="action" value= " >|" />
:
repeat); ${$repeat_name} = "style=\"background-color: black;color:white;\""; ?>      " name="val" value="On" /> " name="val" value="Off" />
:
random); ${$random_name} = "style=\"background-color: black;color:white;\""; ?> " name="val" value="On" /> " name="val" value="Off" />
 
: (current_track_position/$myMpd->current_track_length),2)*100) ?>% cmpl.)
playlist[$myMpd->current_track_id]['Artist']." - ".$myMpd->playlist[$myMpd->current_track_id]['Title'] ?>
[ " href=""> ]

> playlist_count > 0 ) { ?>
GetPlaylist(); if ( is_null($pl) ) echo "ERROR: " .$myMpd->errStr."\n"; else { $maxlen = strlen(count($pl)); foreach ($pl as $id => $entry) { $tblClass = ( $id == $myMpd->current_track_id ? "SongPlaying" : "Song" ); $track = $id+1; // Make all number lengths equal $len = strlen($track); while ($len < $maxlen) { $track = "0" . $track; $len++; } $song_name = truncate_with_ellipse($entry['Artist'],conf('ellipse_threshold_artist')-3) . " - " . truncate_with_ellipse($entry['Title'],conf('ellipse_threshold_title')-3); echo "\t"; echo "[" . $track . "]"; echo " $song_name"; echo "
\n"; } } if ( $myMpd->playlist_count == 0 ) { echo "(Playlist is empty)
\n"; } ?>
[" href="/amp-mpd.php?action=shuffle">] [" href="/amp-mpd.php?action=clear">]