{"id":32351,"date":"2024-09-08T22:34:15","date_gmt":"2024-09-08T14:34:15","guid":{"rendered":"https:\/\/0592ban.cn\/?p=32351"},"modified":"2024-09-08T22:34:15","modified_gmt":"2024-09-08T14:34:15","slug":"%e5%86%9c%e5%8e%86%e5%87%ba%e7%94%9f%e5%b9%b4%e6%9c%88%e6%97%a5%e7%ae%97%e5%91%bd-%e5%86%9c%e5%8e%86%e5%87%ba%e7%94%9f%e5%b9%b4%e6%9c%88%e6%97%a5%e6%80%8e%e4%b9%88%e7%ae%97","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/09\/08\/%e5%86%9c%e5%8e%86%e5%87%ba%e7%94%9f%e5%b9%b4%e6%9c%88%e6%97%a5%e7%ae%97%e5%91%bd-%e5%86%9c%e5%8e%86%e5%87%ba%e7%94%9f%e5%b9%b4%e6%9c%88%e6%97%a5%e6%80%8e%e4%b9%88%e7%ae%97\/","title":{"rendered":"\u519c\u5386\u51fa\u751f\u5e74\u6708\u65e5\u7b97\u547d (\u519c\u5386\u51fa\u751f\u5e74\u6708\u65e5\u600e\u4e48\u7b97)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u519c\u5386\u51fa\u751f\u5e74\u6708\u65e5\u7b97\u547d\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/09\/f1239f25-a42c-445b-a544-99e6d2eb2872.jpg\"\/><\/p>\n<form action=\"result.php\" method=\"post\">\n<table>\n<tbody>\n<tr>\n<th>\n     \u51fa\u751f\u65e5\u671f\uff08\u519c\u5386\uff09\n    <\/th>\n<td>\n     <input name=\"birthdate\" type=\"date\" value=\"1990-11-05\"\/>\n    <\/td>\n<\/tr>\n<tr>\n<th>\n     \u51fa\u751f\u65f6\u8fb0\n    <\/th>\n<td>\n     <input name=\"birthtime\" type=\"time\" value=\"05:00\"\/>\n    <\/td>\n<\/tr>\n<tr>\n<th>\n     \u6027\u522b\n    <\/th>\n<td>\n     <input checked=\"\" name=\"gender\" type=\"radio\" value=\"male\"\/><br \/>\n     \u7537<br \/>\n     <input name=\"gender\" type=\"radio\" value=\"female\"\/><br \/>\n     \u5973\n    <\/td>\n<\/tr>\n<tr>\n<td>\n     <input type=\"submit\" value=\"\u7b97\u547d\"\/>\n    <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/form>\n<p><!--?php\nif (isset($_POST['birthdate']) && isset($_POST['birthtime']) && isset($_POST['gender'])) {\n  $birthdate = $_POST['birthdate'];\n  $birthtime = $_POST['birthtime'];\n  $gender = $_POST['gender'];\n\n  \/\/ \u5c06\u519c\u5386\u8f6c\u6362\u4e3a\u516c\u5386\n  $lunarDate = new LunarDate($birthdate, $birthtime);\n  $solarDate = $lunarDate---><br \/>\ngetSolarDate();<\/p>\n<p>  \/\/ \u83b7\u53d6\u516b\u5b57<br \/>\n  $solarYear = $solarDate[&#8216;year&#8217;];<br \/>\n  $solarMonth = $solarDate[&#8216;month&#8217;];<br \/>\n  $solarDay = $solarDate[&#8216;day&#8217;];<br \/>\n  $solarHour = $solarDate[&#8216;hour&#8217;];<\/p>\n<p>  $eightCharacters = getEightCharacters($solarYear, $solarMonth, $solarDay, $solarHour);<\/p>\n<p>  \/\/ \u4e94\u884c\u5206\u6790<br \/>\n  $fiveElements = analyzeFiveElements($eightCharacters);<\/p>\n<p>  \/\/ \u5341\u795e\u5206\u6790<br \/>\n  $tenGods = analyzeTenGods($eightCharacters);<\/p>\n<p>  \/\/ \u5927\u8fd0\u5206\u6790<br \/>\n  $major \u8fd0 = analyzeMajor \u8fd0($eightCharacters);<\/p>\n<p>  \/\/ \u6d41\u5e74\u5206\u6790<br \/>\n  $currentYear = date(&#8216;Y&#8217;);<br \/>\n  $currentLuck = analyzeCurrentYearLuck($eightCharacters, $currentYear);<br \/>\n?&gt;<\/p>\n<div class=\"result\">\n<h2>\n  \u751f\u8fb0\u516b\u5b57<br \/>\n <\/h2>\n<ul>\n<li>\n   \u516c\u5386\u51fa\u751f\u65e5\u671f\uff1a<br \/>\n   <!--?php echo $solarDate['date']; ?-->\n  <\/li>\n<li>\n   \u519c\u5386\u51fa\u751f\u65e5\u671f\uff1a<br \/>\n   <!--?php echo $lunarDate---><br \/>\n   getDate(); ?&gt;\n  <\/li>\n<li>\n   \u51fa\u751f\u65f6\u8fb0\uff1a<br \/>\n   <!--?php echo $birthtime; ?-->\n  <\/li>\n<li>\n   \u516b\u5b57\uff1a<br \/>\n   <!--?php echo implode(' ', $eightCharacters); ?-->\n  <\/li>\n<\/ul>\n<h2>\n  \u4e94\u884c\u5206\u6790<br \/>\n <\/h2>\n<ul>\n<li>\n   \u91d1\uff1a<br \/>\n   <!--?php echo $fiveElements['gold']; ?-->\n  <\/li>\n<li>\n   \u6728\uff1a<br \/>\n   <!--?php echo $fiveElements['wood']; ?-->\n  <\/li>\n<li>\n   \u6c34\uff1a<br \/>\n   <!--?php echo $fiveElements['water']; ?-->\n  <\/li>\n<li>\n   \u706b\uff1a<br \/>\n   <!--?php echo $fiveElements['fire']; ?-->\n  <\/li>\n<li>\n   \u571f\uff1a<br \/>\n   <!--?php echo $fiveElements['earth']; ?-->\n  <\/li>\n<\/ul>\n<h2>\n  \u5341\u795e\u5206\u6790<br \/>\n <\/h2>\n<ul>\n<li>\n   \u65e5\u4e3b\uff1a<br \/>\n   <!--?php echo $tenGods['self']; ?-->\n  <\/li>\n<li>\n   \u6b63\u5b98\uff1a<br \/>\n   <!--?php echo $tenGods['official']; ?-->\n  <\/li>\n<li>\n   \u504f\u5b98\uff1a<br \/>\n   <!--?php echo $tenGods['unofficial']; ?-->\n  <\/li>\n<li>\n   \u6b63\u5370\uff1a<br \/>\n   <!--?php echo $tenGods['seal']; ?-->\n  <\/li>\n<li>\n   \u504f\u5370\uff1a<br \/>\n   <!--?php echo $tenGods['side seal']; ?-->\n  <\/li>\n<li>\n   \u6b63\u8d22\uff1a<br \/>\n   <!--?php echo $tenGods['money']; ?-->\n  <\/li>\n<li>\n   \u504f\u8d22\uff1a<br \/>\n   <!--?php echo $tenGods['side money']; ?-->\n  <\/li>\n<li>\n   \u98df\u795e\uff1a<br \/>\n   <!--?php echo $tenGods['food'];?-->\n  <\/li>\n<li>\n   \u4f24\u5b98\uff1a<br \/>\n   <!--?php echo $tenGods['injury']; ?-->\n  <\/li>\n<li>\n   \u6bd4\u80a9\uff1a<br \/>\n   <!--?php echo $tenGods['companion']; ?-->\n  <\/li>\n<li>\n   \u52ab\u8d22\uff1a<br \/>\n   <!--?php echo $tenGods['robbery']; ?-->\n  <\/li>\n<\/ul>\n<h2>\n  \u5927\u8fd0\u5206\u6790<br \/>\n <\/h2>\n<ul>\n  <!--?php foreach ($major \u8fd0 as $luck) { ?--><\/p>\n<li>\n   <!--?php echo $luck['age']; ?--><br \/>\n   \u5c81~<br \/>\n   <!--?php echo $luck['age'] + 9; ?--><br \/>\n   \u5c81\uff1a<br \/>\n   <!--?php echo $luck['luck']; ?-->\n  <\/li>\n<p>  <!--?php } ?-->\n <\/ul>\n<h2>\n  <!--?php echo $currentYear; ?--><br \/>\n  \u5e74\u6d41\u5e74\u8fd0\u52bf<br \/>\n <\/h2>\n<p>\n  <!--?php echo $currentLuck; ?-->\n <\/p>\n<\/div>\n<p><!--?php\n}\n?--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u51fa\u751f\u65e5\u671f\uff0c\u519c\u5386\uff0c\u51fa\u751f\u65f6\u8fb0\u6027\u522b\u7537\u5973getSolarDate\uff0c\u83b7\u53d6\u516b\u5b57$solarYear=$solarDate[year]\uff0c$solarMonth=$solarDate[month]\uff0c$solarDay=$solarDate[day]\uff0c$solarHour=$solarDate[hour]\uff0c$eightCharacters=ge&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":32350,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13373],"class_list":["post-32351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-13373"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/32351","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=32351"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/32351\/revisions"}],"predecessor-version":[{"id":32352,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/32351\/revisions\/32352"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/32350"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=32351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=32351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=32351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}