5 $cur_track= $mpd->current_track_id;
6 $playlist= $mpd->playlist;
9 <?php include("../view/default/tmpl/playlistmenu.php"); ?>
12 <tr id="items_heading">
13 <td></td><td>Title</td><th colspan="4">Controls</th>
16 for($i=0;$i<count($playlist);$i++) {
18 <tr id="item<?php if($cur_track == $i){echo "Active";} elseif($i%2==0) { echo "Even";}else{echo "Odd";}?>">
19 <td id="track_number">
20 <a name="<?php echo $i;?>"></a></td>
23 <span class="button" onclick="PlaylistCommand('playitem',<?php echo $i;?>)"><?php
24 if ($playlist[$i]['name']==$playlist[$i]['title']) {
25 echo htmlentities(cut_file($playlist[$i]['name']));
27 echo htmlentities($playlist[$i]['title']);
32 <span class="button" onclick="PlaylistCommand('moveup',<?php echo $i;?>)"><img width="15" src="images/up.png"></span>
35 <span class="button" onclick="PlaylistCommand('movedown',<?php echo $i;?>)"><img width="15" src="images/down.png"></span>
38 <span class="button" onclick="PlaylistCommand('remove',<?php echo $i;?>)"><img width="15" src="images/remove.png"></span>
41 <input type="checkbox" name="itemlist[]" value="<?php echo $i;?>">
49 <?php include("../view/default/tmpl/playlistmenu.php"); ?>