X-Git-Url: https://git.rvb.name/mpd-web.git/blobdiff_plain/585224f5dbe2565ed04c97b054e8d8354c21dc5e..HEAD:/ajax/playlists.php diff --git a/ajax/playlists.php b/ajax/playlists.php index eaf4415..91e386e 100644 --- a/ajax/playlists.php +++ b/ajax/playlists.php @@ -7,7 +7,7 @@ include('mpd.php'); <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> + <td><span class="button" onclick="confirm('Clear current playlist, are you sure?') ? PlaylistCommandRefStatus('clear') : false;" ><img width="20" src="images/removeall.png"></span><td> </tr> </table> </div> @@ -15,9 +15,9 @@ include('mpd.php'); <div id="items"> <table> <tr id="items_heading"> - <td></td><td>Ðазвание</td> + <td></td><td>Ðазвание</td><td>УпÑавление</td> </tr> -<? +<?php $playlists = $mpd->playlists; @@ -26,10 +26,13 @@ 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> + <td id="file"><span class="button" onclick="PlaylistEditCommandRefFull('load','<?php echo $playlists[$i]['name'];?>')"><?php echo $playlists[$i]['name'];?></td> + <td id="controls"><span class="button" onclick="confirm('Delete playlist <?php echo $playlists[$i]['name'];?>, are you sure?') ? DelPlayList('<?php echo $playlists[$i]['name'];?>') : false;"><img width="20" src="images/minus.png"></span></td> </tr> <?php + } + ?> </table> @@ -39,7 +42,7 @@ for($i=0;$i<count($playlists);$i++) { <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> + <td><span class="button" onclick="confirm('Clear current playlist, are you sure?') ? PlaylistCommandRefStatus('clear') : false;" ><img width="20" src="images/removeall.png"></span><td> </tr> </table> </div>