<?php include_once(__DIR__ . '/../../api.php');$bg=json_decode($a,true);?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $bg['bzname']?>六爻排盘</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">&and;</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 $bg['bzname']?></div>
			</div>
			<div class="flex dis_flex">
				<span class="tit">性别：</span>
				<div class="text flex"><?php echo $bg['sex']?'男':'女'?></div>
			</div>
			<div class="flex dis_flex">
				<span class="tit">占事：</span>
				<div class="text flex"><?php echo $bg['anything']?></div>
			</div>
		</div>
		<?php if($bg['zty']):?>
		<div class="item dis_flex">
			<span class="tit">北京时：</span>
			<div class="text flex"><small>公历<?php echo $bg['glstr']?><br>农历<?php echo $bg['nlstr']?></small></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">太阳时：</span>
			<div class="text flex"><small>公历<?php echo $bg['truedatestr']?><br>农历<?php echo $bg['zty_nlstr']?></small></div>
		</div>
		<?php else:?>
		<div class="item dis_flex">
			<span class="tit">卦时：</span>
			<div class="text flex"><small>公历<?php echo $bg['glstr']?><br>农历<?php echo $bg['nlstr']?></small></div>
		</div>
		<?php endif;
		if(!empty($bg['area'])):?>
		<div class="item dis_flex">
			<span class="tit">起卦地：</span>
			<div class="text flex">
				<?php echo $bg['area'];?>
			</div>
		</div>
		<?php endif;?>
		<div class="item dis_flex">
			<span class="tit">节气：</span>
			<div class="text flex"><small><?php echo $bg['prejqname'];?><br><?php echo $bg['curjqname'];?></small></div>
		</div>
		<div class="item dis_flex">
			<span class="tit">八字：</span>
			<div class="text flex"><font color="red"><?php echo $bg['ygz']."&emsp;".$bg['mgz']."&emsp;".$bg['dgz']."&emsp;".$bg['hgz'];?></font></div>
		</div>
		<div class="item dis_flex">
			<div class="text flex">驿马:<?php echo $bg['maxing'];?>&emsp;桃花:<?php echo $bg['taohua'];?>&emsp;日禄:<?php echo $bg['lu'];?>&emsp;贵人:<?php echo $bg['guiren'][0].$bg['guiren'][1];?></div>
		</div>
	</div>
</div>
</section>
<section>
<div class="hd ui-cells"><i></i>六爻卦盘<span>日空：<?php echo $bg['xkong'];?></span></div>
<div class="pp6y clearfix">
	<ul>
	<li>
	<p><b>
	<?php echo $bg['bagua_pp'][0][0];?>
	</b></p><p>
	<?php echo $bg['bagua_pp'][0][1];?>
	</p><p>
	<?php echo $bg['bagua_pp'][0][2];?>
	</p><p>
	<?php echo $bg['bagua_pp'][0][3];?>
	</p><p>
	<?php echo $bg['bagua_pp'][0][4];?>
	</p><p>
	<?php echo $bg['bagua_pp'][0][5];?>
	</p><p>
	<?php echo $bg['bagua_pp'][0][6];?>
	</p>
</li>
	<?php 
	$benclass="class='beng1'";
	$bianclass="class='bian1'";
	if($bg['isfu']):
	$benclass="class='beng0'";
	$bianclass="class='bian0'";
	?>
	<li class="fu">
	<p><b>
	<?php echo $bg['bagua_pp'][1][0];?>
	</b></p><p>
	<?php echo $bg['bagua_pp'][1][1];?>
	</p><p>
	<?php echo $bg['bagua_pp'][1][2];?>
	</p><p>
	<?php echo $bg['bagua_pp'][1][3];?>
	</p><p>
	<?php echo $bg['bagua_pp'][1][4];?>
	</p><p>
	<?php echo $bg['bagua_pp'][1][5];?>
	</p><p>
	<?php echo $bg['bagua_pp'][1][6];?>
	</p>
	
	</li>
	<?php endif;?>
	<li <?php echo $benclass;?>>
	
	<p><b>本卦
	<?php echo $bg['bagua_pp'][2][0];?>
	</b></p><p>
	<?php echo $bg['bagua_pp'][2][1];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][2][2];?>
	.png' />
	<?php echo $bg['bagua_pp'][2][3];?>
	</p><p>
	<?php echo $bg['bagua_pp'][2][4];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][2][5];?>
		.png' />
	<?php echo $bg['bagua_pp'][2][6];?>
	</p><p>
	<?php echo $bg['bagua_pp'][2][7];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][2][8];?>
		.png' />
	<?php echo $bg['bagua_pp'][2][9];?>
	</p><p>
	<?php echo $bg['bagua_pp'][2][10];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][2][11];?>
		.png' />
	<?php echo $bg['bagua_pp'][2][12];?>
	</p><p>
	<?php echo $bg['bagua_pp'][2][13];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][2][14];?>
		.png' />
	<?php echo $bg['bagua_pp'][2][15];?>
	</p><p>
	<?php echo $bg['bagua_pp'][2][16];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][2][17];?>
		.png' />
	<?php echo $bg['bagua_pp'][2][18];?>
	</p>
	
	
	
	</li>
	<?php if($bg['isbian']):?>
	<li <?php echo $bianclass;?>>
	<p><b>变卦
	<?php echo $bg['bagua_pp'][3][0];?>
	</b></p><p>
	<?php echo $bg['bagua_pp'][3][1];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][3][2];?>
		.png' />
	<?php echo $bg['bagua_pp'][3][3];?>
	</p><p>
	<?php echo $bg['bagua_pp'][3][4];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][3][5];?>
	.png' />
	<?php echo $bg['bagua_pp'][3][6];?>
	</p><p>
	<?php echo $bg['bagua_pp'][3][7];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][3][8];?>
	.png' />
	<?php echo $bg['bagua_pp'][3][9];?>
	</p><p>
	<?php echo $bg['bagua_pp'][3][10];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][3][11];?>
	.png' />
	<?php echo $bg['bagua_pp'][3][12];?>
	</p><p>
	<?php echo $bg['bagua_pp'][3][13];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][3][14];?>
	.png' />
	<?php echo $bg['bagua_pp'][3][15];?>
	</p><p>
	<?php echo $bg['bagua_pp'][3][16];?>
	<img src='date/yao/
	<?php echo $bg['bagua_pp'][3][17];?>
	.png' />
	<?php echo $bg['bagua_pp'][3][18];?>
	</p>
	</li>
	<?php endif;?>
	</ul>
</div>
</section>
<section>
<div class="hd ui-cells pp_more_s"><i></i>爻辞<span data-s="1">&or;</span></div>
<div class="yaoci none">
<?php echo $bg['yaoci']['z']?><br>
<?php if($bg['yaoci']['b']!='')echo '<br>'.$bg['yaoci']['b']?>
</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');?>