{"id":29275,"date":"2024-09-01T21:42:22","date_gmt":"2024-09-01T13:42:22","guid":{"rendered":"https:\/\/0592ban.cn\/?p=29275"},"modified":"2024-09-01T21:42:22","modified_gmt":"2024-09-01T13:42:22","slug":"%e5%86%9c%e5%8e%861988%e5%b9%b411%e6%9c%8821%e6%97%a5%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-%e5%86%9c%e5%8e%861988%e5%b9%b412%e6%9c%888%e6%97%a5%e6%98%af%e9%98%b3%e5%8e%86%e5%87%a0%e6%9c%88","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/09\/01\/%e5%86%9c%e5%8e%861988%e5%b9%b411%e6%9c%8821%e6%97%a5%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-%e5%86%9c%e5%8e%861988%e5%b9%b412%e6%9c%888%e6%97%a5%e6%98%af%e9%98%b3%e5%8e%86%e5%87%a0%e6%9c%88\/","title":{"rendered":"\u519c\u53861988\u5e7411\u670821\u65e5\u662f\u4ec0\u4e48\u661f\u5ea7 (\u519c\u53861988\u5e7412\u67088\u65e5\u662f\u9633\u5386\u51e0\u6708\u51e0\u65e5)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u519c\u53861988\u5e7412\u67088\u65e5\u662f\u9633\u5386\u51e0\u6708\u51e0\u65e5\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/09\/c3f0f143-75a1-43dd-b962-e5baeb7f2714.jpg\"\/><\/p>\n<form action=\"\/\u661f\u5ea7\u67e5\u8be2.php\" method=\"post\">\n <label for=\"\u516c\u5386\u51fa\u751f\u65f6\u95f4\"><br \/>\n  \u516c\u5386\u51fa\u751f\u65f6\u95f4\uff1a<br \/>\n <\/label><br \/>\n <input id=\"\u516c\u5386\u51fa\u751f\u65f6\u95f4\" name=\"\u516c\u5386\u51fa\u751f\u65f6\u95f4\" type=\"date\"\/><br \/>\n<\/form>\n<p><!--?php\n    if (isset($_POST['\u516c\u5386\u51fa\u751f\u65f6\u95f4'])) {\n      $\u51fa\u751f\u65f6\u95f4 = $_POST['\u516c\u5386\u51fa\u751f\u65f6\u95f4'];\n      $\u661f\u5ea7 = get_zodiac_sign($\u51fa\u751f\u65f6\u95f4);\n      echo \"\u4f60\u7684\u661f\u5ea7\u662f\uff1a$\u661f\u5ea7\";\n    }\n\n    function get_zodiac_sign($\u51fa\u751f\u65f6\u95f4) {\n      $date = new DateTime($\u51fa\u751f\u65f6\u95f4);\n      $month = $date---><br \/>\nformat(&#8216;m&#8217;);<br \/>\n      $day = $date-&gt;format(&#8216;d&#8217;);<\/p>\n<p>      switch ($month) {<br \/>\n        case &#8216;1&#8217;:<br \/>\n          if ($day &lt;20) {<br \/>\n            return &#8216;\u6469\u7faf\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u6c34\u74f6\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8216;2&#8217;:<br \/>\n          if ($day &lt; 19) {<br \/>\n            return &#8216;\u6c34\u74f6\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u53cc\u9c7c\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8216;3&#8217;:<br \/>\n          if ($day &lt; 21) {<br \/>\n            return &#8216;\u53cc\u9c7c\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u767d\u7f8a\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8216;4&#8217;:<br \/>\n          if ($day &lt; 20) {<br \/>\n            return &#8216;\u767d\u7f8a\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u91d1\u725b\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8216;5&#8217;:<br \/>\n          if ($day &lt; 21) {<br \/>\n            return &#8216;\u91d1\u725b\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u53cc\u5b50\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8216;6&#8217;:<br \/>\n          if ($day &lt; 21) {<br \/>\n            return &#8216;\u53cc\u5b50\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u5de8\u87f9\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8216;7&#8217;:<br \/>\n          if ($day &lt; 23) {<br \/>\n            return &#8216;\u5de8\u87f9\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u72ee\u5b50\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8216;8&#8217;:<br \/>\n          if ($day &lt; 23) {<br \/>\n            return &#8216;\u72ee\u5b50\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u5904\u5973\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8216;9&#8217;:<br \/>\n          if ($day &lt; 23) {<br \/>\n            return &#8216;\u5904\u5973\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u5929\u79e4\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8217;10&#8217;:<br \/>\n          if ($day &lt; 23) {<br \/>\n            return &#8216;\u5929\u79e4\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u5929\u874e\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8217;11&#8217;:<br \/>\n          if ($day &lt; 22) {<br \/>\n            return &#8216;\u5929\u874e\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u5c04\u624b\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n        case &#8217;12&#8217;:<br \/>\n          if ($day &lt; 22) {<br \/>\n            return &#8216;\u5c04\u624b\u5ea7&#8217;;<br \/>\n          } else {<br \/>\n            return &#8216;\u6469\u7faf\u5ea7&#8217;;<br \/>\n          }<br \/>\n          break;<br \/>\n      }<br \/>\n    }<br \/>\n  ?&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u516c\u5386\u51fa\u751f\u65f6\u95f4\uff0cformat\uff0cm\uff0c$day=$date\uff0c&#038;gt\uff0cformat\uff0cd\uff0cswitch\uff0c$month\uff0ccase1\uff0cif\uff0c$day&#038;lt\uff0c20\uff0creturn\u6469\u7faf\u5ea7\uff0celse\uff0creturn\u6c34\u74f6\u5ea7\uff0cbreak\uff0ccase2\uff0cif\uff0c$day&#038;lt\uff0c19\uff0creturn\u6c34\u74f6\u5ea7\uff0celse\uff0creturn\u53cc\u9c7c\u5ea7\uff0cbreak\uff0ccas&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":29274,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12289],"class_list":["post-29275","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-12289"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/29275","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=29275"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/29275\/revisions"}],"predecessor-version":[{"id":29276,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/29275\/revisions\/29276"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/29274"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=29275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=29275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=29275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}