summaryrefslogtreecommitdiffstats
path: root/randomplay.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-24 20:09:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-24 20:09:03 +0000
commitde19302633973fa059b7d0771db92ec2479ba699 (patch)
tree33a88cca9b5beb45cd1e1a4a4b81747cbc17a88e /randomplay.php
parentbf4e0e46c94861a7da4288b248c67252b18d9af2 (diff)
downloadampache-de19302633973fa059b7d0771db92ec2479ba699.tar.gz
ampache-de19302633973fa059b7d0771db92ec2479ba699.tar.bz2
ampache-de19302633973fa059b7d0771db92ec2479ba699.zip
fixed random play
Diffstat (limited to 'randomplay.php')
-rw-r--r--randomplay.php96
1 files changed, 4 insertions, 92 deletions
diff --git a/randomplay.php b/randomplay.php
index b6e76c8f..1fa9c900 100644
--- a/randomplay.php
+++ b/randomplay.php
@@ -26,101 +26,13 @@
*/
require_once("modules/init.php");
-show_template('header');
-init_mpd();
-$action = scrub_in($_REQUEST['action']);
-
-if (conf('refresh_interval')) {
- show_template('javascript_refresh');
- }
-?>
-<!-- Big Daddy Table -->
-<table style="padding-left:5px;padding-right:5px;padding-top:5px;padding-bottom:5px;" >
-<tr><td colspan="2">&nbsp;</td></tr>
-<tr>
- <td valign="top">
-
-<?php
-/*
- * show_random_play()
- *
-function show_random_play() {
- */
- $web_path = conf('web_path');
-
- print '
- <form name="random" method="post" enctype="multipart/form-data" action="' . $web_path . '/song.php">
- <input type="hidden" name="action" value="m3u" />
- <table class="border" border="0" cellpadding="3" cellspacing="1" width="100%">
- <tr class="table-header">
- <td colspan="4">' . _("Play Random Selection from Multiple Genres") . '</td>
-
- </tr>
- <tr class="even">
- <td>
- <table border="0">
- <tr class="even">
- <td>' . _("Item count") .'</td>
- <td>
- <select name="random">
- <option value="-1">' . _("All") . '</option>
- <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>
- </select></td>
- <td rowspan="3" valign="top"> ' . _("From genre") . '</td>
- <td rowspan="4">
-';
- show_genre_pulldown( -1, 0, "'33' multiple='multiple'" );
-
- print '
- </td></tr>
- <tr class="even">
- <td>
- ' . _("Favor Unplayed") . ' <br />
- ' . _("Favor Full Albums") . ' <br />
- ' . _("Favor Full Artist") . ' <br />
- </td>
- <td>
- <input type="checkbox" id="unplayed" name="unplayed" value="1" onclick="flipField(\'album\');flipField(\'artist\')" /><br />
- <input type="checkbox" id="album" name="full_album" value="1" onclick="flipField(\'unplayed\');flipField(\'artist\')" /><br />
- <input type="checkbox" id="artist" name="full_artist" value="1" onclick="flipField(\'unplayed\');flipField(\'album\')" /><br />
- </td>
- </tr>
- <tr class="even">
- <td nowrap=\'nowrap\'> ' . _("from catalog") . '</td>
- <td>
-';
+show_template('header');
+$action = scrub_in($_REQUEST['action']);
- show_catalog_pulldown( -1, 0);
+show_template('show_random_play');
+show_footer();
- print '
- </td></tr>
- <tr>
- <td colspan="4">
- <input type="hidden" name="aaction" value="Play!" />
- <input class="button" type="submit" name="aaction" value="' . _("Play Random Songs") . '" />
- </td>
- </tr>
- </table>
- </td></tr>
- </table>
- </form>
-';
-/*
-} // show_random_play()
- */
?>
-
-</td></tr>
-</table>
-<?php show_footer(); ?>