<%@ page language="java" import="java.util.*,com.letousky.lottery.action.MemberCenter,com.letousky.exception.LotteryException" pageEncoding="UTF-8"%>
<%
	String[] params = new String[2];
	params[0] = request.getParameter("username");
	params[1] = request.getParameter("pwd");
	String message = "";
	int flag = 0;
	try{
		String[] cash=new MemberCenter().user_Activation(params,request);
		
		message = "激活成功";
		flag = 1;
		
	}catch(LotteryException e){
	
		message = e.getMessage();
		flag = 0;
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <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"/>
	<style type='text/css'>
		.su_c{
			background:#fff;
			border:1px #D0D0D0 solid;
			width:976px;
			height:533px;
			display:block;
			margin:5px 0 10px 0px;
		}
		.c_nt{
			width:470px;
			height:189px;
			display:block;
			padding-top:140px;
			margin:0 auto;
			font:bold 14px Arial;
		}
		span.z_nt a,.btn{
			margin-left:50px;
		}
	</style>
  </head>
  
  <body>
  	<div id='homeTop'>
      <%@include file='../../../letoula/top.jsp' %>
    </div>
    <div id='homeMain'>
    	
    	<div class='su_c'>
    			
    			<div class='c_nt'>
    				<%if(flag==1){%>
    				<span><font color='#333333'>邮箱验证通过，<font color='#FF6600'>1</font>元体验金已发放到您的账户中，<font color='#FF6600'>您现在可以：</font></font></span>
    				<span class='z_nt'>
    					<p><a href="<%=request.getContextPath()%>/letoula/useraccount/index.jsp?l=0&url=usertouzhu/buyLottery.jsp">查看账户余额>></a><a href="<%=request.getContextPath()%>/letoula/useraccount/userRegistered/success.jsp">进行手机验证>></a></p>
    					<p><a href="<%=request.getContextPath()%>/letoula/useraccount/index.jsp?l=-1&url=recharge/addMoney.jsp">进行账户充值>></a><a href="<%=request.getContextPath()%>/letoula/jczq/naclPurchase.jsp?gameid=501">查看可投注场次>></a></p>
    				</san>
    				<span>
    					<input type='button' class='btn' value='关闭页面，随便逛逛' onclick='javascript:window.close()' />
    				</span>
    				<%}else{%>
    					
    					<span><font color='#333333'><%=message%></font></span>
    				<%}%>
    			</div>
    	</div>
    	
    </div>
    <div id='mainFooter' style='clear:both;'>
      	<%@include file='../../../letoula/bottom.jsp' %>
    </div>
  </body>
  </html>