<?php
	session_start();
	ini_set('session.gc_maxlifetime', 99999999); //设置时间 永不过期
	
	$intFristLoadPage=$_REQUEST['flpid'];
	
	//判断是否登录系统
	if($_SESSION['main_wx_userlogined']!="1" | $_SESSION['main_wx_userno']=="")
	{
		//没有登录开始启动登录
		header('location:..\loginwx.php?rset=0');
		exit;
	}
	
	require_once("db/db.php");	
	require_once("common/common.php");
		
	$userno=trim($_SESSION['main_wx_userno']);
		
	//加载登陆用户的资料信息
	if($intFristLoadPage>0)
	{
		//登录成功
		$_SESSION['ChainCount'] ="1";
		$_SESSION['ChainNo'] = "";  
		$_SESSION['ChainName'] = "";  
		$_SESSION['userno'] = $userno;  
		$_SESSION['username'] = "";  
		$_SESSION['pswd'] = $pswd;
		$_SESSION['logintime'] = time();
		$_SESSION['loginflag'] ="1";
			
		$_SESSION['hotelday'] ="";
		$_SESSION['updatetime'] ="";
		$_SESSION['updatestate'] ="";
			
		//$_SESSION["main_defusernoflag"]="1";
		//$_SESSION["main_defuserno"]=$userno;
			
		//得到用户名称
		$sql = sprintf("Select Use_Name from User_QuanXian Where Use_No='%s'", $userno);
		$result = querySql($sql);
		if($row = fetch_array($result))
		{
			$_SESSION['username'] = trim($row['Use_Name']);
		}
		freeResult($result);
					
		$intRowCount=0;
		//得到该用户可以访问的分店信息
		$sql=sprintf("SELECT TOP 2 a.Chain_No,a.Chain_Name,a.Web_State,convert(varchar(19),a.Web_Date,120)AS WebTime,convert(varchar(10),a.HotelDate,120) AS HotelDay
				FROM Chain_Infor a,dbo.TRF_AppGetChainFromUser('%s') b WHERE a.Chain_No=b.Chain_No;",$userno);
				
		$result = querySql($sql);
			
		while($row = fetch_array($result))
		{
			if($intRowCount==0)
			{
				$_SESSION['ChainNo'] = $row['Chain_No'];  
				$_SESSION['ChainName'] = $row['Chain_Name']; 
					
				$_SESSION['hotelday'] = $row['HotelDay'];
				$_SESSION['updatetime'] = $row['WebTime'];
						
				$intWebState=$row['Web_State'];
				$swebstate="";
				switch($intWebState)
				{
					case 1:
						$swebstate="传输";
						break;
					case 2:
						$swebstate="完成";
						break;
					case 3:
						$swebstate="错误";
						break;
					default:
						$swebstate="停止";
						break;
				}
					
				$_SESSION['updatestate'] =$swebstate; 
			}
				
			$intRowCount=$intRowCount +1;
		}
			
				
		//判断是否有多条记录
		if($intRowCount>1)
		{
			$_SESSION['ChainCount'] ="2";
		}
		else
		{
			$_SESSION['ChainCount'] ="1";
		}
			
		freeResult($result);
	}
	
	
	
	$stripchainno=$_REQUEST['selno'];
	$strnewchainname="";
	$strnewupdatetime="";
	$strnewhoteldate="";
	if(strlen($stripchainno)>0)
	{
		//重新获得新分店信息
		$sql=sprintf("SELECT Chain_No,Chain_Name,convert(varchar(19),GetDate(),120)AS WebTime
				FROM Chain_Infor WHERE Chain_No='%s'",$stripchainno);
		$result = querySql($sql);
		if($row = fetch_array($result))
		{
			$strnewchainno = $row['Chain_No'];
			$strnewchainname = $row['Chain_Name'];
			$strnewupdatetime = $row['WebTime'];
		}
		//释放数据库
		freeResult($result);
			
		$_SESSION['ChainNo'] = $strnewchainno;  
		$_SESSION['ChainName'] =$strnewchainname;  
		$_SESSION['updatetime'] = $strnewupdatetime;
		$_SESSION['updatestate'] ="";
	}
	$strnewchainno=$_SESSION['ChainNo'];
	$strnewchainname=$_SESSION['ChainName'];
		
	//得到酒店日期
	$sql=sprintf("SELECT convert(varchar(10),DATEADD(DAY,-1,SystemDate),120)AS HotelDate FROM TR_Night_Date WHERE Chain_No='%s'",$strnewchainno);
	$result = querySql($sql);
	$row = fetch_array($result);
	$strnewhoteldate =$row['HotelDate'];
	freeResult($result);	
	
	
	//判断是否记录下登陆名
	$strDefUserNoToSaveDef='';
	if($_SESSION["main_defusernoflag"]=="1")
	{
		$strDefUserNoToSaveDef=$_SESSION["main_defuserno"];
	}
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="gb2312">	
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
	<meta name="apple-mobile-web-app-capable" content="1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=0">
	<meta name="apple-touch-fullscreen" content="1">

	<title><?php echo $strnewchainname;?></title>

	<link rel="stylesheet" href="jsp4/jquery.mobile-1.4.3.min.css">
	<script src="jsp4/jquery.js"></script>
	<script src="jsp4/jquery.mobile-1.4.3.min.js"></script>
	<link rel="stylesheet" href="css/mycss.css"> 
	
	<script>
		//清空登录信息资料
		var strDefUserNo='<?php echo $strDefUserNoToSaveDef; ?>';
		if(strDefUserNo.length>0)
		{
			localStorage["main_defuserno"]=strDefUserNo;
		}
		/*
		var ddt=<?php echo $_SESSION["main_defusernoflag"]; ?>;
		if(ddt=="1")
		{	ddt=<?php echo $_SESSION["main_defuserno"]; ?>;
			localStorage["main_defuserno"]=ddt;
		}
		*/
	</script>
	
	<script>	
		//隐藏维信右上角菜单
		function onBridgeReady(){
			WeixinJSBridge.call('hideOptionMenu');
		}

		if (typeof WeixinJSBridge == "undefined")
		{
			if( document.addEventListener )
			{
				document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
			}
			else if (document.attachEvent)
			{
				document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
				document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
			}
		}
		else
		{
			onBridgeReady();
		}
		
	function bmtSelNewChain()
	{	
		window.location="getchain.php";
	};
	</script>
</head>




<?php
		
		//营业日期
		$strHotelDayTemp=$strnewhoteldate;
		$_SESSION['HotelDate']= $strHotelDayTemp;  
		
		//得到主要最新的营业数据信息
		$strItemName="";
		$fltDayVal=0;
		$fltMonthVal=0;
		//----------------------
		$fltSDayVal1=0;		//昨日营收
		$fltSMonthVal1=0;	//本月累计
		
		$fltSDayVal2=0;		//日租房数
		$fltSMonthVal2=0;	//本月累计
		
		$fltSDayVal3=0;		//平均房价
		$fltSMonthVal3=0;	//本月累计
		
		$fltSDayVal4=0;		//出租率
		$fltSMonthVal4=0;	//本月累计
		//=================================
		$fltPayVal1=0;		//现金
		$fltPayMonthVal1=0;
		
		$fltPayVal2=0;		//信用卡
		$fltPayMonthVal2=0;
		
		$fltPayVal3=0;		//挂账
		$fltPayMonthVal3=0;
		
		$fltPayVal4=0;		//会员卡
		$fltPayMonthVal4=0;
		
		$fltPayVal5=0;		//抵用券
		$fltPayMonthVal5=0;
		
		$fltPayVal6=0;		//其他金额
		$fltPayMonthVal6=0;
		
		$fltPayVal7=0;		//总金额
		$fltPayMonthVal7=0;

		$fltPayVal8=0;		//微信
		$fltPayMonthVal8=0;

		$fltPayVal9=0;		//支付宝
		$fltPayMonthVal9=0;

		$fltPayValA=0;		//扫码支付
		$fltPayMonthValA=0;
		
		$sql=sprintf("SELECT ItemName,DayVal,MonthVal FROM TR_RepHotelDayReport WHERE HotelDate='%s' AND Chain_No='%s'
				AND (ItemName='营业收入项目类型统计' OR ItemName='客房出租总数' OR ItemName='平均房价' OR ItemName='客房出租率' 
				OR ((ItemName='现金' OR ItemName='信用卡' OR ItemName='挂账' OR ItemName='会员卡' OR ItemName='抵用券' OR ItemName='微信' OR ItemName='支付宝' OR ItemName='扫码支付' OR ItemName='收款项目统计Σ') AND TypeID=11))
				AND TypeID<18",$strnewhoteldate,$strnewchainno);
		$result = querySql($sql);		
		while($row = fetch_array($result))
		{
			$strItemName=$row['ItemName'];
			$fltItemVal=$row['DayVal'];
			$fltMonthVal=$row['MonthVal'];
			
			switch($strItemName)
			{
				case "营业收入项目类型统计":
					$fltSDayVal1=$fltItemVal;
					$fltSMonthVal1=$fltMonthVal;
					break;
				case "客房出租总数":
					$fltSDayVal2=$fltItemVal;
					$fltSMonthVal2=$fltMonthVal;
					break;
				case "平均房价":
					$fltSDayVal3=$fltItemVal;
					$fltSMonthVal3=$fltMonthVal;
					break;
				case "客房出租率":
					$fltSDayVal4=$fltItemVal;
					$fltSMonthVal4=$fltMonthVal;
					break;
				case "现金":
					$fltPayVal1=$fltItemVal;		//现金
					$fltPayMonthVal1=$fltMonthVal;
					break;
				case "信用卡":
					$fltPayVal2=$fltItemVal;		//现金
					$fltPayMonthVal2=$fltMonthVal;
					break;
				case "挂账":
					$fltPayVal3=$fltItemVal;		//现金
					$fltPayMonthVal3=$fltMonthVal;
					break;
				case "会员卡":
					$fltPayVal4=$fltItemVal;		//现金
					$fltPayMonthVal4=$fltMonthVal;
					break;
				case "抵用券":
					$fltPayVal5=$fltItemVal;		//现金
					$fltPayMonthVal5=$fltMonthVal;
					break;
				case "微信":
					$fltPayVal8=$fltItemVal;		//现金
					$fltPayMonthVal8=$fltMonthVal;
					break;
				case "支付宝":
					$fltPayVal9=$fltItemVal;		//现金
					$fltPayMonthVal9=$fltMonthVal;
					break;
				case "扫码支付":
					$fltPayValA=$fltItemVal;		//现金
					$fltPayMonthValA=$fltMonthVal;
					break;
				case "收款项目统计Σ":
					$fltPayVal7=$fltItemVal;		//现金
					$fltPayMonthVal7=$fltMonthVal;
					break;
			}	
		}
		
		$fltPayVal6=($fltPayVal7-$fltPayVal1-$fltPayVal2-$fltPayVal3-$fltPayVal4-$fltPayVal5-$fltPayVal8-$fltPayVal9-$fltPayValA);		//现金
		$fltPayMonthVal6=($fltPayMonthVal7-$fltPayMonthVal1-$fltPayMonthVal2-$fltPayMonthVal3-$fltPayMonthVal4-$fltPayMonthVal5-$fltPayMonthVal8-$fltPayMonthVal9-$fltPayMonthValA);
					
		//释放数据库
		freeResult($result);
		
		/*  =========================================================================================================================*/
		$fltPayValR1=0;		//现金
		$fltPayMonthValR1=0;
		
		$fltPayValR2=0;		//信用卡
		$fltPayMonthValR2=0;
		
		$fltPayValR3=0;		//挂账
		$fltPayMonthValR3=0;
		
		$fltPayValR4=0;		//会员卡
		$fltPayMonthValR4=0;
		
		$fltPayValR5=0;		//抵用券
		$fltPayMonthValR5=0;
		
		$fltPayValR6=0;		//其他金额
		$fltPayMonthValR6=0;
		
		$fltPayValR7=0;		//总金额
		$fltPayMonthValR7=0;
		
		$fltPayValR8=0;		//微信
		$fltPayMonthValR8=0;

		$fltPayValR9=0;		//支付宝
		$fltPayMonthValR9=0;
		
		$fltPayValRA=0;		//扫码支付
		$fltPayMonthValRA=0;

		$sql=sprintf("SELECT ItemName,DayVal,MonthVal FROM TR_RepHotelDayReport WHERE HotelDate='%s' AND Chain_No='%s'
				AND (ItemName='现金' OR ItemName='信用卡' OR ItemName='挂账' OR ItemName='会员卡' OR ItemName='抵用券' OR ItemName='微信' OR ItemName='支付宝' OR ItemName='扫码支付' OR ItemName='结账收款项目统计') 
				AND TypeID=14",$strnewhoteldate,$strnewchainno);
		$result = querySql($sql);		
		while($row = fetch_array($result))
		{
			$strItemName=$row['ItemName'];
			$fltItemVal=$row['DayVal'];
			$fltMonthVal=$row['MonthVal'];
			
			switch($strItemName)
			{
				case "现金":
					$fltPayValR1=$fltItemVal;		//现金
					$fltPayMonthValR1=$fltMonthVal;
					break;
				case "信用卡":
					$fltPayValR2=$fltItemVal;		//现金
					$fltPayMonthValR2=$fltMonthVal;
					break;
				case "挂账":
					$fltPayValR3=$fltItemVal;		//现金
					$fltPayMonthValR3=$fltMonthVal;
					break;
				case "会员卡":
					$fltPayValR4=$fltItemVal;		//现金
					$fltPayMonthValR4=$fltMonthVal;
					break;
				case "抵用券":
					$fltPayValR5=$fltItemVal;		//现金
					$fltPayMonthValR5=$fltMonthVal;
					break;
				case "微信":
					$fltPayValR8=$fltItemVal;		//现金
					$fltPayMonthValR8=$fltMonthVal;
					break;
				case "支付宝":
					$fltPayValR9=$fltItemVal;		//现金
					$fltPayMonthValR9=$fltMonthVal;
					break;
				case "扫码支付":
					$fltPayValRA=$fltItemVal;		//现金
					$fltPayMonthValRA=$fltMonthVal;
					break;
				case "结账收款项目统计":
					$fltPayValR7=$fltItemVal;		//现金
					$fltPayMonthValR7=$fltMonthVal;
					break;
			}	
		}
		
		$fltPayValR6=($fltPayValR7-$fltPayValR1-$fltPayValR2-$fltPayValR3-$fltPayValR4-$fltPayValR5-$fltPayValR8-$fltPayValR9-$fltPayValRA);		//现金
		$fltPayMonthValR6=($fltPayMonthValR7-$fltPayMonthValR1-$fltPayMonthValR2-$fltPayMonthValR3-$fltPayMonthValR4-$fltPayMonthValR5-$fltPayMonthValR8-$fltPayMonthValR9-$fltPayMonthValRA);
					
		//释放数据库
		freeResult($result);
		
		/*  =========================================================================================================================*/
		closeDb();
		
?>
	
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<!--第一个页面的内容实现---------------------------->
<section data-role="page" id="page1">
	<header data-role="header" data-position="fixed" data-tap-toggle="false">
		<table width="100%" height="35" border="0" cellpadding="0" cellspacing="0" bgcolor="<?php echo WxMainConfig::colHeadBkColor;?>">
			<tr>
				<td height="50" width="50" align="center" valign="middle">
					<div onClick="bmtReturnPage();" style="width:40;height:45px; ">
						<img src="images\back.png" width="12" height="21" border="0" style="margin-top:12px;">
					</div>
				</td>
				
				<td height="35" width="6" align="right"></td>
				<td height="35" align="center" >
					<span style="color:#fff ;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:18px;text-shadow:none;">营业概况</span>
				</td>
				<td height="35" width="50" align="right"></td>
			</tr>		  
			
		</table>
	</header>
	
	
	<article data-role="none">
		<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td height="15" width="20"></td>
				<td height="15" width="120" align="left"></td>
				<td height="15" align="right"></td>
				<td height="15" width="20"></td>
			</tr>
			<tr>
				<td height="25" width="20"></td>
				<td height="25" width="140" align="left"><font size="5">昨日营收</font><font size="2">(元)</font></td>
				<td height="25" align="right"><font size="5">￥<?php echo number_format($fltSDayVal1,1); ?></font></td>
				<td height="25" width="20"></td>
			</tr>
					
			<tr>
				<td height="25" width="20"></td>
				<td height="25" width="140" align="left" color="#F2E2E2"><font size="3">本月累计</font><font size="2">(元)</font></td>
				<td height="25" align="right"><font size="3">￥<?php echo number_format($fltSMonthVal1,1); ?></font></td>
				<td height="25" width="20"></td>
			</tr>
			
			<tr>
				<td height="8" width="20"></td>
				<td height="8" width="120" align="left"></td>
				<td height="8" align="right"></td>
				<td height="8" width="20"></td>
			</tr>
		</table>
		
		<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
			<tr bgcolor="#F2E2E2">
				<td height="1" width="20"></td>
				<td height="1" width="120" align="left"></td>
				<td height="1" align="right"></td>
				<td height="1" width="20"></td>
			</tr>
			
			<tr>
				<td height="5" width="20"></td>
				<td height="5" width="120" align="left"></td>
				<td height="5" align="right"></td>
				<td height="5" width="20"></td>
			</tr>
			
			<tr>
				<td height="20" width="20"></td>
				<td height="20" width="120" align="left"><font size="4">出租房数</font><font size="2">(间)</font></td>
				<td height="20" align="right"><font size="4"><?php echo number_format($fltSDayVal2,1); ?></font></td>
				<td height="20" width="20"></td>
			</tr>
					
			<tr>
				<td height="20" width="20"></td>
				<td height="20" width="130" align="left" color="#F2E2E2"><font size="2.5">本月累计</font><font size="2">(间)</font></td>
				<td height="20" align="right"><font size="2.5"><?php echo number_format($fltSMonthVal2,1); ?></font></td>
				<td height="20" width="20"></td>
			</tr>
			
			<tr>
				<td height="5" width="20"></td>
				<td height="5" width="120" align="left"></td>
				<td height="5" align="right"></td>
				<td height="5" width="20"></td>
			</tr>
		</table>
		
		<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
			<tr bgcolor="#F2E2E2">
				<td height="1" width="20"></td>
				<td height="1" width="120" align="left"></td>
				<td height="1" align="right"></td>
				<td height="1" width="20"></td>
			</tr>
			
			<tr>
				<td height="5" width="20"></td>
				<td height="5" width="120" align="left"></td>
				<td height="5" align="right"></td>
				<td height="5" width="20"></td>
			</tr>
			
			<tr>
				<td height="20" width="20"></td>
				<td height="20" width="120" align="left"><font size="4">平均房价</font><font size="2">(元)</font></td>
				<td height="20" align="right"><font size="4"><?php echo number_format($fltSDayVal3,1); ?></font></td>
				<td height="20" width="20"></td>
			</tr>
					
			<tr>
				<td height="20" width="20"></td>
				<td height="20" width="130" align="left" color="#F2E2E2"><font size="2.5">本月累计</font><font size="2">(元)</font></td>
				<td height="20" align="right"><font size="2.5"><?php echo number_format($fltSMonthVal3,1); ?></font></td>
				<td height="20" width="20"></td>
			</tr>
			
			<tr>
				<td height="5" width="20"></td>
				<td height="5" width="120" align="left"></td>
				<td height="5" align="right"></td>
				<td height="5" width="20"></td>
			</tr>
		</table>
		
		<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
			<tr bgcolor="#F2E2E2">
				<td height="1" width="20"></td>
				<td height="1" width="120" align="left"></td>
				<td height="1" align="right"></td>
				<td height="1" width="20"></td>
			</tr>
			
			<tr>
				<td height="5" width="20"></td>
				<td height="5" width="120" align="left"></td>
				<td height="5" align="right"></td>
				<td height="5" width="20"></td>
			</tr>
			
			<tr>
				<td height="20" width="20"></td>
				<td height="20" width="120" align="left"><font size="4">出租率</font></td>
				<td height="20" align="right"><font size="4"><?php echo number_format($fltSDayVal4,1);?>%</font></td>
				<td height="20" width="20"></td>
			</tr>
					
			<tr>
				<td height="20" width="20"></td>
				<td height="20" width="130" align="left" color="#F2E2E2"><font size="2.5">本月累计</font></td>
				<td height="20" align="right"><font size="2.5"><?php echo number_format($fltSMonthVal4,1);?>%</font></td>
				<td height="20" width="20"></td>
			</tr>
			
			<tr>
				<td height="5" width="20"></td>
				<td height="5" width="120" align="left"></td>
				<td height="5" align="right"></td>
				<td height="5" width="20"></td>
			</tr>
			
			<tr bgcolor="#F2E2E2">
				<td height="1" width="20"></td>
				<td height="1" width="120" align="left"></td>
				<td height="1" align="right"></td>
				<td height="1" width="20"></td>
			</tr>
		</table>
		
		<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
			<tr>
				<td height="10" width="20"></td>
				<td height="10"  align="center"></td>
				<td height="10" width="20"></td>
			</tr>
		</table>
		
		<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
			<tr>
				<td align="center"><img src="subroomczl.php?HotelDate=<?php echo $strHotelDayTemp;?>&ChainNo=<?php echo $strnewchainno;?>"></td>
			</tr>
		</table>		
		
		<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
			<tr>
				<td height="10" width="20"></td>
				<td height="10"  align="center"></td>
				<td height="10" width="20"></td>
			</tr>
		</table>
		
		<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
			<tr>
				<td align="center"><img src="subroomyysr.php?HotelDate=<?php echo $strHotelDayTemp;?>&ChainNo=<?php echo $strnewchainno;?>"></td>
			</tr>
		</table>		
						
		<table width="100%" height="36" border="0" cellpadding="0" cellspacing="0" bgcolor="#FEEEEE">
			<tr bgcolor="#F2E2E2">
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" ></td>
			</tr>
			
			<tr>
				<td height="30" colspan="5">
					<table width="100%" height="6" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td height="30" width="55%">&nbsp;&nbsp;收款合计：<?php echo number_format($fltPayVal7,1);?></td>
							<td height="30" width="45%">&nbsp;&nbsp;<font size="2">本月:<?php echo number_format($fltPayMonthVal7,1);?></font></td>
						</tr>
					</table>
				</td></td>
			</tr>
			
			<tr bgcolor="#F2E2E2">
				<td height="1" colspan="5"></td>
			</tr>
			
			<tr bgcolor="#FFFFFF">
				<td height="25" width="110" align="left"><font size="3">&nbsp;&nbsp;现金</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" width="110" align="left"><font size="3">&nbsp;&nbsp;信用卡</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" ><font size="3">&nbsp;&nbsp;挂账</font><font size="1.5">(元)</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayVal1,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayVal2,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" align="right"><font size="2">昨日:<?php echo number_format($fltPayVal3,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthVal1,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthVal2,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20"align="right" ><font size="2">本月:<?php echo number_format($fltPayMonthVal3,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" ></td>
			</tr>
			<tr bgcolor="#F2E2E2">
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" ></td>
			</tr>
			

			<tr bgcolor="#FFFFFF">
				<td height="25" width="110" align="left"><font size="3">&nbsp;&nbsp;微信</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" width="110" align="left"><font size="3">&nbsp;&nbsp;支付宝</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" ><font size="3">&nbsp;&nbsp;扫码支付</font><font size="1.5">(元)</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayVal8,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayVal9,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" align="right"><font size="2">昨日:<?php echo number_format($fltPayValA,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthVal8,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthVal9,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20"align="right" ><font size="2">本月:<?php echo number_format($fltPayMonthValA,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" ></td>
			</tr>
			<tr bgcolor="#F2E2E2">
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" ></td>
			</tr>




			<tr bgcolor="#FFFFFF">
				<td height="25" width="100" align="left"><font size="3">&nbsp;&nbsp;会员卡</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" width="100" align="left"><font size="3">&nbsp;&nbsp;抵用券</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" ><font size="3">&nbsp;&nbsp;其他</font><font size="1.5">(元)</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayVal4,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayVal5,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" align="right"><font size="2">昨日:<?php echo number_format($fltPayVal6,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthVal4,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthVal5,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20"align="right" ><font size="2">本月:<?php echo number_format($fltPayMonthVal6,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" ></td>
			</tr>
			
			<tr bgcolor="#F2E2E2">
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" ></td>
			</tr>
		</table>
		
		<table width="100%" height="6" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td height="6" width="20"></td>
				<td height="6"  align="center"></td>
				<td height="6" width="20"></td>
			</tr>
		</table>
		
		<table width="100%" height="36" border="0" cellpadding="0" cellspacing="0" bgcolor="#FEEEEE">
			<tr bgcolor="#F2E2E2">
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" ></td>
			</tr>
			
			<tr>
				<td height="30" colspan="5">
					<table width="100%" height="6" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td height="30" width="55%">&nbsp;&nbsp;结帐合计：<?php echo number_format($fltPayValR7,1);?></td>
							<td height="30" width="45%">&nbsp;&nbsp;<font size="2">本月:<?php echo number_format($fltPayMonthValR7,1);?></font></td>
						</tr>
					</table>
				</td></td>
			</tr>
			
			<tr bgcolor="#F2E2E2">
				<td height="1" colspan="5"></td>
			</tr>
			
			<tr bgcolor="#FFFFFF">
				<td height="25" width="110" align="left"><font size="3">&nbsp;&nbsp;现金</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" width="110" align="left"><font size="3">&nbsp;&nbsp;信用卡</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" ><font size="3">&nbsp;&nbsp;挂账</font><font size="1.5">(元)</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayValR1,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayValR2,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" align="right"><font size="2">昨日:<?php echo number_format($fltPayValR3,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthValR1,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthValR2,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20"align="right" ><font size="2">本月:<?php echo number_format($fltPayMonthValR3,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" ></td>
			</tr>
			<tr bgcolor="#F2E2E2">
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" ></td>
			</tr>
			
			<tr bgcolor="#FFFFFF">
				<td height="25" width="110" align="left"><font size="3">&nbsp;&nbsp;微信</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" width="110" align="left"><font size="3">&nbsp;&nbsp;支付宝</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" ><font size="3">&nbsp;&nbsp;扫码支付</font><font size="1.5">(元)</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayValR8,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayValR9,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" align="right"><font size="2">昨日:<?php echo number_format($fltPayValRA,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthValR8,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthValR9,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20"align="right" ><font size="2">本月:<?php echo number_format($fltPayMonthValRA,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" ></td>
			</tr>
			<tr bgcolor="#F2E2E2">
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" ></td>
			</tr>

			<tr bgcolor="#FFFFFF">
				<td height="25" width="100" align="left"><font size="3">&nbsp;&nbsp;会员卡</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" width="100" align="left"><font size="3">&nbsp;&nbsp;抵用券</font><font size="1.5">(元)</font></td>
				<td height="25" width="1" bgcolor="#F2E2E2"></td>
				<td height="25" ><font size="3">&nbsp;&nbsp;其他</font><font size="1.5">(元)</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayValR4,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" width="110" align="right"><font size="2">昨日:<?php echo number_format($fltPayValR5,1);?>&nbsp;&nbsp;</font></td>
				<td height="15" width="1" bgcolor="#F2E2E2"></td>
				<td height="15" align="right"><font size="2">昨日:<?php echo number_format($fltPayValR6,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthValR4,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20" width="110" align="right"><font size="2">本月:<?php echo number_format($fltPayMonthValR5,1);?>&nbsp;&nbsp;</font></td>
				<td height="20" width="1" bgcolor="#F2E2E2"></td>
				<td height="20"align="right" ><font size="2">本月:<?php echo number_format($fltPayMonthValR6,1);?>&nbsp;&nbsp;</font></td>
			</tr>
			<tr bgcolor="#FFFFFF">
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" width="110"></td>
				<td height="4" width="1" bgcolor="#F2E2E2"></td>
				<td height="4" ></td>
			</tr>
			
			<tr bgcolor="#F2E2E2">
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" width="110"></td>
				<td height="1" width="1"></td>
				<td height="1" ></td>
			</tr>
		</table>
		
		<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td height="10" width="20"></td>
				<td height="10"  align="center"></td>
				<td height="10" width="20"></td>
			</tr>
		</table>
				
	</article>
	
	<!--
	<footer data-role="footer" data-position="fixed" data-tap-toggle="false" style="border-top:0px solid #F2E2E2;border-bottom:0px solid #F2E2E2;border-left:0px solid #F2E2E2;border-right:0px solid #F2E2E2;">
		<table width="100%" height="90" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td height="50" width="33%">
					<a class="ui-btn ui-icon-home ui-btn-icon-top" target="_parent" href="..\indexm.php?rset=0" rel="external" style="width:99%;height:10px;margin:0px auto 0px auto;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">主页</span>
					</a>
				</td>
				<td height="50" width="34%">
					<a class="ui-btn ui-icon-bullets ui-btn-icon-top" target="_parent" href="payforlist.php" rel="external" style="width:99%;height:10px;margin:0px auto 0px auto;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">交款记录表</span>
					</a>
				</td>
				<td height="50" width="33%">
					<a class="ui-btn ui-icon-calendar ui-btn-icon-top" target="_parent" href="repdayreport.php" rel="external" style="width:99%;height:10px;margin:0px auto 0px auto;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">营业日报表</span>
					</a>
				</td>
			</tr>
			
			<tr>
				<td height="50" width="33%">
					<a class="ui-btn ui-icon-user ui-btn-icon-top" target="_parent" href="nowsitedlist.php" rel="external" style="width:99%;height:10px;margin:0px auto 0px auto;border-top:0px solid #fff;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">住客明细表</span>
					</a>
				</td>
				<td height="50" width="34%">
					<a class="ui-btn ui-icon-bars ui-btn-icon-top" target="_parent" href="repmonthreport.php" rel="external" style="width:99%;height:10px;margin:0px auto 0px auto;border-top:0px solid #fff;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">营业月报表</span>
					</a>
				</td>
				<td height="50" width="33%">
					<a class="ui-btn ui-icon-eye ui-btn-icon-top" target="_parent" href="repotherreport.php" rel="external" style="width:99%;height:10px;margin:0px auto 0px auto;border-top:0px solid #fff;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">异动情况表</span>
					</a>
				</td>
			</tr>
		</table>
	</footer>
	-->
</section>

<script type="text/javascript">
			
	function bmtReturnPage()
	{	
		window.location="../indexm.php?selno=<?php echo $strnewchainno;?>";
	};
				
</script>

</body>
	
</html>