예제 #1
0
파일: display.php 프로젝트: 0x27/mrw-code
 function getPlaylistcontrolsTable($mpd)
 {
     $player = $mpd->getPlayer();
     $repeat = "off";
     if ($player->repeat) {
         $repeat = "on";
     }
     $shuffle = "off";
     if ($player->random) {
         $shuffle = "on";
     }
     $output = "<table>";
     $output .= '<tr><td class="' . $shuffle . '" onclick="playlist(\'shuffle\')">';
     $output .= Icons::getplaylistShuffle() . '</td></tr>' . "\n";
     $output .= '<tr><td class="' . $repeat . '" onclick="playlist(\'repeat\')">';
     $output .= Icons::getplaylistRepeat() . '</td></tr>' . "\n";
     $output .= '<tr><td class="body-clickable" onclick="playlist(\'clear\')">';
     $output .= Icons::getplaylistClear() . '</td></tr>' . "\n";
     $output .= "</table>";
     return $output;
 }