📄 reinfo.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="java.lang.*,java.sql.*,java.util.*" %>
<html>
<title>小小的太阳</title>
<body>
<body style="color: #00000">
<div align="center">
<table border="3" borderColor="#ffffff" borderColorDark="#ffffff" borderColorLight="#ffffff" cellSpacing="0" height="1008" style="BORDER-BOTTOM-COLOR: #ffffff; BORDER-BOTTOM-STYLE: solid; BORDER-LEFT-COLOR: #ffffff; BORDER-LEFT-STYLE: solid; BORDER-RIGHT-COLOR: #ffffff; BORDER-RIGHT-STYLE: solid; BORDER-TOP-COLOR: #ffffff; BORDER-TOP-STYLE: solid" width="892">
<tbody>
<tr>
<td align="middle" bgColor="#ccccff" height="1" width="80%">
<%@ include file="head.html" %>
</td>
</tr>
<tr>
<td align="middle" bgColor="#ccffff" height="557" width="884">
<form mthod="post" action="XGInfo.jsp" >
<jsp:useBean id="DbLink" scope="page" class="MyBook.DbLink" />
<%
DbLink.DbLink("sa","123456","MyDataBase");
String SaveYHM =(String) session.getAttribute("SaveYHM");
String SavePassword =(String) session.getAttribute("SavePassword");
String YHM=null;
String XB=null;
String CSNY=null;
String DZYX=null;
String DH=null;
String DQ=null;
String StrN=null;
String StrY=null;
String StrR=null;
if ((SaveYHM != null)&&(SavePassword != null))
{
ResultSet RsCount = DbLink.DbQuery("Select count(*) as Counter from Login where YHM='"+SaveYHM+"' and MM='"+SavePassword+"'");
RsCount.next();
int Counter = RsCount.getInt("Counter");
RsCount.close();
if (Counter == 0)
{
response.sendRedirect("Regist.jsp?Param=Lost");
}
else
{
ResultSet rs = DbLink.DbQuery("Select * from Login where YHM='"+SaveYHM+"'");
rs.next();
YHM = rs.getString("YHM");
XB = rs.getString("XB");
CSNY = rs.getString("CSNY");
DZYX = rs.getString("DZYX");
DH = rs.getString("DH");
DQ = rs.getString("DQ");
StrN = CSNY.substring(0,4);
StrY = CSNY.substring(5,7);
StrR = CSNY.substring(8,10);
rs.close();
}
}
else
{
response.sendRedirect("Regist.jsp?Param=Lost");
}
%>
<table align="center" border="0" cellPadding="0" cellSpacing="1" bgcolor="#FF00FF">
<tbody>
<tr>
<td bgColor="#FFCCFF" height="20" width="3"> </td>
<td bgColor="#FFCCFF" width="4"> </td>
<td bgColor="#FFCCFF" width="5"> </td>
<td align="middle" bgColor="#FFCCFF" class="p3" width="200">::
修 改 个 人 资 料 ::</td>
<td bgColor="#FFCCFF" width="5"> </td>
<td bgColor="#FFCCFF" width="4"> </td>
<td bgColor="#FFCCFF" width="3"> </td>
</tr>
</tbody>
</table>
<table align="center" border="0" cellPadding="2" cellSpacing="2" width="750">
<tbody>
<tr>
<td colSpan="3" height="20">
<br>
请修改个人资料:(注意带有<font color="#ff9933">*</font>的项目必须填写)
</td>
</tr>
</tbody>
</table>
<table align="center" border="0" cellSpacing="2" width="860">
<tr>
<td align="right" class="p2">
新密码 </td>
<td align="right" class="p2" rowSpan="8"> </td>
<td bgColor="#e5e6d3"><font size="2"> </font><b> <input maxLength="12" name="NewMM1" size="25" type="Password" ></b></td>
<td bgColor="#e5e6d3" class="p2" noWrap>密码可使用长度为6-14的任何字符,并区分英文字母大小写</td>
</tr>
<tr>
<td align="right" class="p2">
新密码确认</td>
<td bgColor="#e5e6d3"><font size="2"> </font><b> <input maxLength="12" name="NewMM2" size="25" type="Password" ></b></td>
<td bgColor="#e5e6d3" class="p2">请再输入一次密码</td>
</tr>
<tr>
<td align="right" class="p2"><font color="#ff9933">*</font>
出生日期</td>
<td bgColor="#e5e6d3" class="p1"><font size="2">
</font>
<select name="year" Style="width:60" >
<%
for(int y=1900;y<2020;y++)
{
if(y==Integer.parseInt(StrN))
{
out.print("<option selected>"+y+"</option>");
}
else
{
out.print("<option>"+ y+"</option>");
}
}
%>
</select>
年 <select name="month">
<%
for(int m=1;m<13;m++)
{
if (m==Integer.parseInt(StrY))
{
if (m<10)
{
out.println("<option selected value=\"0"
+m
+"\">0"
+m
+"</option>");
}
else
{
out.println("<option selected value=\""
+m
+"\">"
+m
+"</option>");
}
}
else
{
if (m<10)
{
out.println("<option value=\"0"
+m
+"\">0"
+m
+"</option>");
}
else
{
out.println("<option value=\""
+m
+"\">"
+m
+"</option>");
}
}
}
%>
</select> 月
<select name="day" >
<%
for(int d=1;d<32;d++)
{
if (d==Integer.parseInt(StrR))
{
if (d<10)
{
out.println("<option selected value=\"0"
+d
+"\">0"
+d
+"</option>");
}
else
{
out.println("<option selected value=\""
+d
+"\">"
+d
+"</option>");
}
}
else
{
if (d<10)
{
out.println("<option value=\"0"
+d
+"\">0"
+d
+"</option>");
}
else
{
out.println("<option value=\""
+d
+"\">"
+d
+"</option>");
}
}
}
%>
</select>
日
</td>
<td bgColor="#e5e6d3" class="p2">此项信息用以找回密码,请如实填写</td>
</tr>
<tr>
<td align="right" class="p2"><font color="#ff9933">*</font>
性别</td>
<td bgColor="#e5e6d3" class="p1"><font size="2"> </font>
<%
if(XB.equals("男"))
{
out.println("<input name=\"XB\" type=\"radio\" value=\"男\" checked > 男 <input name=\"XB\" type=\"radio\" value=\"女\"> 女");
}
else
{
out.println("<input name=\"XB\" type=\"radio\" value=\"男\"> 男 <input name=\"XB\" type=\"radio\" value=\"女\" checked > 女");
}
%>
</td>
<td bgColor="#e5e6d3" class="p2"> </td>
</tr>
<tr>
<td align="right" class="p2"> 电子邮箱</td>
<td bgColor="#e5e6d3"><font size="2"> </font><input type="text" maxLength="20" name="email" size="25" value="<%= DZYX %>"></td>
<td bgColor="#e5e6d3" class="p2">请输入您常用的其它电子邮箱</td>
</tr>
<tr>
<td align="right" class="p2">
联系电话</td>
<td bgColor="#e5e6d3"><font size="2"> </font><input type="text" maxLength="15" name="DH" size="25" value="<%= DH %>"></td>
<td bgColor="#e5e6d3" class="p2">请输入区号和真实的电话,以便我们与您联系</td>
</tr>
<tr>
<td align="right" class="p2"><font color="#ff9933">*</font>
所在省份</td>
<td bgColor="#e5e6d3" class="p1"><font size="2"> </font>
<select name="DQ">
<%
if (DQ.equals("北京"))
{
out.println("<option value=\"北京\" selected >北京</option>");
}
else
{
out.println("<option value=\"北京\">北京</option>");
}
if (DQ.equals("辽宁"))
{
out.println("<option value=\"辽宁\" selected >辽宁</option>");
}
else
{
out.println("<option value=\"辽宁\">辽宁</option>");
}
if (DQ.equals("广东"))
{
out.println("<option value=\"广东\" selected >广东</option>");
}
else
{
out.println("<option value=\"广东\">广东</option>");
}
if (DQ.equals("浙江"))
{
out.println("<option value=\"浙江\" selected >浙江</option>");
}
else
{
out.println("<option value=\"浙江\">浙江</option>");
}
if (DQ.equals("江苏"))
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -