<?php include_once(__DIR__ . '/../../api.php');$r=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 $r['bzname']?></div>
			</div>
			<div class="flex dis_flex">
				<span class="tit">性别：</span>
				<div class="text flex"><?php echo $r['sex']?'男':'女'?></div>
			</div>
			<div class="flex dis_flex">
				<span class="tit">生年：</span>
				<div class="text flex"><?php echo $r['birthyear']?></div>
			</div>
		</div>
		<?php if($r['zty']):?>
		<div class="item dis_flex">
			<span class="tit">北京时：</span>
			<div class="text flex"><small>公历<?php echo $r['glstr']?><br>农历<?php echo $r['nlstr']?></small></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">太阳时：</span>
			<div class="text flex"><small>公历<?php echo $r['truedatestr']?><br>农历<?php echo $r['zty_nlstr']?></small></div>
		</div>
		<?php else:?>
		<div class="item dis_flex">
			<span class="tit">生辰：</span>
			<div class="text flex"><small>公历<?php echo $r['glstr']?><br>农历<?php echo $r['nlstr']?></small></div>
		</div>
		<?php endif;
		if(!empty($r['area'])):?>
		<div class="item dis_flex">
			<span class="tit">出生地：</span>
			<div class="text flex">
				<?php echo $r['area'];?>
			</div>
		</div>
		<?php endif;?>
		<div class="item dis_flex">
			<span class="tit">中气：</span>
			<div class="text flex"><small><?php echo $r['qstr'];?></small></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">四柱：</span>
			<div class="text flex"><font color="red"><?php echo $r['ygz']?>&emsp;<?php echo $r['mgz']?>&emsp;<?php echo $r['dgz']?>&emsp;<?php echo $r['hgz']?></font></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">旬空：</span>
			<div class="text flex"><font color="blue"><?php echo $r['yxk']?>&emsp;<?php echo $r['mxk']?>&emsp;<?php echo $r['dxk']?>&emsp;<?php echo $r['hxk']?></font></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">月将：</span>
			<div class="text flex"><font color="green"><?php echo $r['yuej']?>将</font>&emsp;<?php if($r['paixyear']):?><b>年命：</b><font color="green"><?php echo $r['birygz']?></font>&emsp;<b>行年：</b><font color="green"><?php echo $r['hangn']?></font><?php endif;?></div>
		</div>
	</div>
</div>
</section>
<section>
<div class="hd ui-cells pp_more_s"><i></i>天地命盘<span data-s="0">&or;</span></div>
<div class="lrpp">
<table width="100%" cellpadding="1" border="0" cellspacing="1" bgcolor="#009966">
<tr align="center" bgcolor="#FFFFFF">
     <td  width="25%"><font color="#CC9966"><?php echo $r['guishens'][6];?></font><br><?php echo $r['tianpan'][6];?><br>&emsp;&emsp;<font size="-4" color="#d5d5d5">巳宫</font></td>
     <td  width="25%"><font color="#CC9966"><?php echo $r['guishens'][7];?></font><br><?php echo $r['tianpan'][7];?><br>&emsp;&emsp;<font size="-4" color="#d5d5d5">午宫</font></td>
     <td  width="25%"><font color="#CC9966"><?php echo $r['guishens'][8];?></font><br><?php echo $r['tianpan'][8];?><br>&emsp;&emsp;<font size="-4" color="#d5d5d5">未宫</font></td>
     <td  width="25%"><font color="#CC9966"><?php echo $r['guishens'][9];?></font><br><?php echo $r['tianpan'][9];?><br><font size="-4" color="#d5d5d5">申宫</font>&emsp;&emsp;</td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
     <td><br><font color="#CC9966"><?php echo $r['guishens'][5];?></font>&nbsp;<?php echo $r['tianpan'][5];?>&emsp;&nbsp;<br>&emsp;&emsp;<font size="-4" color="#d5d5d5">辰宫</font></td>
     <td colspan="2" rowspan="2" bgcolor="">天地盘</td>
     <td><br>&emsp;&nbsp;<?php echo $r['tianpan'][10];?><font color="#CC9966">&nbsp;<?php echo $r['guishens'][10];?></font><br><font size="-4" color="#d5d5d5">酉宫</font>&emsp;&emsp;</td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
     <td><br><font color="#CC9966"><?php echo $r['guishens'][4];?></font>&nbsp;<?php echo $r['tianpan'][4];?>&emsp;&nbsp;<br>&emsp;&emsp;<font size="-4" color="#d5d5d5">卯宫</font></td>
     <td><br>&emsp;&nbsp;<?php echo $r['tianpan'][11];?>&nbsp;<font color="#CC9966"><?php echo $r['guishens'][11];?></font><br><font size="-4" color="#d5d5d5">戌宫</font>&emsp;&emsp;</td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
     <td>&emsp;&emsp;<font size="-4" color="#d5d5d5">寅宫</font><br><?php echo $r['tianpan'][3];?><br><font color="#CC9966"><?php echo $r['guishens'][3];?></font></td>
     <td>&emsp;&emsp;<font size="-4" color="#d5d5d5">丑宫</font><br><?php echo $r['tianpan'][2];?><br><font color="#CC9966"><?php echo $r['guishens'][2];?></font></td>
     <td>&emsp;&emsp;<font size="-4" color="#d5d5d5">子宫</font><br><?php echo $r['tianpan'][1];?><br><font color="#CC9966"><?php echo $r['guishens'][1];?></font></td>
     <td><font size="-4" color="#d5d5d5">亥宫</font>&emsp;&emsp;<br><?php echo $r['tianpan'][0];?><br><font color="#CC9966"><?php echo $r['guishens'][0];?></font></td>
</tr>
</table>	
</div>
<div class="hd"><i></i>四课</div>
<div class="skpp">
<?php for($i=3;$i>=0;$i--){echo $r['sik']['gs'][$i].'&emsp;&emsp;';}?><br>
<?php for($i=3;$i>=0;$i--){echo $r['sik']['sk'][$i].'&emsp;&emsp;';}?><br>
<?php for($i=3;$i>=0;$i--){echo $r['sik']['xk'][$i].'&emsp;&emsp;';}?><br>
</div>
<div class="hd"><i></i>三传</div>
<div class="skpp">
<?php for($i=0;$i<=2;$i++){
	echo $r['scname'][$i].'：'.$r['lq'][$i].'&emsp;'.$r['sctg'][$i].$r['chuan'][$i].'&emsp;'.$r['scgs'][$i].'<br>';
	}?>
</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');?>