<%@ page language="java" import="java.util.*,com.letousky.lottery.action.ShowUserAction,com.letousky.exception.LotteryException" pageEncoding="UTF-8"%>
<% 
	String[] userAry=(String[])session.getAttribute("userAry");
	String[] userInfo =  new ShowUserAction().userInfoShowNew(request);
	session.setAttribute("safeGrade", userInfo[21]);
	if(!userInfo[17].equals(" ")){
		session.setAttribute("pwdProtectStatus","1");
	}else{
		session.setAttribute("pwdProtectStatus","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"/>
	<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/js/plugin/library.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/useraccount/js/pwdProtect.js'></script>
	<link href="<%=request.getContextPath()%>/letoula/useraccount/css/userDate.css" rel="stylesheet" type="text/css" />
	<link href="<%=request.getContextPath()%>/letoula/useraccount/css/pwdProtect.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
  	<div class='buy_record'>
  		密码保护
  	</div>
  	<%if(session.getAttribute("pwdProtectStatus").equals("1")){%>
	  	<div class='basic'>
	  		<div class='s_leval'>
	  			<span class='span_img'></span>
	  			<span class='span_text'>您已经开通了密码保护功能</span>
	  		</div>
			<div style="margin-left:260px;font:16px Arial;">
	  			<table>
					<tr>
						<td align="right">用户密码:</td>
						<td><input type="text" id='pwd'/></td>
	  				</tr>
	  				<tr height="40">
	  					<td align="right">新问题一:</td>
	  					<td>
							<select id='qusition01'>
								<option value="0">--请选择问题--</option>
								<option value="1">你的幸运数字是多少？</option>
								<option value="2">您什么时候第一次购彩？</option>
								<option value="3">您最喜欢的运动员全称？</option>
								<option value="4">您的宠物名字叫什么？</option>
							</select>
						</td>
					</tr>
					<tr>
						<td align="right">新答案一:</td>
						<td><input type="text" id='answer01'/></td>
	  				</tr>
	  				<tr height="40">
	  					<td align="right">新问题二:</td>
	  					<td>
							<select id='qusition02'>
								<option value="0">--请选择问题--</option>
								<option value="1">你的幸运数字是多少？</option>
								<option value="2">您什么时候第一次购彩？</option>
								<option value="3">您最喜欢的运动员全称？</option>
								<option value="4">您的宠物名字叫什么？</option>
							</select>
						</td>
					</tr>
					<tr>
						<td align="right">新答案二:</td>
						<td><input type="text" id='answer02'/></td>
	  				</tr>
	  				<tr>
	  					<td colspan="2" align='center'><a href="#" class='update_btt' onClick="javascript:updatePwdProtect()">修改</a></td>
	  				</tr>
	  			</table>
	  		</div>
	  	</div>
  	<%}else{%>
	  	<div class='basic'>
	  		<div class='s_leval'>
	  			<span class='span_img'></span>
	  			<span class='span_text'>密码保护是账户的基础功能，建议您马上开通</span>
	  		</div>
			<div style="margin-left:260px;font:16px Arial;">
	  			<table>
	  				<tr height="40">
	  					<td align="right">问题一:</td>
	  					<td>
							<select id='qusition01'>
								<option value="0">--请选择问题--</option>
								<option value="1">你的幸运数字是多少？</option>
								<option value="2">您什么时候第一次购彩？</option>
								<option value="3">您最喜欢的运动员全称？</option>
								<option value="4">您的宠物名字叫什么？</option>
							</select>
						</td>
					</tr>
					<tr>
						<td align="right">答案一:</td>
						<td><input type="text" id='answer01'/></td>
	  				</tr>
	  				<tr height="40">
	  					<td align="right">问题二:</td>
	  					<td>
							<select id='qusition02'>
								<option value="0">--请选择问题--</option>
								<option value="1">你的幸运数字是多少？</option>
								<option value="2">您什么时候第一次购彩？</option>
								<option value="3">您最喜欢的运动员全称？</option>
								<option value="4">您的宠物名字叫什么？</option>
							</select>
						</td>
					</tr>
					<tr>
						<td align="right">答案二:</td>
						<td><input type="text" id='answer02'/></td>
	  				</tr>
	  				<tr>
	  					<td colspan="2" align='center'><a href="javascript:void(0)" class='update_btt' onClick="javascript:setPwdProtect()">设 置</a></td>
	  				</tr>
	  			</table>
	  		</div>
	  	</div>
  <%}%>
  </body>
  </html>