summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-21 08:03:20 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-21 08:03:20 +0000
commit975bbcebe9c68ac729dd051b008cf6c615d443c2 (patch)
tree46737108023c5d65797d39f748c53cff0c160e10 /modules
parent742f6bfa6a7b285db898da220e1799fbb9b79ded (diff)
downloadampache-975bbcebe9c68ac729dd051b008cf6c615d443c2.tar.gz
ampache-975bbcebe9c68ac729dd051b008cf6c615d443c2.tar.bz2
ampache-975bbcebe9c68ac729dd051b008cf6c615d443c2.zip
new interface which breaks all previous themes... and current themes, still under development
Diffstat (limited to 'modules')
-rw-r--r--modules/init.php2
-rw-r--r--modules/lib.php15
2 files changed, 9 insertions, 8 deletions
diff --git a/modules/init.php b/modules/init.php
index 69d3480c..adc87ac6 100644
--- a/modules/init.php
+++ b/modules/init.php
@@ -83,7 +83,7 @@ if (!$results['conf']['allow_stream_playback']) {
}
$results['conf']['web_path'] = $http_type . $_SERVER['HTTP_HOST'] . $results['conf']['web_path'];
-$results['conf']['version'] = '3.3.2-Alpha4 (Build 002)';
+$results['conf']['version'] = '3.3.2-Alpha4 (Build 003)';
$results['conf']['catalog_file_pattern']= 'mp3|mpc|m4p|m4a|mp4|aac|ogg|rm|wma|asf|flac|spx';
$results['libglue']['local_table'] = 'session';
$results['libglue']['local_sid'] = 'id';
diff --git a/modules/lib.php b/modules/lib.php
index 6a825255..162d60e3 100644
--- a/modules/lib.php
+++ b/modules/lib.php
@@ -125,21 +125,22 @@ function show_genre_pulldown ($genre, $complete, $lines= "'10' multiple='multipl
} // show_genre_pulldown()
-/*
- * show_catalog_pulldown()
- *
- * Set complete=1 if you want the entire catalog list (including disabled)
+/**
+ * show_catalog_pulldown
+ * This has been changed, first is the name of the
+ * dropdown select, the second is the style to be applied
*
*/
-function show_catalog_pulldown ($catalog, $complete) {
- global $settings;
+function show_catalog_pulldown ($name='catalog',$style) {
+
+
// find the genres we have in use
$sql = "SELECT id,name FROM catalog ORDER BY name";
$db_result = mysql_query($sql, dbh());
- echo "\n<select name=\"catalog\">\n";
+ echo "\n<select name=\"" . $name . "\" style=\"" . $style . "\">\n";
echo " <option value=\"-1\" selected=\"selected\">All</option>\n";