5 $cur_track= $mpd->current_track_id;
6 $playlist= $mpd->playlist;
8 <?php include("../view/default/tmpl/playlistmenu.php"); ?>
11 <tr id="items_heading">
12 <td></td><td>Название</td><th colspan="4">Управление</th>
15 for($i=0;$i<count($playlist);$i++) {
17 <tr id="item<?php if($cur_track == $i){echo "Active";} elseif($i%2==0) { echo "Even";}else{echo "Odd";}?>">
18 <td id="track_number">
19 <a name="<?php echo $i;?>"></a></td>
22 <span class="button" onclick="PlaylistCommand('playitem',<?php echo $i;?>)"><?php
23 if ($playlist[$i]['name']==$playlist[$i]['title']) {
24 echo htmlentities(cut_file($playlist[$i]['name']));
26 echo htmlentities($playlist[$i]['title']);
31 <span class="button" onclick="PlaylistCommand('moveup',<?php echo $i;?>)"><img width="15" src="images/up.png"></span>
34 <span class="button" onclick="PlaylistCommand('movedown',<?php echo $i;?>)"><img width="15" src="images/down.png"></span>
37 <span class="button" onclick="PlaylistCommand('remove',<?php echo $i;?>)"><img width="15" src="images/remove.png"></span>
40 <input type="checkbox" name="itemlist[]" value="<?php echo $i;?>">
48 <?php include("../view/default/tmpl/playlistmenu.php"); ?>