{"id":2312,"date":"2024-05-30T22:18:31","date_gmt":"2024-05-30T14:18:31","guid":{"rendered":"https:\/\/0592ban.cn\/?p=2312"},"modified":"2024-05-30T22:18:31","modified_gmt":"2024-05-30T14:18:31","slug":"%e8%85%8a%e6%9c%88%e5%88%9d%e4%b8%89-%e5%87%ba%e7%94%9f%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-1990%e5%b9%b412%e6%9c%8820%e6%97%a5-%e8%85%8a%e6%9c%88%e5%88%9d%e4%b8%89%e5%87%ba%e7%94%9f","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/05\/30\/%e8%85%8a%e6%9c%88%e5%88%9d%e4%b8%89-%e5%87%ba%e7%94%9f%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-1990%e5%b9%b412%e6%9c%8820%e6%97%a5-%e8%85%8a%e6%9c%88%e5%88%9d%e4%b8%89%e5%87%ba%e7%94%9f\/","title":{"rendered":"\u814a\u6708\u521d\u4e09 \u51fa\u751f\u662f\u4ec0\u4e48\u661f\u5ea7 1990\u5e7412\u670820\u65e5 (\u814a\u6708\u521d\u4e09\u51fa\u751f\u7684\u7537\u5b69\u547d\u8fd0\u600e\u4e48\u6837)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u814a\u6708\u521d\u4e09\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/05\/f1720b92-e2f4-4cb8-8947-ec377f8c04c5.jpg\"\/><\/p>\n<form action=\"\u661f\u5ea7\u67e5\u8be2.html\" method=\"post\">\n <label for=\"year\"><br \/>\n  \u51fa\u751f\u5e74\u4efd\uff1a<br \/>\n <\/label><br \/>\n <input id=\"year\" name=\"year\" required=\"\" type=\"number\"\/><br \/>\n <br \/>\n <label for=\"month\"><br \/>\n  \u51fa\u751f\u6708\u4efd\uff08\u9633\u5386\uff09\uff1a<br \/>\n <\/label><br \/>\n <input id=\"month\" name=\"month\" required=\"\" type=\"number\"\/><br \/>\n <br \/>\n <label for=\"day\"><br \/>\n  \u51fa\u751f\u65e5\u671f\uff08\u9633\u5386\uff09\uff1a<br \/>\n <\/label><br \/>\n <input id=\"day\" name=\"day\" required=\"\" type=\"number\"\/><br \/>\n <br \/>\n <input type=\"submit\" value=\"\u67e5\u8be2\"\/><br \/>\n<\/form>\n<p><!--?php\nif ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n  $year = $_POST[\"year\"];\n  $month = $_POST[\"month\"];\n  $day = $_POST[\"day\"];\n\n  $constellations = array(\n    \"\u6469\u7faf\u5ea7\" =--><br \/>\narray(&#8220;12\u670821\u65e5&#8221;, &#8220;1\u670821\u65e5&#8221;),<br \/>\n    &#8220;\u6c34\u74f6\u5ea7&#8221; =&gt; array(&#8220;1\u670820\u65e5&#8221;, &#8220;2\u670820\u65e5&#8221;),<br \/>\n    &#8220;\u53cc\u9c7c\u5ea7&#8221; =&gt; array(&#8220;2\u670818\u65e5&#8221;, &#8220;3\u670821\u65e5&#8221;),<br \/>\n    &#8220;\u767d\u7f8a\u5ea7&#8221; =&gt; array(&#8220;3\u670820\u65e5&#8221;, &#8220;4\u670821\u65e5&#8221;),<br \/>\n    &#8220;\u91d1\u725b\u5ea7&#8221; =&gt; array(&#8220;4\u670819\u65e5&#8221;, &#8220;5\u670822\u65e5&#8221;),<br \/>\n    &#8220;\u53cc\u5b50\u5ea7&#8221; =&gt; array(&#8220;5\u670820\u65e5&#8221;, &#8220;6\u670822\u65e5&#8221;),<br \/>\n    &#8220;\u5de8\u87f9\u5ea7&#8221; =&gt; array(&#8220;6\u670821\u65e5&#8221;, &#8220;7\u670824\u65e5&#8221;),<br \/>\n    &#8220;\u72ee\u5b50\u5ea7&#8221; =&gt; array(&#8220;7\u670822\u65e5&#8221;, &#8220;8\u670824\u65e5&#8221;),<br \/>\n    &#8220;\u5904\u5973\u5ea7&#8221; =&gt; array(&#8220;8\u670822\u65e5&#8221;, &#8220;9\u670824\u65e5&#8221;),<br \/>\n    &#8220;\u5929\u79e4\u5ea7&#8221; =&gt; array(&#8220;9\u670822\u65e5&#8221;, &#8220;10\u670824\u65e5&#8221;),<br \/>\n    &#8220;\u5929\u874e\u5ea7&#8221; =&gt; array(&#8220;10\u670823\u65e5&#8221;, &#8220;11\u670823\u65e5&#8221;),<br \/>\n    &#8220;\u5c04\u624b\u5ea7&#8221; =&gt; array(&#8220;11\u670822\u65e5&#8221;, &#8220;12\u670823\u65e5&#8221;)<br \/>\n  );<\/p>\n<p>  $constellation = null;<br \/>\n  foreach ($constellations as $name =&gt; $dates) {<br \/>\n    if ($month == 1 &amp;&amp; $day &gt;= $dates[0] || $month == 12 &amp;&amp; $day &lt;= $dates[1]) {<br \/>\n      $constellation = $name;<br \/>\n      break;<br \/>\n    } else if ($month &gt; 1 &amp;&amp; $month &lt;= 12 &amp;&amp; $day &gt;= $dates[0] &amp;&amp; $day &lt;= $dates[1]) {<br \/>\n      $constellation = $name;<br \/>\n      break;<br \/>\n    }<br \/>\n  }<\/p>\n<p>  if ($constellation) {<br \/>\n    echo &#8221;<\/p>\n<h2>\n \u60a8\u7684\u661f\u5ea7\u662f\uff1a{$constellation}<br \/>\n<\/h2>\n<p>&#8220;;<br \/>\n  } else {<br \/>\n    echo &#8221;<\/p>\n<h2>\n \u8f93\u5165\u7684\u65e5\u671f\u4e0d\u6b63\u786e<br \/>\n<\/h2>\n<p>&#8220;;<br \/>\n  }<br \/>\n}<br \/>\n?&gt;<\/p>\n<p> $dates) {<br \/>\n      echo &#8220;&#8221;;<br \/>\n    }<br \/>\n    ?&gt;<\/p>\n<table>\n<thead>\n<tr>\n<th>\n    \u661f\u5ea7\n   <\/th>\n<th>\n    \u65e5\u671f\uff08\u9633\u5386\uff09\n   <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n  <!--?php\n    foreach ($constellations as $name =--><\/p>\n<tr>\n<td>\n    {$name}\n   <\/td>\n<td>\n    {$dates[0]} &#8211; {$dates[1]}\n   <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u51fa\u751f\u5e74\u4efd\uff0c\u51fa\u751f\u6708\u4efd\uff0c\u9633\u5386\uff0c\u51fa\u751f\u65e5\u671f\uff0c\u9633\u5386\uff0carray\uff0c12\u670821\u65e5\uff0c1\u670821\u65e5\uff0c\u6c34\u74f6\u5ea7=&#038;gt\uff0carray\uff0c1\u670820\u65e5\uff0c2\u670820\u65e5\uff0c\u53cc\u9c7c\u5ea7=&#038;gt\uff0carray\uff0c2\u670818\u65e5\uff0c3\u670821\u65e5\uff0c\u767d\u7f8a\u5ea7=&#038;gt\uff0carray\uff0c3\u670820\u65e5\uff0c4\u670821\u65e5\uff0c\u91d1\u725b\u5ea7=&#038;gt\uff0carray\uff0c4\u670819\u65e5\uff0c5\u670822\u65e5\uff0c\u53cc\u5b50\u5ea7=&#038;gt\uff0carray\uff0c5\u67082&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":2311,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1392,1393,1391],"class_list":["post-2312","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-1392","tag-1393","tag-1391"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/2312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2312"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/2312\/revisions"}],"predecessor-version":[{"id":2313,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/2312\/revisions\/2313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/2311"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}