" method="post" enctype="multipart/form-data">
> playlist; if (is_null($pl)) { echo "ERROR: ".$myMpd->errStr."\n"; } else { $maxlen = strlen (count($pl)); $condPL = conf('condPL'); if ($condPL) { echo ""; } else { echo ""; } foreach ($pl as $id=>$entry) { if ( ($condPL) and (($id < $myMpd->current_track_id-1) or ($id > $myMpd->current_track_id + 10)) ) { continue; } unset($text_class); $track = $id+1; $len=strlen($track); while ($len < $maxlen) { $track = "0".$track; $len++; } $flip = flip_class(); echo ''; $mpddir = conf('mpd_dir')."/"; if (strtolower(conf('mpd_method')) == 'file') { $sql = "SELECT genre.name, song.genre, song.id, song.album, song.artist FROM song, genre WHERE file = \"".$mpddir.$entry['file']."\" AND song.genre=genre.id"; $db_results = @mysql_query($sql,dbh()); $r = @mysql_fetch_object ($db_results); $entry['genre'] = $r->name; } else { list($tmp, $id, $tmp) = preg_split("/(song=|&)/", $entry['file']); $r = new Song($id); $entry['Title'] = $r->title; $entry['Artist'] = $r->get_artist_name(); $entry['Album'] = $r->get_album_name(); $entry['genre'] = $r->get_genre_name(); $entry['Time'] = $r->time; $entry['Track'] = $r->track; } $totaltime += $entry['Time']; ?> current_track_id+10 <= $myMpd->playlistcount)) { echo ""; } } //else $time = floor($totaltime/60) . ":" . sprintf("%02d", ($totaltime%60) ); $num = count($pl); if ($condPL) { echo ""; } else { echo ""; } ?>
Select/
Invert
... Condensed Playlist ...
 
> > >        >f  >n  >x
... Condensed Playlist ...
... Condensed Playlist ...
 
song(s)      
[" href="">refresh] playlist_count > 0 ) {$un = (conf('condPL')) ? "un" : ""; ?> [" href="/amp-mpd.php?action=shuffle">] [" href="/amp-mpd.php?action=clear">clear] playlist_count > 10) { ?> [condense] [" href="/amp-mpd.php?action=crop">crop]