
<meta name='keywords' content='八字排盘,四柱排盘,八字排盘系统,在线八字排盘,排八字,在线排八字,八字,命理,国学,算卦,排盘,易经,六十四卦,奇门,命运,运势,测算,姻缘,婚姻'/><meta charset='UTF-8'>
<meta name='Description' content='可提供八字排盘免费详批，八字排盘算命是一种根据八字用天干地支表示人出生的年、月、日、时，依照查四柱间之五行生克制化、刑冲会合为推命重点，生辰八字排盘免费查询，小到性格、大到发展都能够从这上面看出端倪一二，八字在线排盘，让你提前知晓一生命格。'/>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>神煞反推系统</title>
<a href='/' style='text-decoration:none;' target='_blank'><h2 style='text-align:center;color:#CC0000;'>神煞反推系统</h2></a>
<style>.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;}.loader{width:50px;height:50px;border:5px solid lightgray;border-top-color:dodgerblue;border-radius:50%;animation:spin 1s infinite linear;}@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}</style>
<style>
  .center {
    display: flex;
    justify-content: center;
    align-items: center;
    
  }
</style>
<script type='text/javascript' src='date/date/jquery.min3.7.1.js'></script>
<link href='date/date/select2.min4.0.8.css' rel='stylesheet' />
<script src='date/date/select2.min4.0.8.js'></script>
<div class='overlay' id='overlay' style='display: none;'>
<div class='loader'></div>
</div>
<link type='text/css' href='date/smcsss.css' rel='stylesheet'/>
<table class='form-table' border='0' align='center' cellpadding='1' cellspacing='1'>
<tr>
<td class='tdleft tdbg'><div>
年柱：<select name='ng' style='font-size: 9pt' id='ng' onchange="city('yg')"><option value='0'>随机</option></select>
月柱：<select name='yg' style='font-size: 9pt' id='yg'><option value='0'>随机</option></select>
日柱：<select name='rg' style='font-size: 9pt' id='rg' onchange="city('sg')"><option value='0'>随机</option></select>
时柱：<select name='sg' style='font-size: 9pt' id='sg'></select>
</div></td>
</tr>
<tr>
<td class='tdleft tdbg'><div>
指定神煞：
<select class='combox' id='wg' name='wg' multiple> 
<optgroup label='传统吉神'>
<option value="十灵日">十灵日</option><option value="绝夫魁罡">绝夫魁罡</option><option value="绝妻魁罡">绝妻魁罡</option><option value="白虎魁罡">白虎魁罡</option><option value="金神">金神</option><option value="词馆">词馆</option><option value="天德贵人">天德贵人</option><option value="月德贵人">月德贵人</option><option value="将星">将星</option><option value="华盖">华盖</option><option value="红鸾">红鸾</option><option value="桃花">桃花</option><option value="天喜">天喜</option><option value="驿马">驿马</option><option value="天医">天医</option><option value="学堂">学堂</option><option value="福星贵人">福星贵人</option><option value="太极贵人">太极贵人</option><option value="天厨贵人">天厨贵人</option><option value="文昌贵人">文昌贵人</option><option value="国印贵人">国印贵人</option><option value="天官贵人">天官贵人</option><option value="红艳">红艳</option><option value="金舆">金舆</option><option value="天乙贵人">天乙贵人</option><option value="禄神">禄神</option><option value="日德贵人">日德贵人</option><option value="天德合">天德合</option><option value="三奇贵人">三奇贵人</option><option value="官印贵人">官印贵人</option><option value="德秀贵人">德秀贵人</option>
</optgroup>
<optgroup label='传统凶神'>
<option value="白虎兼刃">白虎兼刃</option><option value="阴阳差错">阴阳差错</option><option value="丧门">丧门</option><option value="六厄">六厄</option><option value="病符">病符</option><option value="灾煞">灾煞</option><option value="劫煞">劫煞</option><option value="寡宿">寡宿</option><option value="吊客">吊客</option><option value="孤辰">孤辰</option><option value="亡神">亡神</option><option value="披麻">披麻</option><option value="死符">死符</option><option value="羊刃">羊刃</option><option value="童子煞">童子煞</option><option value="孤鸾寡鹊">孤鸾寡鹊</option><option value="勾煞">勾煞</option><option value="绞煞">绞煞</option><option value="元辰">元辰</option><option value="空亡">空亡</option><option value="十恶大败">十恶大败</option><option value="四废">四废</option><option value="自坐红艳">自坐红艳</option><option value="天罗地网">天罗地网</option>
</optgroup>
<optgroup label='小儿关煞'>
<option value="断桥关">断桥关</option><option value="娘娘关">娘娘关</option><option value="短命关">短命关</option><option value="断肠关">断肠关</option><option value="撞命关">撞命关</option><option value="汤火关">汤火关</option><option value="悬梁关">悬梁关</option><option value="雷公关">雷公关</option><option value="天吊关">天吊关</option><option value="四季关">四季关</option><option value="千日关">千日关</option><option value="土牢关">土牢关</option><option value="四柱关">四柱关</option><option value="急脚关">急脚关</option><option value="金锁关">金锁关</option><option value="落井关">落井关</option><option value="五鬼关">五鬼关</option><option value="铁锁关">铁锁关</option><option value="血光关">血光关</option><option value="阎罗关">阎罗关</option><option value="百日关">百日关</option><option value="鬼门关">鬼门关</option><option value="休庵关">休庵关</option><option value="格局关">格局关</option><option value="朱雀关">朱雀关</option><option value="浴盆关">浴盆关</option><option value="基败关">基败关</option><option value="直难关">直难关</option><option value="鸡飞关">鸡飞关</option><option value="铁蛇关">铁蛇关</option><option value="水火关">水火关</option>
</optgroup>
<optgroup label='民俗吉神'>
<option value="天赦">天赦</option><option value="原局桃花">原局桃花</option><option value="阴注阳受">阴注阳受</option><option value="六秀日">六秀日</option><option value="八专日">八专日</option><option value="火德贵人">火德贵人</option><option value="拱禄">拱禄</option><option value="攀鞍">攀鞍</option><option value="乞丐贵人">乞丐贵人</option><option value="财神贵人">财神贵人</option><option value="六亲贵人">六亲贵人</option><option value="真桃花">真桃花</option><option value="正桃花">正桃花</option><option value="日贵星">日贵星</option><option value="夜贵星">夜贵星</option><option value="旺夫煞">旺夫煞</option>
</optgroup>
<optgroup label='民俗凶神'>
<option value="纸簸箕">纸簸箕</option><option value="天转杀">天转杀</option><option value="地转杀">地转杀</option><option value="孤鸾煞">孤鸾煞</option><option value="埋儿煞">埋儿煞</option><option value="天灾煞">天灾煞</option><option value="自缢煞">自缢煞</option><option value="五鬼星">五鬼星</option><option value="水溺煞">水溺煞</option><option value="阴阳煞">阴阳煞</option><option value="流霞">流霞</option><option value="飞刃">飞刃</option><option value="统缢煞">统缢煞</option><option value="绝火烟">绝火烟</option><option value="苦焦">苦焦</option><option value="骨髓破">骨髓破</option><option value="隔角煞">隔角煞</option><option value="铁板煞">铁板煞</option><option value="九丑日">九丑日</option><option value="指背煞">指背煞</option><option value="天刑煞">天刑煞</option><option value="破碎煞">破碎煞</option><option value="伤死煞">伤死煞</option><option value="破率">破率</option><option value="斗牛煞">斗牛煞</option><option value="活曜">活曜</option><option value="天屠煞">天屠煞</option><option value="五鬼精神煞">五鬼精神煞</option><option value="裁锋煞">裁锋煞</option><option value="墓杀">墓杀</option><option value="地狱">地狱</option><option value="独火">独火</option><option value="浮沉杀">浮沉杀</option><option value="妨害杀">妨害杀</option><option value="天耗">天耗</option><option value="平头煞">平头煞</option><option value="悬梁煞">悬梁煞</option><option value="血刃">血刃</option><option value="血支">血支</option><option value="长生煞">长生煞</option><option value="裸体桃花">裸体桃花</option><option value="贫穷煞">贫穷煞</option><option value="再嫁煞">再嫁煞</option><option value="披头煞">披头煞</option><option value="吞啖煞">吞啖煞</option><option value="绝梁煞">绝梁煞</option><option value="铁秋煞">铁秋煞</option><option value="华盖自墓">华盖自墓</option><option value="寡妇煞">寡妇煞</option><option value="铁扫帚">铁扫帚</option><option value="冰消瓦解">冰消瓦解</option><option value="将军一箭">将军一箭</option><option value="将军二箭">将军二箭</option><option value="将军三箭">将军三箭</option><option value="将军四箭">将军四箭</option><option value="将军弓">将军弓</option><option value="天扫星">天扫星</option><option value="地扫星">地扫星</option><option value="冲天杀">冲天杀</option><option value="破煞">破煞</option><option value="六畜">六畜</option><option value="挂剑煞">挂剑煞</option><option value="天火煞">天火煞</option><option value="苦难煞">苦难煞</option><option value="残花煞">残花煞</option><option value="红煞日">红煞日</option><option value="黄煞日">黄煞日</option><option value="天难日">天难日</option><option value="穷苦日">穷苦日</option><option value="威胁日">威胁日</option><option value="望门寡煞">望门寡煞</option><option value="偷生煞">偷生煞</option><option value="无后煞">无后煞</option><option value="劫路">劫路</option><option value="夫妻煞">夫妻煞</option><option value="厅堂煞">厅堂煞</option><option value="暗金煞">暗金煞</option><option value="扫铁床">扫铁床</option><option value="连珠刃">连珠刃</option><option value="刃头鬼">刃头鬼</option><option value="刃头财">刃头财</option><option value="离母煞">离母煞</option><option value="离父煞">离父煞</option><option value="三丘五墓">三丘五墓</option><option value="四大空亡">四大空亡</option><option value="官符">官符</option><option value="马倒禄绝">马倒禄绝</option>
</optgroup>
<optgroup label='辅助神煞'>
<option value="害太岁">害太岁</option><option value="犯天狗">犯天狗</option><option value="破太岁">破太岁</option><option value="刑太岁">刑太岁</option><option value="倾国倾城">倾国倾城</option><option value="值太岁">值太岁</option><option value="冲太岁">冲太岁</option><option value="欺君之罪">欺君之罪</option><option value="淫魔降世">淫魔降世</option><option value="红颜祸乱">红颜祸乱</option><option value="快马加鞭">快马加鞭</option><option value="东抄西转">东抄西转</option><option value="驳婚煞">驳婚煞</option><option value="真太岁">真太岁</option><option value="枭水食火">枭水食火</option><option value="枭金食木">枭金食木</option><option value="枭木食土">枭木食土</option><option value="枭土食水">枭土食水</option><option value="枭火食金">枭火食金</option><option value="年运空亡">年运空亡</option><option value="月运空亡">月运空亡</option><option value="日运空亡">日运空亡</option><option value="时运空亡">时运空亡</option><option value="年日空亡">年日空亡</option><option value="日时空亡">日时空亡</option><option value="年天克地冲">年天克地冲</option><option value="月天克地冲">月天克地冲</option><option value="日天克地冲">日天克地冲</option><option value="时天克地冲">时天克地冲</option><option value="追魂铲度I型">追魂铲度I型</option><option value="追魂铲度II型">追魂铲度II型</option><option value="追魂铲度III型">追魂铲度III型</option><option value="鬼限I型">鬼限I型</option><option value="鬼限II型">鬼限II型</option><option value="大运冲堤">大运冲堤</option><option value="十干败亡">十干败亡</option><option value="随林禄马">随林禄马</option><option value="禄马同槽">禄马同槽</option>
</optgroup>
</select>
</div></td>
</tr>
<tr>
<td class='tdleft tdbg'><div>
性别：<select name='sex' id='sex' ><option value='0'>男</option><option value='1'>女</option></select>
宫位：<select name='jx' id='jx' ><option value='0'>全局匹配</option><option value='1'>原局匹配</option><option value='2'>流年匹配</option><option value='3'>年柱匹配</option><option value='4'>月柱匹配</option><option value='5'>日柱匹配</option><option value='6'>时柱匹配</option></select>
</div></td>
</tr>
</table>
<table class='form-table' border='0' align='center' cellpadding='1' cellspacing='1'>
<div align='center'>
<input type='button' value='开始推演' class='sub_m' onclick='pd()'/>
</div>
</table>
<div id='jd'></div>
<script>
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define('select2/i18n/zh-CN',[],function(){return{errorLoading:function(){return'无法载入结果。'},inputTooLong:function(e){var t=e.input.length-e.maximum,n='请删除'+t+'个字符';return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n='请再输入至少'+t+'个字符';return n},loadingMore:function(){return'载入更多结果…'},maximumSelected:function(e){var t='最多只能选择'+e.maximum+'个项目';return t},noResults:function(){return'未找到结果'},searching:function(){return'搜索中…'}}}),{define:e.define,require:e.require}})();

function g(){
ng=document.getElementById('ng').value;
yg=document.getElementById('yg').value;
rg=document.getElementById('rg').value;
sg=document.getElementById('sg').value;
wg=document.getElementById('wg').value;
jx=document.getElementById('jx').value;
sex=document.getElementById('sex').value;
rgg=document.getElementById('rg');
wgg=document.getElementById('wg');
jxg=document.getElementById('jx');
sexg=document.getElementById('sex');
overlay=document.getElementById('overlay');
}

function createXmlHttp(){
if(window.XMLHttpRequest){
xmlHttp=new XMLHttpRequest()
}else{
xmlHttp=new ActiveXObject('Microsoft.XMLHTTP')
}}

function pd(){
g();
document.getElementById('jd').innerHTML='';
overlay.style.display='flex';

var wgV=[];
$('.combox option:selected').each(function(){
wgV.push($(this).val());
});

var urls='api.php?SYLX=SSFT&ng='+ng+'&yg='+yg+'&rg='+rg+'&sg='+sg+'&wg='+wgV.join('-')+'&jx='+jx+'&sex='+sex+'&maxts=1';
createXmlHttp();
xmlHttp.open('GET',urls,true);
xmlHttp.onreadystatechange=function writeSource(){
if(xmlHttp.readyState==4){
overlay.style.display='none';
var scc=JSON.parse(xmlHttp.responseText);

csss='';
if(scc['errmsg']==0){
csss+="<div class='center'>以下八字含有“<font color='orange'>"+wgV.join("-")+"</font>”神煞，点击可跳转至排盘界面</a></div>";
for(var i=0;i<Object.keys(scc[0]).length;i++){
var e=scc[0][i];

csss+="<div class='center'><a href='show.php?name=神煞反推&sex="+sex+"&DateType=4&ng="+e[0]+'&yg='+e[1]+'&rg='+e[2]+'&sg='+e[3]+"' onclick=\"return confirm('确认排盘"+e[0]+" "+e[1]+" "+e[2]+" "+e[3]+"吗？');\">"+e[0]+" "+e[1]+" "+e[2]+" "+e[3]+"</a></div>";
}

}else{
csss+="<div class='center'>该轮算力负载已达100%，查无结果。</div>";
}
csss+='运算负载:'+scc[2]+'%';
document.getElementById('jd').innerHTML =csss;
xmlHttp.responseText=null;}};
xmlHttp.send(null);}



function city(gg){
if(gg=='yg'){
var ng=document.getElementById('ng').value;
document.getElementById('yg').options.length=0;
var opt=new Option('随机','0');
document.getElementById('yg').options.add(opt);
if(ng!=0){
ng=ng.substring(0,1);
yz=['寅','卯','辰','巳','午','未','申','酉','戌','亥','子','丑'];
var lng={
'甲':['丙','丁','戊','己','庚','辛','壬','癸','甲','乙','丙','丁'],
'己':['丙','丁','戊','己','庚','辛','壬','癸','甲','乙','丙','丁'],
'乙':['戊','己','庚','辛','壬','癸','甲','乙','丙','丁','戊','己'],
'庚':['戊','己','庚','辛','壬','癸','甲','乙','丙','丁','戊','己'],
'丙':['庚','辛','壬','癸','甲','乙','丙','丁','戊','己','庚','辛'],
'辛':['庚','辛','壬','癸','甲','乙','丙','丁','戊','己','庚','辛'],
'丁':['壬','癸','甲','乙','丙','丁','戊','己','庚','辛','壬','癸'],
'壬':['壬','癸','甲','乙','丙','丁','戊','己','庚','辛','壬','癸'],
'戊':['甲','乙','丙','丁','戊','己','庚','辛','壬','癸','甲','乙'],
'癸':['甲','乙','丙','丁','戊','己','庚','辛','壬','癸','甲','乙']
};

for(var i=0;i< lng[ng].length;i++){var opt=new Option(lng[ng][i]+yz[i],lng[ng][i]+yz[i]);
document.getElementById('yg').options.add(opt);}
}
}
if(gg=='sg'){
var ng=document.getElementById('rg').value;
ng=ng.substring(0,1);
document.getElementById('sg').options.length=0;
var opt=new Option('随机','0');
document.getElementById('sg').options.add(opt);
if(ng!=0){
sz=['子','丑','寅','卯','辰','巳','午','未','申','酉','戌','亥'];
var lrg={
'甲':['甲','乙','丙','丁','戊','己','庚','辛','壬','癸','甲','乙'],
'己':['甲','乙','丙','丁','戊','己','庚','辛','壬','癸','甲','乙'],
'乙':['丙','丁','戊','己','庚','辛','壬','癸','甲','乙','丙','丁'],
'庚':['丙','丁','戊','己','庚','辛','壬','癸','甲','乙','丙','丁'],
'丙':['戊','己','庚','辛','壬','癸','甲','乙','丙','丁','戊','己'],
'辛':['戊','己','庚','辛','壬','癸','甲','乙','丙','丁','戊','己'],
'丁':['庚','辛','壬','癸','甲','乙','丙','丁','戊','己','庚','辛'],
'壬':['庚','辛','壬','癸','甲','乙','丙','丁','戊','己','庚','辛'],
'戊':['壬','癸','甲','乙','丙','丁','戊','己','庚','辛','壬','癸'],
'癸':['壬','癸','甲','乙','丙','丁','戊','己','庚','辛','壬','癸']
};

for(var i=0;i< lrg[ng].length;i++){var opt=new Option(lrg[ng][i]+sz[i],lrg[ng][i]+sz[i]);
document.getElementById('sg').options.add(opt);}
}
}
}
window.onload = function () {
//界面加载完成事件
function bzft(id,lj){
demoP=document.getElementById(id);
let list=['甲子','甲戌','甲申','甲午','甲辰','甲寅','乙丑','乙亥','乙酉','乙未','乙巳','乙卯','丙寅','丙子','丙戌','丙申','丙午','丙辰','丁卯','丁丑','丁亥','丁酉','丁未','丁巳','戊辰','戊寅','戊子','戊戌','戊申','戊午','己巳','己卯','己丑','己亥','己酉','己未','庚午','庚辰','庚寅','庚子','庚戌','庚申','辛未','辛巳','辛卯','辛丑','辛亥','辛酉','壬申','壬午','壬辰','壬寅','壬子','壬戌','癸酉','癸未','癸巳','癸卯','癸丑','癸亥'];
list.some(item=>{
if(item===lj){
demoP.innerHTML=demoP.innerHTML+"<option value='"+item+"' selected>"+item+"</option>";
}else{
demoP.innerHTML=demoP.innerHTML+"<option value='"+item+"'>"+item+'</option>';
}
})
}
bzft('ng','0');
bzft('rg','0');
city('yg');
city('sg');
}
$(function(){
$('#wg').select2({
placeholder:'请选择或搜索1-3个神煞',
width:'60%',
maximumSelectionLength:3,
language:'zh-CN',
});
});
</script>
<?php include 'footer.php'; ?>