<%@ 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/userAdmin.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">
	
	<script type="text/javascript" src="<%=request.getContextPath()%>/LetouBack/js/fzczManage.js"></script>
	
	<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">
	$(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-2)+"-"+day);
		$('#endDate').val(year+"-"+month+"-"+day);
		});
	
 		var userName="<%=session.getAttribute("uName")%>";
 		if(userName=="null"){
 			window.location.href="<%=request.getContextPath()%>/LetouBack/login.jsp";
 		}
		var rootUrl = "<%=basePath%>";
 		function cancel(_this){
 			$(_this).hide(400);
 		}

 	    var url="<%=request.getContextPath()%>";
 		var pwd="<%=session.getAttribute("pwd")%>";
 		
 	</script>
  </head>
  
  <body onLoad="adminLoad()">
	<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="nameKey"/></td>
			</tr>
			<tr>
				<td style="font:12px Arial;">按用户类型:</td>
				<td>
					<select id="userType">
						<option value="0,1">全部</option>
						<option value="0">普通</option>
						<option value="1">代理</option>
					</select>
				</td>
			</tr>
			<tr>
				<td style="font:12px Arial;">按参加活动:</td>
				<td>
					<select id="activityId">
						<option value="">全部</option>
						<option value="101">返点</option>
					</select>
				</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" />
					<input type="button" onClick="userLoginList(1);" value="查询" style="padding-top:2px;"/>
				</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>
		
					<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" width="68">总记录数:</td>
				<td align="left" id='num_id'></td>
			</tr>
		</table>
		<table id="page_tab" cellpadding="0" cellspacing="0">
			<tr>
				<td align="left" id='pageNum'></td>
				<!-- 当前页 -->
				<td align="left" >当前页码：<span id="currentPage"></span>&nbsp;</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>
	<div class='userInfo_div_ZZ'>
		<ul class='userInfo_div_ul_ZZ'>
			<li>转账</li>
		</ul>
		<table class='userInfo_div_table_ZZ'>
			<tr>
				<td align="right">转款用户名:</td>
				<td><font id="userName"></font></td>
			</tr>
			<tr>
				<td align="right">转款用户余额:</td>
				<td><font id="money"></font></td>
			</tr>
			<tr>
				<td align="right">转款金额:</td>
				<td><input type="text" id="turnMoney"/></td>
			</tr>
			<tr>
				<td align="right">收款用户名:</td>
				<td><input type="text" id="incomeUserName"/></td>
			</tr>
			<tr>
				<td align="center" colspan="2">
				<input type="button" onClick="javascript:turnMoney()" value="确定" style="padding-top:2px;">
				<input type="button" onClick="javascript:cannel_zz()"value="取消" style="padding-top:2px;">
				</td>
			</tr>
		</table>
	</div>
	
		<div class='userInfo_div'>
		<ul class='userInfo_div_ul'>
			<li>用户信息</li>
		</ul>
		<table class='userInfo_div_table'>
			<tr>
				<td align="right">用户昵称:</td>
				<td><input type="text" id='userNickName' readonly="readonly"></td>
			</tr>
			<tr>
				<td align="right">奖金金额:</td>
				<td><input type="text" id='awardMeony' readonly="readonly"></td>
			</tr>
			<tr>
				<td align="right">冻结金额:</td>
				<td><input type="text" id='dongMeony' readonly="readonly"></td>
			</tr>
			<tr>
				<td align="right">投注余额:</td>
				<td><input type="text" id='_meony' readonly="readonly"></td>
			</tr>
			<tr>
				<td align="right">请输入充值金额:</td>
				<td><input type="text" id='bet'></td>
			</tr>
			<tr>
				<td align="center" colspan="2">
				<input type="button" onClick="javascript:chongzhi()" value="确定" style="padding-top:2px;">
				<input type="button" onClick="javascript:cannel()"value="取消" style="padding-top:2px;">
				</td>
			</tr>
		</table>
	</div>
	
  </body>
</html>
