summaryrefslogtreecommitdiffstats
path: root/templates/show_mpdplay.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-19 18:05:40 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-19 18:05:40 +0000
commit0c0262b8a7326d1e2effbce5d422fd672300d114 (patch)
treee84c501cccbb2e7d3d9655685020fd7a266a7170 /templates/show_mpdplay.inc
parent49f48af532c2d3196d94b444c3514bdb1a499436 (diff)
downloadampache-0c0262b8a7326d1e2effbce5d422fd672300d114.tar.gz
ampache-0c0262b8a7326d1e2effbce5d422fd672300d114.tar.bz2
ampache-0c0262b8a7326d1e2effbce5d422fd672300d114.zip
mother of all commits...
Diffstat (limited to 'templates/show_mpdplay.inc')
-rw-r--r--templates/show_mpdplay.inc18
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/show_mpdplay.inc b/templates/show_mpdplay.inc
index a6e90b1f..aa390067 100644
--- a/templates/show_mpdplay.inc
+++ b/templates/show_mpdplay.inc
@@ -32,7 +32,7 @@ $web_path = conf('web_path');
<tr class="table-header">
<td colspan="2"><?php echo _("MPD Play Control"); ?></td>
</tr>
-<tr class="even"><td>
+<tr class="even"> <td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
@@ -81,8 +81,8 @@ $web_path = conf('web_path');
</td>
</tr>
</table>
-</tr>
- </td>
+</td>
+ </tr>
<?php if ( $myMpd->state == MPD_STATE_PLAYING or $myMpd->state == MPD_STATE_PAUSED ) { ?>
<tr><td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
@@ -100,14 +100,14 @@ $web_path = conf('web_path');
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
- <td align="center">[ <a title="<?php echo _("Refresh the Playlist Window"); ?>" href="<?php echo conf('web_path'); ?>"><?php echo _("refresh now"); ?></a> ]</td>
+ <td align="center">[ <a title="<?php echo _("Refresh the Playlist Window"); ?>" href="<?php echo conf('web_path'); if ($GLOBALS['user']->prefs['play_type'] == 'mpd' && conf('localplay_menu')) {echo "/mpd.php";} ?>"><?php echo _("refresh now"); ?></a> ]</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
-<table border="0" cellpadding="0" cellspacing="0" WIDTH=<?php echo $PG_WIDTH ?>>
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td align="center"><b><?php echo _("Server Playlist"); ?></b></td></tr>
<tr><td>
<?php
@@ -130,8 +130,8 @@ $web_path = conf('web_path');
$song_name = truncate_with_ellipse($entry['Artist'],conf('ellipse_threshold_artist')-3) . " - " . truncate_with_ellipse($entry['Title'],conf('ellipse_threshold_title')-3);
echo "\t";
- echo "<a title=\"Click to remove'".$entry['Title']." '\" href=\"".conf('web_path')."/amp-mpd.php?action=rem&id=".$id."\">[" . $track . "]</a>";
- echo " <a title=\"Click to jump to '".$entry['Title']."'\" href='".conf('web_path')."/amp-mpd.php?action=skipto&val=".$id."'>$song_name</a>";
+ echo " <a title=\"Click to remove ".htmlspecialchars($entry['Title'])."\" href=\"".conf('web_path')."/amp-mpd.php?action=rem&amp;id=".$id."\">[" . $track . "]</a>";
+ echo " <a title=\"Click to jump to ".htmlspecialchars($entry['Title'])."\" href=\"".conf('web_path')."/amp-mpd.php?action=skipto&amp;val=".$id."\">$song_name</a>";
echo "<br />\n";
}
}
@@ -141,8 +141,8 @@ $web_path = conf('web_path');
?>
</td></tr>
<?php if ( $myMpd->playlist_count > 0 ) { ?>
-<tr height="20">
- <td align="center">
+<tr>
+ <td align="center" height="20">
[<a title="<?php echo _("Click to shuffle (randomize) the playlist"); ?>" href="<?php echo conf('web_path'); ?>/amp-mpd.php?action=shuffle"><?php echo _("shuffle"); ?></a>]
[<a title="<?php echo _("Click the clear the playlist"); ?>" href="<?php echo conf('web_path'); ?>/amp-mpd.php?action=clear"><?php echo _("clear"); ?></a>]
</td>