ShuanghongS пре 1 година
родитељ
комит
8f10ce158b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      main_new_version.php

+ 2 - 2
main_new_version.php

@@ -182,9 +182,9 @@ switch ($action) {
         
         $date_type = strtolower($_REQUEST["date_type"]);
         if (isset($_REQUEST['date_start']) && !empty($_REQUEST['date_start']))
-            $sqlWhere .= " and $date_type >= '" . common::usDate2sqlDate($_REQUEST['date_start']) . " 00:00:00'";
+            $sqlWhere .= " and $date_type >= ''" . common::usDate2sqlDate($_REQUEST['date_start']) . " 00:00:00''";
         if (isset($_REQUEST['date_end']) && !empty($_REQUEST['date_end']))
-            $sqlWhere .= " and $date_type <= '" . common::usDate2sqlDate($_REQUEST['date_end']) . " 23:59:59'";
+            $sqlWhere .= " and $date_type <= ''" . common::usDate2sqlDate($_REQUEST['date_end']) . " 23:59:59''";
          
         $transportation = strtolower($_REQUEST["transportation"]);
         if(!is_array($transportation)){