summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/list_flagged.inc89
-rw-r--r--templates/show_album.inc25
-rw-r--r--templates/show_albums.inc4
-rw-r--r--templates/show_artist_box.inc.php4
-rw-r--r--templates/show_artists.inc17
-rw-r--r--templates/show_flag.inc.php56
-rw-r--r--templates/show_random_play.inc118
-rw-r--r--templates/show_random_play_bar.inc.php64
-rw-r--r--templates/sidebar.inc.php6
9 files changed, 89 insertions, 294 deletions
diff --git a/templates/list_flagged.inc b/templates/list_flagged.inc
deleted file mode 100644
index 2605c879..00000000
--- a/templates/list_flagged.inc
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-/*
-
- Copyright (c) 2004 Ampache.org
- All rights reserved.
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-*/
-
-/*!
- @header
- A template file
-
-*/
-$web_path = conf('web_path');
-?>
-
-<p style="font-size: 10pt; font-weight: bold;">View Flagged Songs</p>
-<p>This is the list of songs that have been flagged by you or other Ampache users. Use
-this list to determine what songs you need to re-rip or tags you need to update.</p>
-
-<?php
-if ($flags) { ?>
- <form name="songs" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
- <table class="tabledata" cellspacing="0" cellpadding="0" >
- <tr class="table-header">
- <td><a href="#" onclick="check_songs(); return false;">Select</a></td>
- <td><?php echo _("Song"); ?></td>
- <td><?php echo _("Flag"); ?></td>
- <td><?php echo _("New Flag"); ?>:</td>
- <td><?php echo _("Flagged by"); ?></td>
- <td><?php echo _("ID3 Update"); ?>:</td>
- <td><?php echo _("Comment"); ?>:</td>
- </tr>
- <?php
- foreach ($flags as $flag) {
- $song = new Song($flag['song']);
- $song->format_song();
- $alt_title = $song->title;
- $artist = $song->f_artist;
- $alt_artist = $song->artist;
-
- echo "<tr class=\"even\">" .
- "<td><input type=\"checkbox\" name=\"song[]\" id=\"flag_".$flag['song']."\" value=\"".$flag['song']."\"></input></td>" .
- "<td><a href=\"".$web_path."/song.php?song=".$flag['song']."\" title=\"$alt_title\">$song->f_title</a> by " .
- "<a href=\"".$web_path."/artist.php?action=show&amp;artist=$song->artist_id\" title=\"$alt_artist\">$artist</a></td>" .
- "<td>".$flag['type']."</td><td>";
- $onchange = "onchange=\"document.getElementById('flag_".$flag['song']."').checked='checked';\"";
- show_flagged_popup($flag['type'],'type',$flag['song']."_newflag", $onchange);
- echo "</td><td>".$flag['username']."<br />".date('m/d/y',$flag['date'])."</td>";
- if ($flag['type'] === 'newid3') {
- echo "<td><input type=\"radio\" name=\"".$flag['song']."_accept\" value=\"accept\" $onchange />" . _("Accept") . "<br />";
- echo "<input type=\"radio\" name=\"".$flag['song']."_accept\" value=\"reject\" $onchange />" . _("Reject");
- echo "</td>";
- }
- else {
- echo "<td><a href=\"".$web_path."/admin/song.php?action=edit&amp;song=".$flag['song']."\">edit/view</a></td>";
- } //end ($flag['type'] === 'newid3') and else
- echo "<td>" . $flag['comment'] . "</td>";
- echo "</tr>\n";
- } //end foreach ($flags as $flag)
- ?>
- <tr class="even">
- <td colspan="7">
- <input type="submit" name="action" value="Update Flags"></input>
- <input type="submit" name="action" value="Edit Selected"></input>
- <input type="submit" name="action" value="Clear Edit List"></input>
- </td>
- </tr>
- </table>
- </form>
-<?php } else { ?>
-<p><?php echo _("You don't have any flagged songs"); ?></p>
-<?php } ?>
-
-
diff --git a/templates/show_album.inc b/templates/show_album.inc
index b9a2aa2d..7eb181a4 100644
--- a/templates/show_album.inc
+++ b/templates/show_album.inc
@@ -27,21 +27,18 @@ $web_path = conf('web_path');
// Build array of the table classes we are using
$row_classes = array('even','odd');
-//FIXME: I hate having to create this here again... LAME
-$user = $GLOBALS['user'];
-
// Generate variables for the flash ratings
//FIXME:
-$album_id=$album->id;
-$artist_id=$album->artist_id;
-$username=$user->username;
+$album_id = $album->id;
+$artist_id = $album->artist_id;
+$username = $GLOBALS['user']->username;
?>
<br />
<table class="border" cellspacing="1" cellpadding="3" border="0">
<tr class="table-header">
<td colspan="2">
- <font size="+1"><?php echo htmlspecialchars($album->name); ?> --
+ <font size="+1"><?php echo scrub_out($album->name); ?> --
<?php echo $album->f_artist; ?></font>
</td>
</tr>
@@ -62,15 +59,15 @@ $username=$user->username;
echo "<br />\n";
?>
<b>Actions:</b><br />
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;album=<?php echo $album->id; ; ?>"><?php echo _("Play Album"); ; ?></a><br />
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;album_random=<?php echo $album->id; ; ?>"><?php echo _("Play Random from Album"); ; ?></a><br />
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/albums.php?action=clear_art&amp;album_id=<?php echo $album->id; ; ?>"><?php echo _("Reset Album Art"); ; ?></a><br />
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/albums.php?action=find_art&amp;album_id=<?php echo $album->id; ; ?>"><?php echo _("Find Album Art"); ; ?></a><br />
- <?php if (($user->has_access('100')) || (!conf('use_auth'))) { ?>
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/albums.php?action=update_from_tags&amp;album_id=<?php echo $album->id; ; ?>"><?php echo _("Update from tags"); ?></a><br />
+ &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/song.php?action=album&amp;album_id=<?php echo $album->id; ?>"><?php echo _("Play Album"); ; ?></a><br />
+ &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/song.php?action=album_random&amp;album_id=<?php echo $album->id; ; ?>"><?php echo _("Play Random from Album"); ; ?></a><br />
+ &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/albums.php?action=clear_art&amp;album_id=<?php echo $album->id; ; ?>"><?php echo _("Reset Album Art"); ; ?></a><br />
+ &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/albums.php?action=find_art&amp;album_id=<?php echo $album->id; ; ?>"><?php echo _("Find Album Art"); ; ?></a><br />
+ <?php if (($GLOBALS['user']->has_access('100')) || (!conf('use_auth'))) { ?>
+ &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/albums.php?action=update_from_tags&amp;album_id=<?php echo $album->id; ; ?>"><?php echo _("Update from tags"); ?></a><br />
<?php } ?>
<?php if (batch_ok()) { ?>
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/batch.php?action=alb&amp;id=<?php echo $album->id; ; ?>"><?php echo _("Download"); ?></a><br />
+ &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/batch.php?action=alb&amp;id=<?php echo $album->id; ; ?>"><?php echo _('Download'); ?></a><br />
<?php } ?>
</td>
</tr>
diff --git a/templates/show_albums.inc b/templates/show_albums.inc
index e23f88e8..99aa8e48 100644
--- a/templates/show_albums.inc
+++ b/templates/show_albums.inc
@@ -57,8 +57,8 @@ foreach ($albums as $album) {
<td><?php echo $album->songs; ?></td>
<td><?php echo $album->year; ?></td>
<td nowrap="nowrap"> <?php echo _("Play"); ?> :
- <a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;album=<?php echo $album->id; ?>"><?php echo _("All"); ?></a> |
- <a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;album_random=<?php echo $album->id; ?>"><?php echo _("Random"); ?></a>
+ <a href="<?php echo $web_path; ?>/song.php?action=album&amp;album_id=<?php echo $album->id; ?>"><?php echo _("All"); ?></a> |
+ <a href="<?php echo $web_path; ?>/song.php?action=album_random&amp;album_id=<?php echo $album->id; ?>"><?php echo _("Random"); ?></a>
<?php if (batch_ok()) { ?>
| <a href="<?php echo $web_path; ?>/batch.php?action=alb&amp;id=<?php echo $album->id; ?>"><?php echo _("Download"); ?></a>
<?php } ?>
diff --git a/templates/show_artist_box.inc.php b/templates/show_artist_box.inc.php
index fdbedc82..8ed59615 100644
--- a/templates/show_artist_box.inc.php
+++ b/templates/show_artist_box.inc.php
@@ -26,8 +26,8 @@ $web_path = conf('web_path');
<br /><?php if (conf('ratings')) { show_rating($artist->id, 'artist'); } // end if ratings ?>
<ul class="text-action">
<li><a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Show All Songs By") . " " . $artist->full_name; ?></a></li>
- <li><a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Play All Songs By") . " " . $artist->full_name; ?></a></li>
- <li><a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;artist_random=<?php echo $artist_id; ?>"><?php echo _("Play Random Songs By") . " " . $artist->full_name; ?></a></li>
+ <li><a href="<?php echo $web_path; ?>/song.php?action=artist&amp;artist_id=<?php echo $artist_id; ?>"><?php echo _("Play All Songs By") . " " . $artist->full_name; ?></a></li>
+ <li><a href="<?php echo $web_path; ?>/song.php?action=artist_random&amp;artist_id=<?php echo $artist_id; ?>"><?php echo _("Play Random Songs By") . " " . $artist->full_name; ?></a></li>
<?php if ($GLOBALS['user']->has_access('100')) { ?>
<li><a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Update from tags"); ?></a></li>
<li><a href="<?php echo $web_path; ?>/artists.php?action=show_rename&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Rename Artist"); ?></a></li>
diff --git a/templates/show_artists.inc b/templates/show_artists.inc
index 19c174d1..c0bd8510 100644
--- a/templates/show_artists.inc
+++ b/templates/show_artists.inc
@@ -25,6 +25,7 @@
*/
$web_path = conf('web_path');
+
// Build array of the table classes we are using
$total_items = $view->total_items;
?>
@@ -38,9 +39,9 @@ $total_items = $view->total_items;
<td>
<a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=artist.name&amp;sort_order=0"> <?php echo _("Artist"); ?> </a>
</td>
- <td> <?php echo _("Songs"); ?> </td>
- <td> <?php echo _("Albums"); ?> </td>
- <td> <?php echo _("Action"); ?> </td>
+ <td> <?php echo _('Songs'); ?> </td>
+ <td> <?php echo _('Albums'); ?> </td>
+ <td> <?php echo _('Action'); ?> </td>
</tr>
<?php
/* Foreach through every artist that has been passed to us */
@@ -51,8 +52,8 @@ foreach ($artists as $artist) { ?>
<td><?php echo $artist['songs']; ?></td>
<td><?php echo $artist['albums']; ?></td>
<td nowrap="nowrap"> <?php echo _("Play"); ?> :
- <a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;artist=<?php echo $artist['id']; ?>"><?php echo _("All"); ?></a> |
- <a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;artist_random=<?php echo $artist['id']; ?>"><?php echo _("Random"); ?></a>
+ <a href="<?php echo $web_path; ?>/song.php?action=artist&amp;artist_id=<?php echo $artist['id']; ?>"><?php echo _("All"); ?></a> |
+ <a href="<?php echo $web_path; ?>/song.php?action=artist_random&amp;artist_id=<?php echo $artist['id']; ?>"><?php echo _("Random"); ?></a>
</td>
</tr>
<?php } //end foreach ($artists as $artist) ?>
@@ -60,9 +61,9 @@ foreach ($artists as $artist) { ?>
<td>
<a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=artist.name&amp;sort_order=0"> <?php echo _("Artist"); ?> </a>
</td>
- <td><?php echo _("Songs"); ?></td>
- <td><?php echo _("Albums"); ?></td>
- <td><?php echo _("Action"); ?></td>
+ <td><?php echo _('Songs'); ?></td>
+ <td><?php echo _('Albums'); ?></td>
+ <td><?php echo _('Action'); ?></td>
</tr>
<tr class="even" align="center">
diff --git a/templates/show_flag.inc.php b/templates/show_flag.inc.php
index 571d822d..1a0038c1 100644
--- a/templates/show_flag.inc.php
+++ b/templates/show_flag.inc.php
@@ -78,59 +78,3 @@ switch ($type) {
</tr>
</table>
</form>
-<?php
-// NOT USED YET!
-if ($type == 'pigsfly') {
-//elseif ($type == 'show_flagged_songs') {
- $flags = get_flagged();
-
-?>
-<p style="font-size: 10pt; font-weight: bold;">View Flagged Songs</p>
-<p>This is the list of songs that have been flagged by your Ampache users. Use
-this list to determine what songs you need to re-rip or tags you need to update.</p>
-<?php
-if ($flags) { ?>
- <form name="flag_update" action="<?php echo $web_path; ?>/flag.php" method="post">
- <table class="tabledata" cellspacing="0" cellpadding="0" border="1">
- <tr class="table-header">
- <td>&nbsp;</td>
- <td>Song</td>
- <td>Flag</td>
- <td>New Flag:</td>
- <td>Flagged by</td>
- <td>ID3 Update:</td>
- </tr>
- <?php
- foreach ($flags as $flag) {
- $song = new Song($flag->song);
- $song->format_song();
- $alt_title = $song->title;
- $artist = $song->f_artist;
- $alt_artist = $song->f_full_artist;
-
- echo "<tr class=\"even\">".
- "<td><input type=\"checkbox\" id=\"flag_".$flag->id."\" name=\"flag[]\" value=\"".$flag->id."\"></input></td>".
- "<td><a href=\"".$web_path."/song.php?song=$flag->song\" title=\"$alt_title\">$song->f_title</a> by ".
- "<a href=\"".$web_path."/artist.php?action=show&amp;artist=$song->artist_id\" title=\"$alt_artist\">$artist</a></td>".
- "<td>$flag->type</td><td>";
- $onchange = "onchange=\"document.getElementById('flag_".$flag->id."').checked='checked';\"";
- show_flagged_popup($flag->type, 'type', $flag->id."_newflag", $onchange);
- echo "</td><td>".$flag->username."<br />".date('m/d/y',$flag->date)."</td>";
- /*echo "<td><a href=\"catalog.php?action=fixed&flag=$flag->id\">Fixed</a></td></tr>\n";*/
- if ($flag->type === 'newid3') {
- echo "<td><input type=\"radio\" name=\"accept_".$flag->id."\" value=\"accept\" />Accept";
- echo "<input type=\"radio\" name=\"accept_".$flag->id."\" value=\"reject\" />Reject</td></tr>";
- } else {
- echo "<td><a href=\"".$web_path."/admin/song.php?action=edit&amp;song=".$flag->song."\">edit/view</a></td>";
- echo "</tr>\n";
- } // end if ($flag->type === 'newid3') and else
- } // end foreach ($flags as $flag)
- ?>
- <tr class="even"><td colspan="6"><input type="submit" name="action" value="Update Flags"></input></td></tr>
- </table>
- </form>
-?php } else { ?>
-<p> You don't have any flagged songs. </p>
-<?php } // end if ($flags) and else
-} // end elseif ($type == 'show_flagged_songs')
-?>
diff --git a/templates/show_random_play.inc b/templates/show_random_play.inc
index 5388dd8f..5dfd321c 100644
--- a/templates/show_random_play.inc
+++ b/templates/show_random_play.inc
@@ -22,61 +22,69 @@
?>
-<form name="random" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/song.php">
-<table class="border" border="0" cellpadding="3" cellspacing="1"><!-- Random Play Table -->
-<tr class="table-header">
- <td colspan="4"><?php echo _("Play Random Selection"); ?></td>
+<form id="random" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/song.php">
+<div class="text-box">
+<span class="header2"><?php echo _('Play Random Selection'); ?></span>
+<table>
+<tr>
+ <td><?php echo _("Item count"); ?></td>
+ <td>
+ <select name="random">
+ <option value="1">1</option>
+ <option value="5" selected="selected">5</option>
+ <option value="10">10</option>
+ <option value="20">20</option>
+ <option value="30">30</option>
+ <option value="50">50</option>
+ <option value="100">100</option>
+ <option value="500">500</option>
+ <option value="1000">1000</option>
+ <option value="-1"><?php echo _('All'); ?></option>
+ </select>
+ </td>
+ <td rowspan="4" valign="top"><?php echo _('From genre'); ?></td>
+ <td rowspan="4">
+ <?php show_genre_pulldown('genre','','5'); ?>
+ </td>
</tr>
-<tr class="even">
-<td>
- <table border="0">
- <tr class="even">
- <td><?php echo _("Item count"); ?></td>
- <td>
- <select name="random">
- <option value="1">1</option>
- <option value="5">5</option>
- <option value="10">10</option>
- <option value="20">20</option>
- <option value="30">30</option>
- <option value="50">50</option>
- <option value="100">100</option>
- <option value="500">500</option>
- <option value="1000">1000</option>
- <option value="-1"><?php echo _("All"); ?></option>
- </select>
- </td>
- <td rowspan="3" valign="top"><?php echo _("From genre"); ?></td>
- <td rowspan="3">
- <?php show_genre_pulldown('genre','','5'); ?>
- </td>
- </tr>
- <tr class="even">
- <td colspan="2">
- Type:
- <select name="random_type">
- <option value="normal"><?php echo _("Standard"); ?></option>
- <option value="unplayed"><?php echo _("Favor Unplayed"); ?></option>
- <option value="full_album"><?php echo _("Full Albums"); ?></option>
- <option value="full_artist"><?php echo _("Full Artist"); ?></option>
- </select>
- </td>
- </tr>
- <tr class="even">
- <td nowrap="nowrap"><?php echo _("from catalog"); ?></td>
- <td>
- <?php show_catalog_pulldown('catalog',''); ?>
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <input type="hidden" name="aaction" value="Play!" />
- <input type="hidden" name="action" value="m3u" />
- <input class="button" type="submit" name="aaction" value="<?php echo _("Play Random Songs"); ?>" />
- </td>
- </tr>
- </table>
-</td>
+<tr>
+ <td colspan="2">
+ <?php echo _('Type'); ?>:
+ <select name="random_type">
+ <option value="normal"><?php echo _("Standard"); ?></option>
+ <option value="unplayed"><?php echo _("Favor Unplayed"); ?></option>
+ <option value="full_album"><?php echo _("Full Albums"); ?></option>
+ <option value="full_artist"><?php echo _("Full Artist"); ?></option>
+ </select>
+ </td>
</tr>
-</table><!-- End Random Play Table -->
+<tr>
+ <td nowrap="nowrap"><?php echo _('From catalog'); ?></td>
+ <td>
+ <?php show_catalog_pulldown('catalog',''); ?>
+ </td>
+</tr>
+<tr>
+ <td><?php echo _('Size Limit'); ?></td>
+ <td>
+ <select name="size_limit">
+ <option value="0"><?php echo _('Unlimited'); ?></option>
+ <option value="64">64MB</option>
+ <option value="128">128MB</option>
+ <option value="256">256MB</option>
+ <option value="512">512MB</option>
+ <option value="1024">1024MB</option>
+ </select>
+ </td>
+<tr>
+ <td colspan="4">
+ <input type="hidden" name="action" value="random" />
+ <input class="button" type="button" value="<?php echo _('Play'); ?>" onclick="return SubmitToPage('random','<?php echo conf('web_path'); ?>/song.php?action=random&amp;method=stream');" />
+ <?php if (batch_ok()) { ?>
+ <input class="button" type="button" value="<?php echo _('Download'); ?>" onclick="return SubmitToPage('random','<?php echo conf('web_path'); ?>/song.php?action=random&amp;method=download');" />
+ <?php } ?>
+ </td>
+</tr>
+</table>
+</div>
</form>
diff --git a/templates/show_random_play_bar.inc.php b/templates/show_random_play_bar.inc.php
deleted file mode 100644
index ce9bfa62..00000000
--- a/templates/show_random_play_bar.inc.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/*
-
-Copyright (c) 2001 - 2005 Ampache.org
-All rights reserved.
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-*/
-/**
- * random play bar
- * this is the simple random play bar, it is short sweet and to the point
- */
-?>
-<form name="random" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/song.php" style="Display:inline">
-<input type="hidden" name="action" value="m3u" />
-<table class="border" width="100%" cellspacing="1" cellpadding="3" border="0">
-<tr class="table-header">
- <td><?php echo _("Play Random Selection"); ?></td>
-</tr>
-<tr class="even">
- <td>
- <select name="random">
- <option value="1">1</option>
- <option value="5">5</option>
- <option value="10">10</option>
- <option value="20">20</option>
- <option value="30">30</option>
- <option value="50">50</option>
- <option value="100">100</option>
- <option value="500">500</option>
- <option value="1000">1000</option>
- <option value="-1"><?php echo _("All"); ?></option>
- </select> &nbsp; &nbsp;
- <?php show_genre_pulldown('genre'); ?>
- <select name="Quantifier">
- <option value="Songs"><?php echo _("Songs"); ?></option>
- <option value="Minutes"><?php echo _("Minutes"); ?></option>
- <option value="Full Artists"><?php echo _("Full Artists"); ?></option>
- <option value="Full Albums"><?php echo _("Full Albums"); ?></option>
- <option value="Less Played"><?php echo _("Less Played"); ?></option>
- </select>
- <?php echo _("from"); ?>
- <?php show_catalog_pulldown( -1, 0); ?>
- <input type="hidden" name="aaction" value="Play!" />
- <input class="button" type="submit" name="aaction" value="<?php echo _("Enqueue"); ?>" />
- &nbsp; <a href="<?php echo conf('web_path'); ?>/randomplay.php"><?php echo _("Advanced"); ?></a>
- </td>
-</tr>
-</table>
-</form>
-
diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php
index f403e97b..e3117e4a 100644
--- a/templates/sidebar.inc.php
+++ b/templates/sidebar.inc.php
@@ -146,8 +146,7 @@ $web_path = conf('web_path');
</li>
<?php if ($GLOBALS['theme']['orientation'] != 'horizontal') { ?>
<li>
- <form name="sub_random" method="post" enctype="multipart/form-data" action="<?php echo $web_path; ?>/song.php" style="Display:inline">
- <input type="hidden" name="action" value="m3u" />
+ <form name="sub_random" method="post" enctype="multipart/form-data" action="<?php echo $web_path; ?>/song.php?action=random&amp;method=stream" style="Display:inline">
<select name="random" style="width:9em;">
<option value="1">1</option>
<option value="5" selected="selected">5</option>
@@ -172,8 +171,7 @@ $web_path = conf('web_path');
<br />
<?php show_catalog_pulldown('catalog','width:9em;'); ?>
<br />
- <input type="hidden" name="aaction" value="Play!" />
- <input class="smallbutton" type="submit" name="aaction" value="<?php echo _("Enqueue"); ?>" />
+ <input class="smallbutton" type="submit" value="<?php echo _('Enqueue'); ?>" />
</form>
</li>
<?php } // end if ($GLOBALS['theme']['orientation'] != 'horizontal') ?>