Commit 3082bd6e authored by Nico Schallehn's avatar Nico Schallehn

Test für Jahr

parent e2364d0b
......@@ -68,6 +68,7 @@ class MediaDBViewerAPI{
$Where .= ($first?"":" AND ").'acodecger'.($GET_arr['Deutsch']?" IS NOT ":" IS ").'null';
$first = false;
}
/* diesen CODE-Block kürzer schreiben!! */
if(isset($GET_arr['acodecger']) ){
$Where .= ($first?"":" AND ").'acodecger = "'.$GET_arr['acodecger'].'"';
$first = false;
......@@ -99,11 +100,9 @@ class MediaDBViewerAPI{
if(isset($GET_arr['checked']) ){
if($GET_arr['checked'] == "NULL"){
$Where .= ($first?"":" AND ").'checked IS NULL';
}
else{
$Where .= ($first?"":" AND ").'checked = "'.$GET_arr['checked'].'"';
}
$first = false;
}
......@@ -114,7 +113,17 @@ class MediaDBViewerAPI{
$first = false;
}
// größergleich oder kleinergleich Filter:
if(isset($GET_arr['Jahr'])){
if (((substr($GET_arr['Jahr'],0,1) == "<") OR (substr($GET_arr['Jahr'],0,1) == ">")) AND !strpos($GET_arr['Jahr'], ",")) {
// Kleiner oder Größer und kein Komma!
$Where .= ($first?"":" AND ").'year ="'.$GET_arr['Jahr'].'"';
}else if(strpos($GET_arr['Jahr'], ",")>0){
$jahrArr = explode(",", $GET_arr['Jahr']);
$Where .= ($first?"":" AND ").'year =<"'.$jahrArr[0].'"';
$Where .= ($first?"":" AND ").'year =<"'.$jahrArr[1].'"';
}
}
// In Filter:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment