summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-22 05:45:15 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-22 05:45:15 +0000
commit185630d92c74356946a2a0fe19748b41c9ba57de (patch)
tree9350caa11a10b59be8a5a720a4910242f5078a01 /lib/ui.lib.php
parentdf348122a7092a24a4ae5c04cf0b5b85bd750ae0 (diff)
downloadampache-185630d92c74356946a2a0fe19748b41c9ba57de.tar.gz
ampache-185630d92c74356946a2a0fe19748b41c9ba57de.tar.bz2
ampache-185630d92c74356946a2a0fe19748b41c9ba57de.zip
bedtime, added random box back in does not do anything thou... well besides taunt you with its not doing anythingness
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r--lib/ui.lib.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index ececefbb..13065075 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -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);