ShuanghongS 1 yıl önce
ebeveyn
işleme
27b371ed41
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4 4
      main_new_version.php

+ 4 - 4
main_new_version.php

@@ -181,10 +181,10 @@ switch ($action) {
         $sqlWhere = " " . $sqlWhere;
         
         $date_type = strtolower($_REQUEST["date_type"]);
-        if (isset($_POST['date_start']) && !empty($_POST['date_start']))
-            $sqlWhere .= " and $date_type >= '" . common::usDate2sqlDate($_POST['date_start']) . " 00:00:00'";
-        if (isset($_POST['date_end']) && !empty($_POST['date_end']))
-            $sqlWhere .= " and $date_type <= '" . common::usDate2sqlDate($_POST['date_end']) . " 23:59:59'";
+        if (isset($_REQUEST['date_start']) && !empty($_REQUEST['date_start']))
+            $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'";
          
         $transportation = strtolower($_REQUEST["transportation"]);
         if(!is_array($transportation)){