ShuanghongS 1 vuosi sitten
vanhempi
commit
df03557ef0
1 muutettua tiedostoa jossa 13 lisäystä ja 0 poistoa
  1. 13 0
      main_new_version.php

+ 13 - 0
main_new_version.php

@@ -630,6 +630,19 @@ switch ($action) {
             $ps = 10;
 
         $sqlWhere = ' where ' . common::searchExtendHandNew("ocean", $_SESSION["ONLINE_USER"]);
+        $transportation = $_REQUEST["transportation"];
+        if(!is_array($transportation)){
+            $transportation = array($transportation);
+        }
+
+        $list = array();
+        if(count($transportation) == 1 && strtolower($transportation[0]) == 'all' ){
+            $transportation = array("Sea","Air","Road");         
+        }else{
+            if(!in_array("Sea",$transportation)){
+                $sqlWhere .= " and 1<>1 ";
+            }
+        }
         // test dome 
         // $_POST['is_default'] = "no";
         // $_POST['date_start'] =null;