{"id":87,"date":"2020-07-11T23:29:41","date_gmt":"2020-07-11T15:29:41","guid":{"rendered":"http:\/\/std.puiching.edu.mo\/~pcmsams\/?page_id=87"},"modified":"2020-07-11T23:31:16","modified_gmt":"2020-07-11T15:31:16","slug":"airquality","status":"publish","type":"page","link":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/weatherdata\/airquality\/","title":{"rendered":"\u7a7a\u6c23\u8cea\u91cf\u8a18\u9304"},"content":{"rendered":"<!DOCTYPE html>\r\n<html>\r\n  <head>\r\n    <meta charset=\"utf-8\">\r\n    <meta name=\"description\" content=\"\u8cc7\u6599\u75312020\u5e747\u670811\u65e5\u8d77\uff0c\u63d0\u4f9b\u6fb3\u9580\u904e\u53bb\u7a7a\u6c23\u8cea\u91cf\u6c34\u5e73\u548c\u7a7a\u6c23\u6c61\u67d3\u7269\u6fc3\u5ea6\u6578\u64da\u8a18\u9304\u8868\u683c\u548c\u5716\u8868\">\r\n    <script src=\"..\/..\/..\/js\/jquery-3.5.1.min.js\"><\/script>\r\n    <script src=\"..\/..\/..\/js\/highchart\/highcharts.js\"><\/script>\r\n    <script src=\"..\/..\/..\/js\/highchart\/data.js\"><\/script>\r\n    <script src=\"..\/..\/..\/js\/highchart\/highchartFunction.js\"><\/script>\r\n  <link rel=\"stylesheet\" href=\"..\/..\/..\/css\/weatherData\/searchElement.css\">\r\n  <\/head>\r\n  <body>\r\n    <div class=\"mainTitle\">\r\n      \u6c23\u8c61\u5c40\u7a7a\u6c23\u8cea\u91cf\u76e3\u6e2c\u6578\u64da\u8a18\u9304\r\n    <\/div>\r\n    <div class=\"mainContainer\">\r\n      <div class=\"card\" id=\"\">\r\n        <div class=\"cardContent\">\r\n          <form id=\"smgForm\">\r\n            <fieldset>\r\n              \u958b\u59cb\u65e5\u671f\uff1a<input type=\"date\" name=\"startDate\" id=\"startDate\" min=\"2020-07-10\" max=2026-04-27>\r\n              \u7d50\u675f\u65e5\u671f\uff1a<input type=\"date\" name=\"endDate\" id=\"endDate\" min=\"2020-07-10\" max=2026-04-27>\r\n              \u76e3\u6e2c\u7ad9\uff1a<select name=\"station\" id=\"station\">\r\n                <optgroup label=\"\u55ae\u7ad9\">\r\n                  <option value=\"po\">\u6fb3\u9580\u8def\u908a\u7ad9<\/option>\r\n                  <option value=\"en\">\u6fb3\u9580\u9ad8\u5bc6\u5ea6\u4f4f\u5b85\u5340<\/option>\r\n                  <option value=\"tc\">\u6c39\u4ed4\u9ad8\u5bc6\u5ea6\u4f4f\u5b85\u5340<\/option>\r\n                  <option value=\"tg\">\u6c39\u4ed4\u4e00\u822c\u6027<\/option>\r\n                  <option value=\"cd\">\u8def\u74b0\u4e00\u822c\u6027<\/option>\r\n                  <option value=\"kh\">\u4e5d\u6fb3\u8def\u908a\u7ad9<\/option>\r\n                <\/optgroup>\r\n                <optgroup label=\"\u591a\u7ad9\">\r\n                  <option value=\"all\">\u5168\u6fb3\u5404\u7ad9<\/option>\r\n                <\/optgroup>\r\n              <\/select>\r\n              <input type=\"submit\" id=\"submit\">\r\n            <\/fieldset>\r\n          <\/form>\r\n          <div id=\"form-message\">\r\n            <p class=\"selectRemark\">\r\n              \u8acb\u9078\u64c7\r\n            <\/p>\r\n          <\/div>\r\n        <\/div>\r\n        <\/div>\r\n      <\/div>\r\n      <div class=\"card reminder\">\r\n        <div class=\"cardTitle\">\r\n          \u5099\u8a3b\r\n        <\/div>\r\n        <div class=\"cardContent\">\r\n          <ul>\r\n            <li>\u6c23\u8c61\u5c40\u65bc2021\u5e741\u67081\u65e5\u8d77\u6536\u7dca\u7a7a\u6c23\u8cea\u91cf\u6307\u6578\u6a19\u6e96\uff0c\u4e26\u4e0d\u518d\u767c\u5e03\u7a7a\u6c23\u8cea\u91cf\u65e5\u6307\u6578\u548c\u6236\u5916\u6d3b\u52d5\u5efa\u8b70\u3002<\/li>\r\n          <\/ul>\r\n        <\/div>\r\n      <\/div>\r\n    <\/div>\r\n    <script type=\"text\/javascript\">\r\n    $(\"body\").delegate(\".removeSearchStationDataChart\", \"click\", function(){\r\n          $(\"#form-message\").html(\"<p class='selectRemark'>\u8acb\u9078\u64c7<\/p>\");\r\n    });\r\n\r\n    $(\"#smgForm\").submit(function(event){\r\n      event.preventDefault();\r\n      var startDate = $(\"#startDate\").val();\r\n      var endDate = $(\"#endDate\").val();\r\n      var station = $(\"#station\").val();\r\n      if(startDate==\"\"){\r\n        $(\"#form-message\").html(\"<p class='selectRemark' style='color:red;'>\u8acb\u9078\u958b\u59cb\u65e5\u671f<\/p>\");\r\n      }else if(endDate==\"\"){\r\n        $(\"#form-message\").html(\"<p class='selectRemark' style='color:red;'>\u8acb\u9078\u7d50\u675f\u65e5\u671f<\/p>\");\r\n      }else if(endDate<startDate){\r\n        $(\"#form-message\").html(\"<p class='selectRemark' style='color:red;'>\u7d50\u675f\u65e5\u671f\u65e9\u65bc\u958b\u59cb\u65e5\u671f<\/p>\");\r\n      }else{\r\n        $(\"#form-message\").html(\"<p class='selectRemark'>\u6578\u64da\u6293\u53d6\u4e2d\uff0c\u8acb\u7a0d\u7b49<\/p>\");\r\n      var url = '..\/..\/..\/pages\/weatherData\/airQuality\/search.php?startDate='+startDate+'&endDate='+endDate+'&stationId='+station;\r\n      xmlhttp = new XMLHttpRequest();\r\n      xmlhttp.onreadystatechange = function() {\r\n          if (this.readyState == 4 && this.status == 200) {\r\n              $(\"#form-message\").html(this.responseText);\r\n              $(\"#form-message\").append(\"<p class='removeSearchStationDataChart'>\u9084\u539f\u5716\u8868<\/p>\");\r\n\r\n          }\r\n    }\r\n    };\r\n      xmlhttp.open(\"GET\",url ,true);\r\n      xmlhttp.send();\r\n    });\r\n    <\/script>\r\n  <\/body>\r\n<\/html>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":25,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-87","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/wp-json\/wp\/v2\/pages\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":2,"href":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/wp-json\/wp\/v2\/pages\/87\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/wp-json\/wp\/v2\/pages\/87\/revisions\/89"}],"up":[{"embeddable":true,"href":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/wp-json\/wp\/v2\/pages\/25"}],"wp:attachment":[{"href":"https:\/\/std.puiching.edu.mo\/~pcmsams\/index.php\/wp-json\/wp\/v2\/media?parent=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}