<?php
	session_start();
	require_once("db/db.php");	
	require_once("common/common.php");
	ini_set('session.gc_maxlifetime', 99999999); //设置时间 永不过期
	//判断是否登录系统		
	if($_SESSION['main_wx_userlogined']!="1" | $_SESSION['main_wx_userno']=="")
	{
		//没有登录开始启动登录
		header('location:..\loginwx.php?rset=0');
		exit;
	}
	
	$datday1=$_REQUEST["datday1"];
	$datday2=$_REQUEST["datday2"];
		
	if($datday1=="")
	{
		//设置默认日期
		$chainno=$_SESSION["ChainNo"]; 
		$sql=sprintf("SELECT convert(varchar(10),dateadd(day,-1,a.HotelDate),120)AS HotelDay1,convert(varchar(10),a.HotelDate,120)AS HotelDay2 FROM TR_RepHotelDayReport a,(SELECT MAX(ListNo)AS ListNo 
					FROM TR_RepHotelDayReport WHERE Chain_No='%s')b WHERE a.ListNo=b.ListNo",$chainno);
								
		$result = querySql($sql);
		$row = fetch_array($result);
		$datday1=$row['HotelDay1'];
		$datday2=$row['HotelDay2'];
				
		freeResult($result);
		closeDb();
	}
?>
<!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">
	
	<Meta http-equiv="Page-Enter" Content="blendTrans(Duration=0.5)"> 
	<Meta http-equiv="Page-Exit" Content="blendTrans(Duration=0.5)">
	
	<title><?php echo $_SESSION['ChainName']?></title>
	
	<link rel="stylesheet" href="css/mycss.css"> 
	<!--<link rel="stylesheet" href="jsp4/jquery.mobile-1.4.3.min.css">-->
	<!--<link rel="stylesheet" href="jsp4/jquery.mobile.datepicker.css">-->
	
	<script src="jsp4/jquery.js"></script>
	<!--<script src="jsp4/jquery.mobile-1.4.3.min.js"></script>-->
	<!--<script src="jsp4/jquery.ui.datepicker.js"></script>-->
	<!--<script id="mobile-datepicker" src="jsp4/jquery.mobile.datepicker.js"></script>-->
	
	
	<script src="../jsp5/jquery.mobile-1.4.5.min.js"></script>
	<link rel="stylesheet" href="../jsp5/jquery.mobile-1.4.5.min.css">
</head>

<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();
		}
	</script>
	
	<script type="text/javascript">
			
		function bmtReturnPage()
		{	
			window.location="../indexm.php?rset=0";
		};
		
	</script>
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
		
<section data-role="page" id="hotelreportA">		
  	<header data-role="header" data-position="fixed" data-tap-toggle="false" style="border-top-width:0px;border-bottom-width:0px;bkc">
		<table width="100%" height="35" border="0" cellpadding="0" cellspacing="0" bgcolor="<?php echo WxMainConfig::colHeadBkColor;?>">
			<tr >
				<td height="40" align="center" colspan="3">
					<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="10" align="left"></td>
							<td  align="center">
								<span style="color:#fff ;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:16px;text-shadow:none;"><?php echo $datday1.'&nbsp;至&nbsp;'.$datday2;?></span>  
							</td>
							<td width="10" align="left"></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr bgcolor="#f1e3e3"><td height="1" align="center" colspan="3"></tr>
		</table>
	</header>
	
	<article data-role="none">
	
		<table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFF">
			
			<?php				
				$chainno=$_SESSION["ChainNo"];
				
				$lngRowID=0;
				$datTradeTime='';
				$strOrderNo='';
				$strRoomNo='';
				$strTradeUser='';
				$strItemName='';
				$strPayType='';
				$fltPayValue='';
				$strRemarks='';
				$strCustomType='';
				$strCustomName='';
				
				$fltSumValue=0;
				
				//开始去房间状态数量
				$sql=sprintf("SELECT a.ListNo,a.Order_No,a.Room_No,convert(varchar(16),a.TradeTime,120)AS TradeTime,a.TradeUser,a.Item_Name,a.PayFor_Type,a.PayFor_Value,a.Remarks,b.Custom_Type,b.Custom_Name
								FROM TR_Consume_List a,TR_Order_Inform b WHERE a.Order_No=b.Order_No AND b.Chain_No='%s' AND a.PayFor_Value<>0
								AND a.TradeTime>='%s' AND a.TradeTime<='%s 23:59:59' ORDER BY a.ListNo ASC",$chainno,$datday1,$datday2);

				$result = querySql($sql);		
				while($row = fetch_array($result))
				{
					//得到每一条的记录信息
					$lngRowID=$lngRowID+1;
				
					$datTradeTime=$row['TradeTime'];
					$strOrderNo=$row['Order_No'];
					$strRoomNo=$row['Room_No'];
					$strTradeUser=$row['TradeUser'];
					$strItemName=$row['Item_Name'];
					$strPayType=$row['PayFor_Type'];
					$fltPayValue=$row['PayFor_Value'];
					$strRemarks=$row['Remarks'];
					$strCustomType=$row['Custom_Type'];
					$strCustomName=$row['Custom_Name'];
				
					$fltSumValue = $fltSumValue + $fltPayValue; 
			?>
			
			<tr>
				<td width="6" ></td>
				<td height="25">
					<div data-role="none" class="STYLEM2">
						<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" style="border-left: 1px solid #F6F2F2;border-right: 1px solid #F6F2F2;">
							<tr bgcolor="#F6F2F2">
								<td height="25" width="5"></td>
								<td height="25" width="150" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $lngRowID;?>、<?php echo $datTradeTime;?></span>
								</td>
								<td height="25" width="100" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strTradeUser;?></span>
								</td>
								<td height="25" align="right">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;">房号：<?php echo $strRoomNo;?></span>
								</td>
								<td height="25" width="5"></td>
							</tr>
							
							<tr bgcolor="#fff">
								<td height="25" width="5"></td>
								<td height="25" width="150" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strItemName;?></span>
								</td>
								<td height="25" width="100" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strPayType;?></span>
								</td>
								<td height="25" align="right">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:14px;text-shadow:none;"> ￥<?php echo number_format($fltPayValue,2);?></span>
								</td>
								<td height="25" width="5"></td>
							</tr>
							
							<tr bgcolor="#fff">
								<td height="25" width="5"></td>
								<td height="25" width="150" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;">No.<?php echo $strOrderNo;?></span>
								</td>
								<td height="25" width="100" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strCustomName;?></span>
								</td>
								<td height="25" align="right">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"> <?php echo $strCustomType;?></span>
								</td>
								<td height="25" width="5"></td>
							</tr>
							<tr bgcolor="#fff">
								<td height="25" width="5"></td>
								<td height="25" width="150" colspan="3" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strRemarks;?></span>
								</td>
								<td height="25" width="5"></td>
							</tr>
							
							<tr bgcolor="#F6F2F2"><td height="1" colspan="5" align="center"></tr>
						</table>
						
						<table width="100%" height="4" border="0"  cellpadding="0" cellspacing="0">
							<tr><td height="4"></td></tr>
						</table>
					</div>
				</td>
				<td width="6" ></td>
			</tr>
	
			<?php
				}
				//释放数据库
				freeResult($result);
				closeDb();
			?>
			
			<tr><td height="1" colspan="3" bgcolor="#fff"></td></tr>
		</table>
	
	
	</article>
	
	
	<footer data-role="footer" data-position="fixed" data-tap-toggle="false" style="border-top:0px solid #f0f0f0;border-bottom:0px solid #f0f0f0;border-left:1px solid #f0f0f0;border-right:1px solid #f0f0f0;">
		<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
			
			<tr bgcolor="#f1e3e3"><td height="1" align="center" colspan="4"></tr>
			
			<tr height="30" valign="top" bgcolor="#F3F4EC">
				<td height="100%" colspan="4">
					<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="20" align="left"></td>
							<td width="70" align="left">
								<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:14px;text-shadow:none;">总计</span>
							</td>
							<td align="right">
								<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:14px;text-shadow:none;">￥<?php echo number_format($fltSumValue,2);?></span>
							</td>
							<td width="20" align="left"></td>
						</tr>
					</table>
				</td>
			</tr>
			
			<tr height="100%" valign="top">
				<td width="25%"> <!--index.php-->
					<a class="ui-btn ui-icon-home ui-btn-icon-top" target="_parent" href="..\indexm.php?rset=0" style="width:100%;height:52px;margin:0px auto 0px auto;border-left:0px solid #dbdbdb;border-right:0px solid #f0f0f0;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">首页</span>
					</a>
				</td>
				
				<td width="25%">
					<a class="ui-btn ui-icon-bars ui-btn-icon-top" target="_parent" href="#" style="width:100%;height:52px;margin:0px auto 0px auto;color:#666666;background-color:#F3F4EC;border-left:1px solid #dbdbdb;border-right:0px solid #f0f0f0;">
					<span style="color: #666666;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">收款明细</span>
					</a>
				</td>
				
				<td width="25%">					
					<a class="ui-btn ui-icon-bullets ui-btn-icon-top" target="_parent" href="#hotelreportsited" style="width:100%;height:52px;margin:0px auto 0px auto;border-left:1px solid #dbdbdb;border-right:0px solid #f0f0f0;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">消费明细</span>
					</a>
				</td>
				
				<td width="25%">
					
					<a class="ui-btn ui-icon-search ui-btn-icon-top" data-rel="popup" data-position-to="window" href="#ShowRoomInput" style="width:100%;height:52px;margin:0px auto 0px auto;border-left:1px solid #dbdbdb;border-right:0px solid #f0f0f0;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">查询条件</span>
					</a>
					
					<div data-role="popup" id="ShowRoomInput" data-corners="false">
						<a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-icon-delete ui-btn-icon-notext ui-btn-right">Close</a>
						<table width="280" height="213" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
							<tr><td height ="2" colspan="3" align="center"></td></tr>
							<tr><td height ="35" colspan="3" align="center"><span style="color: #808000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:18px;text-shadow:none;">查询条件</span></td></tr>
							<tr><td height ="1" colspan="3" align="center" bgcolor="#F2E2E2"></td></tr>
							
							<tr><td height ="15" colspan="3" align="center"></td></tr>
							<tr>
								<td height ="30" width="10"></td>
								<td height ="30">
									<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
										<tr>
											<td width="90" height="100%" align="right">
												<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:15px;text-shadow:none;">起始日期：</span>
											</td>
											<td height="100%" align="left">
												<input type="date" id="dtp1" name="dtp1"  value="<?php echo $datday1;?>"  data-mini="true" />
											</td>
											<td height ="100%" width="10"></td>
										</tr>
									</table>
								</td>
								<td height ="30" width="10"></td>
							</tr>
							
							<tr><td height ="15" colspan="3" align="center"></td></tr>
							<tr>
								<td height ="30" width="10"></td>
								<td height ="30">
									<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
										<tr>
											<td width="90" height="100%" align="right">
												<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:15px;text-shadow:none;">结束日期：</span>
											</td>
											<td height="100%" align="left">
												<input type="date" id="dtp2" name="dtp2"  value="<?php echo $datday2;?>"  data-mini="true" />
											</td>
											<td height ="100%" width="10"></td>
										</tr>
									</table>
								</td>
								<td height ="30" width="10"></td>
							</tr>
							
							<tr><td height ="30" colspan="3" align="center"></td></tr>

							<tr>
								<td height ="40" width="10"></td>
								<td height ="40" align="center">
									<div onClick="bmtFindClick1()" style="border-radius:5px;width:86%; height:38px; background-color:#D7AA28;">
										<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
											<tr><td width="100%" height="100%" align="center">
												<span style="color:#fff ;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:16px;text-shadow:none;">确 定</span>                            	
											</td></tr>
										</table>
									</div>
								</td>
								<td height ="40" width="10"></td>
							</tr>
							
							<tr><td height ="30" colspan="3" align="center"></td></tr>
						
						</table>
					</div>
				</td>
			</tr>
		</table>
	</footer>
	
	<script type="text/javascript">
		//相应查询按钮的事件
		function OnSendFindClick()
		{
			var strday1 = $("#dtp1").val();
				if(strday1=="")
				{	
					$("#dtp1").focus();
					return;
				}
				parent.window.location.href='repdayreport.php?datday1=' + strday1;
		};
	
		function bmtFindClick1()
		{
			var dtpvalue1 = $("#dtp1").val();
			var dtpvalue2 = $("#dtp2").val();
			
			var urltemp='repconsume.php?datday1=' + dtpvalue1 + '&datday2=' + dtpvalue2;
			window.location.href=urltemp;
		};
		
		</script>
					
</section>

<!--页面二-->
<section data-role="page" id="hotelreportsited">		
	<link rel="stylesheet" href="css/mycss.css"> 
		
	<!--
  	<header data-role="header" data-position="fixed">
		<table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
		   <tr>
			<td height="35" width="45" align="right">
				<a href="index.php" data-transition="flip" data-role="button" data-icon="carat-l" data-iconpos="notext" data-direction="reverse" rel="external"></a>
			</td>
			<td height="35" align="center"><?php echo $_SESSION['ChainName']?></td>
			<td height="35" width="45" align="left"><a href="#" data-role="button" data-icon="refresh" data-iconpos="notext" onclick="location.reload()"></td>
		  </tr>
		</table>
	</header>
	-->
		
	<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="40" align="center">
					<span style="color:#fff ;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:16px;text-shadow:none;"><?php echo $datday1.'&nbsp;至&nbsp;'.$datday2;?></span>  
				</td>
			</tr>		  
			
		</table>
	</header>
	
	
	
	<article data-role="none">
		<table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFF">
			
			<?php				
				$chainno=$_SESSION["ChainNo"];
				
				$lngRowID=0;
				$datTradeTime='';
				$strOrderNo='';
				$strRoomNo='';
				$strTradeUser='';
				$strItemName='';
								
				$strItemType='';
				$strItemUnite='';
				$intItemCount=0;
				$fltItemPrice=0;
				$fltItemValue=0;
				
				$strRemarks='';
				$strCustomType='';
				$strCustomName='';
				
				$fltSumValue=0;
					
				//开始去房间状态数量
				$sql=sprintf("SELECT a.ListNo,a.Order_No,a.Room_No,convert(varchar(16),a.TradeTime,120)AS TradeTime,a.TradeUser,a.Item_Name,a.Item_Unite,a.Item_Count,a.Item_Price,a.Item_Value,a.Item_Type,a.Remarks,b.Custom_Type,b.Custom_Name
								FROM TR_Consume_List a,TR_Order_Inform b WHERE a.Order_No=b.Order_No AND b.Chain_No='%s' AND a.Item_Value<>0
								AND a.TradeTime>='%s' AND a.TradeTime<='%s 23:59:59' ORDER BY a.ListNo ASC",$chainno,$datday1,$datday2);

				$result = querySql($sql);		
				while($row = fetch_array($result))
				{
					//得到每一条的记录信息
					$lngRowID=$lngRowID+1;
				
					$datTradeTime=$row['TradeTime'];
					$strOrderNo=$row['Order_No'];
					$strRoomNo=$row['Room_No'];
					$strTradeUser=$row['TradeUser'];
					$strItemName=$row['Item_Name'];
					
					$strItemType=$row['Item_Type'];
					//$strItemUnite=$row['Item_Unite'];
					$intItemCount=$row['Item_Count'];
					$fltItemPrice=$row['Item_Price'];
					$fltItemValue=$row['Item_Value'];
					
					$fltSumValue=$fltSumValue + $fltItemValue;
					
					$strRemarks=$row['Remarks'];
					$strCustomType=$row['Custom_Type'];
					$strCustomName=$row['Custom_Name'];
				
			?>
			
			<tr>
				<td width="6" ></td>
				<td height="25">
					<div data-role="none" class="STYLEM2">
						<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" style="border-left: 1px solid #F6F2F2;border-right: 1px solid #F6F2F2;">
							<tr bgcolor="#F6F2F2">
								<td height="25" width="5"></td>
								<td height="25" width="150" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $lngRowID;?>、<?php echo $datTradeTime;?></span>
								</td>
								<td height="25" width="100" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strTradeUser;?></span>
								</td>
								<td height="25" align="right">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;">房号：<?php echo $strRoomNo;?></span>
								</td>
								<td height="25" width="5"></td>
							</tr>
							
							<tr bgcolor="#fff">
								<td height="25" width="5"></td>
								<td height="25" width="150" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strItemName;?></span>
								</td>
								<td height="25" width="100" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strItemType;?></span>
								</td>
								<td height="25" align="right">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:14px;text-shadow:none;"> ￥<?php echo number_format($fltItemValue,2);?></span>
								</td>
								<td height="25" width="5"></td>
							</tr>
							
							<tr bgcolor="#fff">
								<td height="25" width="5"></td>
								<td height="25" width="150" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;">No.<?php echo $strOrderNo;?></span>
								</td>
								<td height="25" width="100" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strCustomName;?></span>
								</td>
								<td height="25" align="right">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"> <?php echo $strCustomType;?></span>
								</td>
								<td height="25" width="5"></td>
							</tr>
							<tr bgcolor="#fff">
								<td height="25" width="5"></td>
								<td height="25" width="150" colspan="3" align="left">
									<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:13px;text-shadow:none;"><?php echo $strRemarks;?></span>
								</td>
								<td height="25" width="5"></td>
							</tr>
							
							<tr bgcolor="#F6F2F2"><td height="1" colspan="5" align="center"></tr>
						</table>
						
						<table width="100%" height="4" border="0"  cellpadding="0" cellspacing="0">
							<tr><td height="4"></td></tr>
						</table>
					</div>
				</td>
				<td width="6" ></td>
			</tr>
	
			<?php
				}
				//释放数据库
				freeResult($result);
				closeDb();
			?>
			
			<tr><td height="1" colspan="3" bgcolor="#fff"></td></tr>	
		</table>
	</article>
	
	<footer data-role="footer" data-position="fixed" data-tap-toggle="false" style="border-top:0px solid #f0f0f0;border-bottom:0px solid #f0f0f0;border-left:1px solid #f0f0f0;border-right:1px solid #f0f0f0;">
		<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
			
			<tr bgcolor="#f1e3e3"><td height="1" align="center" colspan="4"></tr>
			
			<tr height="30" valign="top" bgcolor="#F3F4EC">
				<td height="100%" colspan="4">
					<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="20" align="left"></td>
							<td width="70" align="left">
								<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:14px;text-shadow:none;">总计</span>
							</td>
							<td align="right">
								<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:14px;text-shadow:none;">￥<?php echo number_format($fltSumValue,2);?></span>
							</td>
							<td width="20" align="left"></td>
						</tr>
					</table>
				</td>
			</tr>
			
			<tr height="100%" valign="top">
				<td width="25%"> <!--index.php-->
					<a class="ui-btn ui-icon-home ui-btn-icon-top" target="_parent" href="..\indexm.php?rset=0" style="width:100%;height:52px;margin:0px auto 0px auto;border-left:0px solid #dbdbdb;border-right:0px solid #f0f0f0;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">主页</span>
					</a>
				</td>
				
				<td width="25%">
					<a class="ui-btn ui-icon-bars ui-btn-icon-top" target="_parent" href="#hotelreportA" style="width:100%;height:52px;margin:0px auto 0px auto;border-left:1px solid #dbdbdb;border-right:0px solid #f0f0f0;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">收款明细</span>
					</a>
				</td>
				
				<td width="25%">					
					<a class="ui-btn ui-icon-bullets ui-btn-icon-top" target="_parent" href="#" style="width:100%;height:52px;margin:0px auto 0px auto;color:#666666;background-color:#F3F4EC;border-left:1px solid #dbdbdb;border-right:0px solid #f0f0f0;">
					<span style="color: #666666;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">消费明细</span>
					</a>
				</td>
				
				<td width="25%">
					
					<a class="ui-btn ui-icon-search ui-btn-icon-top" data-rel="popup" data-position-to="window" href="#ShowRoomInput2" style="width:100%;height:52px;margin:0px auto 0px auto;border-left:1px solid #dbdbdb;border-right:0px solid #f0f0f0;">
					<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:12px;text-shadow:none;">查询条件</span>
					</a>
					
					<div data-role="popup" id="ShowRoomInput2" data-corners="false">
						<a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-icon-delete ui-btn-icon-notext ui-btn-right">Close</a>
						<table width="280" height="213" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
							<tr><td height ="2" colspan="3" align="center"></td></tr>
							<tr><td height ="35" colspan="3" align="center"><span style="color: #808000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:18px;text-shadow:none;">查询条件</span></td></tr>
							<tr><td height ="1" colspan="3" align="center" bgcolor="#F2E2E2"></td></tr>
							
							<tr><td height ="15" colspan="3" align="center"></td></tr>
							<tr>
								<td height ="30" width="10"></td>
								<td height ="30">
									<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
										<tr>
											<td width="90" height="100%" align="right">
												<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:15px;text-shadow:none;">起始日期：</span>
											</td>
											<td height="100%" align="left">
												<input type="date" id="dtp3" name="dtp3"  value="<?php echo $datday1;?>"  data-mini="true" />
											</td>
											<td height ="100%" width="10"></td>
										</tr>
									</table>
								</td>
								<td height ="30" width="10"></td>
							</tr>
							
							<tr><td height ="15" colspan="3" align="center"></td></tr>
							<tr>
								<td height ="30" width="10"></td>
								<td height ="30">
									<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
										<tr>
											<td width="90" height="100%" align="right">
												<span style="color: #000;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:15px;text-shadow:none;">结束日期：</span>
											</td>
											<td height="100%" align="left">
												<input type="date" id="dtp4" name="dtp4"  value="<?php echo $datday2;?>"  data-mini="true" />
											</td>
											<td height ="100%" width="10"></td>
										</tr>
									</table>
								</td>
								<td height ="30" width="10"></td>
							</tr>
							
							<tr><td height ="30" colspan="3" align="center"></td></tr>

							<tr>
								<td height ="40" width="10"></td>
								<td height ="40" align="center">
									<div onClick="bmtFindClick2()" style="border-radius:5px;width:86%; height:38px; background-color:#D7AA28;">
										<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
											<tr><td width="100%" height="100%" align="center">
												<span style="color:#fff ;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:16px;text-shadow:none;">确 定</span>                            	
											</td></tr>
										</table>
									</div>
								</td>
								<td height ="40" width="10"></td>
							</tr>
							
							<tr><td height ="30" colspan="3" align="center"></td></tr>
						
						</table>
					</div>
				</td>
			</tr>
		</table>
	</footer>
	
	<script tyle="text/javascript"> 
	
		function bmtFindClick2()
		{
			var dtpvalue1 = $("#dtp3").val();
			var dtpvalue2 = $("#dtp4").val();
			
			var urltemp='repconsume.php?datday1=' + dtpvalue1 + '&datday2=' + dtpvalue2;
			window.location.href=urltemp;
		};
		
		
	</script> 
	
</section>

</body>
</html>
