<?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"><?php echo @$bg['qgmode'][@$bg['ppmode']];?>&emsp;
<?php 
if(@$bg['ppmode']==4){echo '上卦数'.@$bg['upgua'].'&emsp;下卦数'.@$bg['downgua'].(@$bg['saddhour']?'动爻加时辰':'');}
elseif(@$bg['ppmode']==5){echo '报单数'.@$bg['bsnums'].(@$bg['daddhour']?'动爻加时辰':'');}?></div>
		</div>
		<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>
</div>
<div class="hd ui-cells"><i></i>梅花易数卦盘<span>日空：<?php echo @$bg['xkong'];?></span></div>
<div class="ppmh">
	<ul>
	<li><br><br><font color="red">┌</font><?php echo @$bg['tiyongs'];?><font color="red">└</font><br><font color="red">┌</font><?php echo @$bg['tiyongx'];?><font color="red">└</font></li>
	<li>&nbsp;<font color="green">本卦</font><?php echo @$bg['bagua_pp']['g'];?></li>
	<li>&nbsp;<font color="green">互卦</font><?php echo @$bg['bagua_pp']['hg'];?></li>
	<li>&nbsp;<font color="green">变卦</font><?php echo @$bg['bagua_pp']['bg'];?></li>
	<li>&nbsp;<font color="green">错卦</font><?php echo @$bg['bagua_pp']['cg'];?></li>
	<li>&nbsp;<font color="green">综卦</font><?php echo @$bg['bagua_pp']['zg'];?></li>
	</ul>
</div>
</section>
<section class="clearfix">
<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');?>