mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +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
|
* 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!
|
* 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`";
|
$sql = "SELECT `id`, `name` FROM `genre` ORDER BY `name`";
|
||||||
$db_results = Dba::query($sql);
|
$db_results = Dba::query($sql);
|
||||||
|
|
|
@ -27,7 +27,7 @@ show_header();
|
||||||
switch ($_REQUEST['action']) {
|
switch ($_REQUEST['action']) {
|
||||||
default:
|
default:
|
||||||
case 'advanced':
|
case 'advanced':
|
||||||
|
require_once Config::get('prefix') . '/templates/show_random.inc.php';
|
||||||
break;
|
break;
|
||||||
} // end switch
|
} // 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')); ?>
|
<?php show_box_top(_('Play Random Selection')); ?>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td rowspan="4" valign="top"><?php echo _('From genre'); ?></td>
|
<td rowspan="4" valign="top"><?php echo _('From genre'); ?></td>
|
||||||
<td rowspan="4">
|
<td rowspan="4">
|
||||||
<?php show_genre_pulldown('genre','','5'); ?>
|
<?php show_genre_select('genre','','5'); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><?php echo _('From catalog'); ?></td>
|
<td nowrap="nowrap"><?php echo _('From catalog'); ?></td>
|
||||||
<td>
|
<td>
|
||||||
<?php show_catalog_pulldown('catalog',''); ?>
|
<?php show_catalog_select('catalog',''); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -78,11 +78,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="4">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
Loading…
Add table
Add a link
Reference in a new issue