<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>竞彩乐后台管理系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="<%=request.getContextPath()%>/LetouBack/js/jqy.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/LetouBack/js/accountTrade.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/LetouBack/js/jquery.datepick.js"></script>
	<link href="<%=request.getContextPath()%>/LetouBack/css/jquery.datepick.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath()%>/LetouBack/css/fzczManage.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath()%>/LetouBack/css/public.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath()%>/LetouBack/css/spfManage.css" rel="stylesheet" type="text/css">
	<script type="text/javascript">
 		var userName="<%=session.getAttribute("uName")%>";
 		if(userName=="null"){
 			window.location.href="<%=request.getContextPath()%>/LetouBack/login.jsp";
 		}
 		function cancel(_this){
 			$(_this).hide(400);
 		}
		$(function(){
			$('#startDate,#endDate').datepick();
			 var d = new Date();
			 var year = d.getFullYear();
			 var month = d.getMonth()+1;
			 var day = d.getDate();
			 if(month<10){
				month="0"+month;
			 }
			 if(day<10){
				day="0"+day;
			 }
			$('#startDate').val(year+"-"+month+"-"+day);
			$('#endDate').val(year+"-"+month+"-"+day);
 		});
 	</script>
  </head>
  
  <body onLoad="load()">
	<div class='header'>
		<ul>
			<li class='header_jt'></li>
			<li class='header_text'>交易记录</li>
		</ul>
	</div>
	<div>
		<table>
			<tr>
				<td style="font:12px Arial;">按用户名:</td>
				<td><input type="text" id="searchName"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td style="font:12px Arial;">按推荐用户:</td>
				<td><input type="text" id="unionId"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td style="font:12px Arial;">按交易号:</td>
				<td><input type="text" id="serialNo"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td style="font:12px Arial;">按日期:</td>
				<td>
					<input type="text" size='8' name="date" id="startDate" class="date_input" style="width: 80px"/>
					<input type="text" size='8' name="date" id="endDate" class="date_input" style="width: 80px" />
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td style="font:12px Arial;">按交易类型:</td>
				<td>
					<select id="tradeType">
					</select>
				</td>
				<td>	
				<input type="button" onClick="accountTradeList(1);" value="查询" style="padding-top:2px;"/>
				<input type="button" onClick="exportAccountTradeList();" value="导出Excel" style="padding-top:2px;"/>
				累积充值余额:<font id="balance" color="red"></font>累积奖金余额:<font id="awardbets"color="red"></font>累积冻结余额:<font id="freezedmoney"color="red"></font>累积红包余额:
				<font id="bets_"color="red"></font>
				</td>
			</tr>
		
		</table>
	</div>
	<div id="data" style="clear:both;">
		<table class='center_context_tab' width="100%" cellspacing="0" cellpadding="0">
			<thead>
				<tr>
					<td align='center' class='tab_header'>交易号</td>
					<td align='center' class='tab_header'>用户名</td>
					<td align='center' class='tab_header'>收入</td>
					<td align='center' class='tab_header'>支出</td>
					<td align='center' class='tab_header'>余额</td>
					<td align='center' class='tab_header'>交易类型</td>
					<td align='center' class='tab_header'>交易时间</td>
				</tr>
			</thead>
			<tbody class="context">
				
			</tbody>
		</table>
		<table id="num_tab"  cellpadding="0" cellspacing="0">
			<tr>
				<td align="left" >总记录数:</td>
				<td align="left" id='num_id' style="color:red;padding:0 10px;"></td><!--
				<td align="left" width="68">总收入数:</td>
				<td align="left" id='num_id2' style="color:red"></td>
				<td align="left" width="68">总支出数:</td>
				<td align="left" id='num_id3' style="color:red"></td>
				
				--><td align="right">销售记录:</td>
				<td align="right" id='sellSum' style="color:red;padding:0 10px;"></td>
				<td align="right" >撤单金额:</td>
				<td align="right" id='cancelSum' style="color:red;padding:0 10px;"></td>
				<td align="left" >派奖金额:</td>
				<td align="left" id='awardBetsSum' style="color:red;padding:0 10px;"></td>
				<td align="left" >方案提成金额:</td>
				<td align="left" id='tcAwardBetsSum' style="color:red;padding:0 10px;"></td>
				<td align="left" >注册送5元:</td>
				<td align="left" id='bets1012Sum' style="color:red;padding:0 10px;"></td>
				<td align="left" >充值50送60:</td>
				<td align="left" id='bets6001Sum' style="color:red;padding:0 10px;"></td>
				<td align="left" >管理员辅助充值:</td>
				<td align="left" id='manmagerChongzhiSum' style="color:red;padding:0 10px;"></td>
					<td align="left" >网银充值:</td>
				<td align="left" id='bankChongzhiSum' style="color:red;padding:0 10px;"></td>
				
			</tr>
		</table>
		<table id="page_tab" cellpadding="0" cellspacing="0">
			<tr>
				<td align="left" id='pageNum'></td>
				<td align="left" ><a id='begin' href="javascript:void(0)" onclick="checkPage(this)">第一页<a></td>
				<td align="left" ><a id='back'  href="javascript:void(0)" onclick="checkPage(this)">上一页<a></td>
				<td align="left" ><a id='next'  href="javascript:void(0)" onclick="checkPage(this)">下一页<a></td>
				<td align="left" ><a id='aa'  href="javascript:void(0)" onclick="checkPage(this)">后一页<a></td>
			</tr>
		</table>
	</div>
  </body>
</html>
