$lang = $_GET['lang'];
if ($lang == "")
{
if (!$_SESSION['s_lang'] == "")
{
require ("lang_de.php");
}
else
{
$lang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2);
}
if ($lang=="de")
{
require ("lang_de.php");
}
else
{
require ("lang_en.php");
}
}
else
{
$_SESSION['s_lang'] = $lang;
require ("lang_".$_SESSION['s_lang'].".php");
if (!file_exists("lang_".$lang.".php"))
{
die("Sorry - Requested Language '$lang' not available");
}
else
{
require ("lang_".$lang.".php");
}
}
?>
include("db.php");
$ID = $_GET['CID'];
$jpg = ".jpg";
$Bild = $ID.$jpg;
$query = "Select * from trackings where CID = '$ID' order by CDNR , TNR";
$result = mysql_query($query);
$queryA = "SELECT musikarchiv.*, tontraeger.TTBEZ FROM musikarchiv INNER JOIN tontraeger ON musikarchiv.TT = tontraeger.T_T where ID = '$ID'";
$resultA = mysql_query($queryA);
$Album = mysql_fetch_array($resultA);
$ErgebnisseProSeite = 50;
if(!isset($_REQUEST['Pagestart']))
{
$AktuelleSeite = 0;
}
else
{
$AktuelleSeite = $_REQUEST['Pagestart'];
}
$VK = $_GET['vk'];
$R1 = $_GET['Stil'];
$R2 = $_GET['searchtext'];
$R3 = $_GET['searchwhere'];
$R4 = $_GET['since'];
$R5 = $_GET['medium'];
if ($R1 =="A")
if ($R5 =="All"){
switch ($R3) {
case 'A':
$querytotal = "SELECT * FROM musikarchiv where (`COMPOSER` Like '%$R2%' or `TITLE` Like '%$R2%' or `TTLABEL` Like '%$R2%') and YEAR(`DBDATUM`) >= '$R4'order by S,COMPOSER,TITLE";
break;
case 'C':
$querytotal = "SELECT * FROM musikarchiv where (`COMPOSER` Like '%$R2%') and YEAR(`DBDATUM`) >= '$R4' order by S,COMPOSER,TITLE";
break;
case 'T':
$querytotal = "SELECT * FROM musikarchiv where `TITLE` Like '%$R2%' and YEAR(`DBDATUM`) >= '$R4' order by S,COMPOSER,TITLE";
break;
case 'L':
$querytotal = "SELECT * FROM musikarchiv where `TTLABEL` Like '%$R2%' and YEAR(`DBDATUM`) >= '$R4' order by S,COMPOSER";
break;
}
}
else
switch ($R3) {
case 'A':
$querytotal = "SELECT * FROM musikarchiv where (`COMPOSER` Like '%$R2%' or `TITLE` Like '%$R2%' or `TTLABEL` Like '%$R2%') and YEAR(`DBDATUM`) >= '$R4'and `TT` = '$R5' order by S,COMPOSER,TITLE";
break;
case 'C':
$querytotal = "SELECT * FROM musikarchiv where (`COMPOSER` Like '%$R2%') and YEAR(`DBDATUM`) >= '$R4' and `TT` = '$R5' order by S,COMPOSER,TITLE";
break;
case 'T':
$querytotal = "SELECT * FROM musikarchiv where `TITLE` Like '%$R2%' and YEAR(`DBDATUM`) >= '$R4' and `TT` = '$R5' order by S,COMPOSER,TITLE";
break;
case 'L':
$querytotal = "SELECT * FROM musikarchiv where `TTLABEL` Like '%$R2%' and YEAR(`DBDATUM`) >= '$R4' and `TT` = '$R5' order by S,COMPOSER";
break;
}
else
if ($R2==""){
if ($R5=="All")
{
$querytotal = "SELECT * FROM musikarchiv where `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' order by S,COMPOSER,TITLE";
}
else
{
$querytotal = "SELECT * FROM musikarchiv where `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' and `TT` = '$R5' order by S,COMPOSER,TITLE";
}
}
else
if ($R5 =="All"){
switch ($R3) {
case 'A':
$querytotal = "SELECT * FROM musikarchiv where (`COMPOSER` Like '%$R2%' or `TITLE` Like '%$R2%') and `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' order by S,COMPOSER,TITLE";
break;
case 'C':
$querytotal = "SELECT * FROM musikarchiv where `COMPOSER` Like '%$R2%' and `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' order by S,COMPOSER,TITLE";
break;
case 'T':
$querytotal = "SELECT * FROM musikarchiv where `TITLE` Like '%$R2%' and `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' order by S,COMPOSER,TITLE";
break;
case 'L':
$querytotal = "SELECT * FROM musikarchiv where `TTLABEL` Like '%$R2%' and `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' order by S,COMPOSER,TITLE";
break;
}
}
else
switch ($R3) {
case 'A':
$querytotal = "SELECT * FROM musikarchiv where (`COMPOSER` Like '%$R2%' or `TITLE` Like '%$R2%') and `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' and `TT` = '$R5' order by S,COMPOSER,TITLE";
break;
case 'C':
$querytotal = "SELECT * FROM musikarchiv where `COMPOSER` Like '%$R2%' and `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' and `TT` = '$R5' order by S,COMPOSER,TITLE";
break;
case 'T':
$querytotal = "SELECT * FROM musikarchiv where `TITLE` Like '%$R2%' and `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' and `TT` = '$R5' order by S,COMPOSER,TITLE";
break;
case 'L':
$querytotal = "SELECT * FROM musikarchiv where `TTLABEL` Like '%$R2%' and `S` = '$R1' and YEAR(`DBDATUM`) >= '$R4' and `TT` = '$R5' order by S,COMPOSER,TITLE";
break;
}
?>
$jahr = date("Y");?>
Track - Details
:
:
:
: ()
:
:
sf_no
$Number = mysql_num_rows($result);
if ($Number==0)
echo "
No Tracklisting found
";
else
while ($line = mysql_fetch_array($result)) { ?>
}
?>
$stand = mysql_query("select DATE_FORMAT(`STAND`, '%d. %M %Y') AS `dbdatum` from db_stand");
$line = mysql_fetch_array($stand);
?>
echo $line [0]?>
//Abfrage mit den Parametern der Startseite erstellen
$naviquery = mysql_query($querytotal);
//Abfrageergebnis durchlaufen
while($myline = mysql_fetch_array($naviquery))
{
//wenn ID der Abfrage mit dem aktuellen Datensatz übereinstimmt
if ($myline['ID'] == $ID)
{
//gemerkte Variable ist vorherige Datensatz-ID
$music_b = $templine;
//Einen Datensatz weitergehen
$myLine= mysql_fetch_array($naviquery);
//und da ist dann der nächste Datensatz-ID
$music_v = $myLine['ID'];
break;
}
else
{
//Noch nix gefunden - also Datensatz-ID erstmal merken
$templine = $myline['ID'];
}
}
//Falls auf dem ersten Datensatz, nicht weiterspringen
if ($music_b == "")
{
$music_b = $ID;
}
//Falls auf dem letzten Datensatz, nicht weiterspringen
if ($music_v == "")
{
$music_v = $ID;
}
?>