{"id":64737,"date":"2025-01-18T03:51:08","date_gmt":"2025-01-17T19:51:08","guid":{"rendered":"https:\/\/0592ban.cn\/?p=64737"},"modified":"2025-01-18T03:51:08","modified_gmt":"2025-01-17T19:51:08","slug":"1978%e5%b9%b4%e8%85%8a%e6%9c%88%e5%8d%81%e5%85%ab%e5%87%ba%e7%94%9f%e5%b1%9e%e9%a9%ac%e4%ba%ba%e7%9a%84%e6%98%9f%e5%ba%a7-1978%e5%b9%b4%e8%85%8a%e6%9c%88%e4%ba%8c%e5%8d%81%e5%85%ab%e6%98%af%e9%98%b3","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2025\/01\/18\/1978%e5%b9%b4%e8%85%8a%e6%9c%88%e5%8d%81%e5%85%ab%e5%87%ba%e7%94%9f%e5%b1%9e%e9%a9%ac%e4%ba%ba%e7%9a%84%e6%98%9f%e5%ba%a7-1978%e5%b9%b4%e8%85%8a%e6%9c%88%e4%ba%8c%e5%8d%81%e5%85%ab%e6%98%af%e9%98%b3\/","title":{"rendered":"1978\u5e74\u814a\u6708\u5341\u516b\u51fa\u751f\u5c5e\u9a6c\u4eba\u7684\u661f\u5ea7 (1978\u5e74\u814a\u6708\u4e8c\u5341\u516b\u662f\u9633\u5386\u591a\u5c11\u53f7\u5462)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"1978\u5e74\u814a\u6708\u5341\u516b\u51fa\u751f\u5c5e\u9a6c\u4eba\u7684\u661f\u5ea7\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2025\/01\/19479fce-3ffd-4eb0-bc02-b3a29a246f5c.jpg\"\/><\/p>\n<p>\n \u6839\u636e\u9633\u5386\u51fa\u751f\u65e5\u671f\u8ba1\u7b97\u661f\u5ea7\u3002\n<\/p>\n<form method=\"post\">\n <label for=\"birthday\"><br \/>\n  \u51fa\u751f\u65e5\u671f\uff08\u9633\u5386\uff09\uff1a<br \/>\n <\/label><br \/>\n <input id=\"birthday\" name=\"birthday\" required=\"\" type=\"date\"\/><br \/>\n <input type=\"submit\" value=\"\u8ba1\u7b97\"\/><br \/>\n<\/form>\n<p><!--?php\n  if (isset($_POST['birthday'])) {\n    $birthday = $_POST['birthday'];\n    $date = new DateTime($birthday);\n    $month = $date---><br \/>\nformat(&#8216;m&#8217;);<br \/>\n    $day = $date-&gt;format(&#8216;d&#8217;);<\/p>\n<p>    $constellation = null;<br \/>\n    \/\/ \u6839\u636e\u6708\u4efd\u548c\u65e5\u671f\u5224\u65ad\u661f\u5ea7<br \/>\n    if ($month == 1) {<br \/>\n      if ($day &lt;= 19) {<br \/>\n        $constellation = &#8220;\u6469\u7faf<br \/>\n      } else {<br \/>\n        $constellation = &#8220;\u5de8\u87f9\u5ea7&#8221;;<br \/>\n      }<br \/>\n    } elseif ($month == 7) {<br \/>\n      if ($day &lt;= 22) {<br \/>\n        $constellation = &#8220;\u5de8\u87f9\u5ea7&#8221;;<br \/>\n      } else {<br \/>\n        $constellation = &#8220;\u72ee\u5b50\u5ea7&#8221;;<br \/>\n      }<br \/>\n    } elseif ($month == 8) {<br \/>\n      if ($day &lt;= 22) {<br \/>\n        $constellation = &#8220;\u72ee\u5b50\u5ea7&#8221;;<br \/>\n      } else {<br \/>\n        $constellation = &#8220;\u5904\u5973\u5ea7&#8221;;<br \/>\n      }<br \/>\n    } elseif ($month == 9) {<br \/>\n      if ($day &lt;= 22) {<br \/>\n        $constellation = &#8220;\u5904\u5973\u5ea7&#8221;;<br \/>\n      } else {<br \/>\n        $constellation = &#8220;\u5929\u79e4\u5ea7&#8221;;<br \/>\n      }<br \/>\n    } elseif ($month == 10) {<br \/>\n      if ($day &lt;= 22) {<br \/>\n        $constellation = &#8220;\u5929\u79e4\u5ea7&#8221;;<br \/>\n      } else {<br \/>\n        $constellation = &#8220;\u5929\u874e\u5ea7&#8221;;<br \/>\n      }<br \/>\n    } elseif ($month == 11) {<br \/>\n      if ($day &lt;= 21) {<br \/>\n        $constellation = &#8220;\u5929\u874e\u5ea7&#8221;;<br \/>\n      } else {<br \/>\n        $constellation = &#8220;\u5c04\u624b\u5ea7&#8221;;<br \/>\n      }<br \/>\n    } else {<br \/>\n      if ($day &lt;= 21) {<br \/>\n        $constellation = &#8220;\u5c04\u624b\u5ea7&#8221;;<br \/>\n      } else {<br \/>\n        $constellation = &#8220;\u6469\u7faf\u5ea7&#8221;;<br \/>\n      }<br \/>\n    }<\/p>\n<p>    \/\/ \u8f93\u51fa\u661f\u5ea7<br \/>\n    echo &#8221;<\/p>\n<p>\n \u60a8\u7684\u661f\u5ea7\u662f\uff1a$constellation\n<\/p>\n<p>&#8220;;<br \/>\n  }<br \/>\n  ?&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6839\u636e\u9633\u5386\u51fa\u751f\u65e5\u671f\u8ba1\u7b97\u661f\u5ea7\uff0c\u51fa\u751f\u65e5\u671f\uff0c\u9633\u5386\uff0cformat\uff0cm\uff0c$day=$date\uff0c&#038;gt\uff0cformat\uff0cd\uff0c$constellation=null\uff0c\u6839\u636e\u6708\u4efd\u548c\u65e5\u671f\u5224\u65ad\u661f\u5ea7if\uff0c$month==1\uff0cif\uff0c$day&#038;lt\uff0c=19\uff0c$constellation=\u6469\u7faf\uff0celse\uff0c$constellation=\u5de8\u87f9\u5ea7\uff0celse&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":64736,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28220],"class_list":["post-64737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-28220"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/64737","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=64737"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/64737\/revisions"}],"predecessor-version":[{"id":64738,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/64737\/revisions\/64738"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/64736"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=64737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=64737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=64737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}