+<?php
+
+include('mpd.php');
+?>
+
+<div id="playlist_menu">
+ <table>
+ <tr>
+ <td><span class="button" onclick="RefreshPlaylist()"><img width="20" src="images/playlist.png"></span><td>
+ <td><span class="button" onclick="confirm('Очистить список. Вы уверены?') ? PlaylistCommandRefStatus('clear') : false;" ><img width="20" src="images/removeall.png"></span><td>
+ </tr>
+ </table>
+</div>
+
+<div id="items">
+ <table>
+ <tr id="items_heading">
+ <td></td><td>Название</td>
+ </tr>
+<?
+
+$playlists = $mpd->playlists;
+
+for($i=0;$i<count($playlists);$i++) {
+
+?>
+ <tr id="item<?php if($i%2==0) { echo "Even";}else{echo "Odd";}?>">
+ <td id="track_number"><a name="<?php echo $i;?>"></a></td>
+ <td id="file"><span class="button" onclick="PlaylistEditCommandRefFull('load','<?php echo $playlists[$i]['name'];?>')"><? echo $playlists[$i]['name'];?></td></td>
+ </tr>
+<?php
+}
+?>
+
+ </table>
+</div>
+
+<div id="playlist_menu">
+ <table>
+ <tr>
+ <td><span class="button" onclick="RefreshPlaylist()"><img width="20" src="images/playlist.png"></span><td>
+ <td><span class="button" onclick="return confirm('Очистить список. Вы уверены?') ? PlaylistCommand('clear') : false;" ><img width="20" src="images/removeall.png"></span><td>
+ </tr>
+ </table>
+</div>