mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 01:39:28 +02:00
bedtime, added random box back in does not do anything thou... well besides taunt you with its not doing anythingness
This commit is contained in:
parent
df348122a7
commit
185630d92c
3 changed files with 10 additions and 11 deletions
|
@ -882,9 +882,13 @@ function show_artist_select($name='artist', $artist_id=0) {
|
|||
* It's amazing we have three of these funtions now, this one shows a select of genres and take s name
|
||||
* and a selected genre... Woot!
|
||||
*/
|
||||
function show_genre_select($name='genre',$genre_id=0) {
|
||||
function show_genre_select($name='genre',$genre_id=0,$size='') {
|
||||
|
||||
echo "<select name=\"$name\">\n";
|
||||
if ($size > 0) {
|
||||
$multiple_txt = " multiple=\"multiple\" size=\"$size\"";
|
||||
}
|
||||
|
||||
echo "<select name=\"$name\"$multiple_txt>\n";
|
||||
|
||||
$sql = "SELECT `id`, `name` FROM `genre` ORDER BY `name`";
|
||||
$db_results = Dba::query($sql);
|
||||
|
|
|
@ -27,7 +27,7 @@ show_header();
|
|||
switch ($_REQUEST['action']) {
|
||||
default:
|
||||
case 'advanced':
|
||||
|
||||
require_once Config::get('prefix') . '/templates/show_random.inc.php';
|
||||
break;
|
||||
} // end switch
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
|
||||
?>
|
||||
<form id="random" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/song.php">
|
||||
<form id="random" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/random.php">
|
||||
<?php show_box_top(_('Play Random Selection')); ?>
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -42,7 +42,7 @@
|
|||
</td>
|
||||
<td rowspan="4" valign="top"><?php echo _('From genre'); ?></td>
|
||||
<td rowspan="4">
|
||||
<?php show_genre_pulldown('genre','','5'); ?>
|
||||
<?php show_genre_select('genre','','5'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -60,7 +60,7 @@
|
|||
<tr>
|
||||
<td nowrap="nowrap"><?php echo _('From catalog'); ?></td>
|
||||
<td>
|
||||
<?php show_catalog_pulldown('catalog',''); ?>
|
||||
<?php show_catalog_select('catalog',''); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -78,11 +78,6 @@
|
|||
</tr>
|
||||
<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&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&method=download');" />
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue