diff options
Diffstat (limited to 'modules/lib.php')
-rw-r--r-- | modules/lib.php | 80 |
1 files changed, 1 insertions, 79 deletions
diff --git a/modules/lib.php b/modules/lib.php index 6192c4af..67a49077 100644 --- a/modules/lib.php +++ b/modules/lib.php @@ -10,84 +10,6 @@ */ /* - * 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") . '</td> - - </tr> - <tr class="even"> - <td> - <table border="0"> - <tr class="even"> - <td>' . _("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">' . _("All") . '</option> - </select></td> - <td rowspan="3" valign="top"> ' . _("From genre") . '</td> - <td rowspan="3"> -'; - - show_genre_pulldown( -1, 0 ); - - print ' - </td></tr> - <tr class="even"> - <td> - ' . _("Favor Unplayed") . ' <br /> - ' . _("Full Albums") . ' <br /> - ' . _("Full Artist") . ' - </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\')" /> - </td> - </tr> - <tr class="even"> - <td nowrap="nowrap"> ' . _("from catalog") . '</td> - <td> -'; - - show_catalog_pulldown( -1, 0); - - 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() - - -/* * show_artist_pulldown() * * Helper functions for album and artist functions @@ -205,7 +127,7 @@ function show_genre_pulldown ($genre, $complete) { $db_result = mysql_query($sql, $dbh); - echo "\n<select name=\"genre[]\" multiple=\"multiple\" size=\"7\">\n"; + echo "\n<select name=\"genre[]\" multiple=\"multiple\" size=\"6\">\n"; if ( ! $complete ) { $genre_info = get_genre_info( -1 ); |