<?php include_once(__DIR__ . '/../../api.php');$kj=json_decode($a,true);?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>金口诀排盘</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="applicable-device" content="pc,mobile">
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="date/list.css">
<script type="text/javascript" src="date/jquery-1.10.2.min.js"></script>
</head>
<body>

<article>
<section>
<div class="hd pp_more_s"><i></i>基本信息<span data-s="0">&or;</span></div>
<div class="baseinfo">
<div class="bd">
	<div class="item dis_flex">
			<div class="flex dis_flex">
				<span class="tit">姓名：</span>
				<div class="text flex"><?php echo $kj['bzname']?></div>
			</div>
			<div class="flex dis_flex">
				<span class="tit">性别：</span>
				<div class="text flex"><?php echo $kj['sex']?'男':'女'?></div>
			</div>
			<div class="flex dis_flex">
				<span class="tit">生年：</span>
				<div class="text flex"><?php echo $kj['birthyear']?></div>
			</div>
		</div>
		<?php if($kj['zty']):?>
		<div class="item dis_flex">
			<span class="tit">北京时：</span>
			<div class="text flex"><small>公历<?php echo $kj['glstr']?><br>农历<?php echo $kj['nlstr']?></small></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">太阳时：</span>
			<div class="text flex"><small>公历<?php echo $kj['truedatestr']?><br>农历<?php echo $kj['zty_nlstr']?></small></div>
		</div>
		<?php else:?>
		<div class="item dis_flex">
			<span class="tit">生辰：</span>
			<div class="text flex"><small>公历<?php echo $kj['glstr']?><br>农历<?php echo $kj['nlstr']?></small></div>
		</div>
		<?php endif;
		if(!empty($kj['area'])):?>
		<div class="item dis_flex">
			<span class="tit">出生地：</span>
			<div class="text flex">
				<?php echo $kj['area'];?>
			</div>
		</div>
		<?php endif;?>
		<div class="item dis_flex">
			<span class="tit">节气：</span>
			<div class="text flex"><small><?php echo $kj['jqstr'];?></small></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">四柱：</span>
			<div class="text flex"><font color="red"><?php echo $kj['ygz']?>&emsp;<?php echo $kj['mgz']?>&emsp;<?php echo $kj['dgz']?>&emsp;<?php echo $kj['hgz']?></font></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">旬空：</span>
			<div class="text flex"><font color="blue"><?php echo $kj['dxk']?></font>&emsp;四大空亡：<font color="blue"><?php echo $kj['kongmang']?></font></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">神煞：</span>
			<div class="text flex"><small>贵人-<?php echo $kj['dgshen']['gui']?>&emsp;日禄-<?php echo $kj['dgshen']['lu']?>&emsp;驿马-<?php echo $kj['ma']?>&emsp;桃花-<?php echo $kj['taohua']?></small></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">月将：</span>
			<div class="text flex"><font color="green"><?php echo $kj['yuej']?>将</font>&emsp;<?php if($kj['paixyear']):?><b>年命：</b><font color="green"><?php echo $kj['birygz']?></font>&emsp;<b>行年：</b><font color="green"><?php echo $kj['hangn']?></font><?php endif;?></div>
		</div>
	</div>
</div>
</section>
<section>
<div class="hd ui-cells"><i></i>盘式</div>
<div class="jkjpp">
<b>人元</b>： <?php echo $kj['renyuan'];?><br>
<b>贵神</b>： <?php echo $kj['guishen'][0];?>(<?php echo $kj['guishen'][1];?>)<font color="#0000FF"><?php echo $kj['yongyao']['gs'];?></font><br>
<b>将神</b>： <?php echo $kj['jiangs']['gz'];?>(<?php echo $kj['jiangs']['js'];?>)<font color="#0000FF"><?php echo $kj['yongyao']['js'];?></font><br>
<b>地分</b>： <?php echo $kj['df'];?>	
</div>
</section>
</article>

<script>
$('.pp_more_s').click(function(){
		var that=$(this).find('span');
		var s=that.data('s');
		if(s==0) that.html("&and;");
		else that.html("&or;");
		var d=(s+1)%2;
		that.data('s',d);
		$(this).next().slideToggle(500);
	}
);
</script>
</body>
</html>
<br><br>
<?php include_once(__DIR__ . '/../../footer.php');?>