📄 clientregiste.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.*" %>
<%
String message = (String)request.getAttribute("message");
Vector vector = null;
if(message!=null){
vector = (Vector)request.getAttribute("information");
}
%>
<form action="<%=request.getContextPath()%>/clientregiste.do"
name="clientregist" method="post">
<table width="92%" height="308" border="0" align="center">
<tr>
<td colspan="3" bgcolor="#6699CC">
<center>
客 户 注 册
</center>
</td>
</tr>
<%
if (message != null && message.length() != 0) {
%>
<tr>
<td colspan="3" bgcolor="#ffff00" align="center">
<font size="2"><%=message%></font>
</td>
</tr>
<%
}
%>
<tr>
<td height="26" align="center" colspan="3">
<font size="2">请填写您的注册信息(以下项目为必填)</font>
</td>
</tr>
<tr bgcolor="#6699CC">
<td width="17%" height="26" align="center">
<font size="2">请输入您的E-mail:</font>
</td>
<td>
<input name="email" type="text" value='<%= (vector != null)? vector.get(0): "" %>'/>
</td>
<td align="center" width="42%">
<font size="2">您需要输入E-mail作为登录的用户名</font>
</td>
</tr>
<tr bgcolor="#6699CC">
<td height="26" align="center">
<font size="2">请输入密码:</font>
</td>
<td>
<input name="password" type="password" id="password" />
</td>
<td align="center">
<font size="2">您的密码可以由数字、字母、下划线及其他符号组成,但必须少于15位 </font>
</td>
</tr>
<tr bgcolor="#6699CC">
<td height="26" align="center">
<font size="2">请再次输入密码:</font>
</td>
<td>
<input name="again" type="password" id="again" />
</td>
<td align="center">
<font size="2">再次输入您的密码</font>
</td>
</tr>
<tr>
<td height="26" align="center" colspan="3">
<font size="2">请填写个人信息(以下各项可以不填)</font>
</td>
</tr>
<tr bgcolor="#6699CC">
<td height="26" align="center">
<font size="2">真实姓名:</font>
</td>
<td>
<input name="name" type="text" value='<%= (vector != null)? vector.get(1): "" %>'/>
</td>
<td align="center">
<font size="2">输入您的真实姓名</font>
</td>
</tr>
<tr bgcolor="#6699CC">
<td height="26" align="center">
<font size="2">性别:</font>
</td>
<td>
<select name="sex">
<option value="male" selected="true"/>男</option>
<option value="female"/>女</option>
</select>
</td>
<td height="26" align="center">
<font size="2">选择您的性别</font>
</td>
</tr>
<tr bgcolor="#6699CC">
<td height="26" align="center">
<font size="2">出生日期:</font>
</td>
<td>
<select name="year">
<%
for(int i = 1960; i<2007; i++){
out.print("<option value='" + i + "' selected>" + i + "</option>");
}
%>
</select>
<font size="2">年</font>
<select name="month">
<%
for(int i = 1; i<=12; i++){
out.print("<option value='" + i + "' selected>" + i + "</option>");
}
%>
</select>
<font size="2">月</font>
<select name="day">
<%
for(int i = 1; i<=31; i++){
out.print("<option value='" + i + "' selected>" + i + "</option>");
}
%>
</select>
<font size="2">日</font>
</td>
<td height="26" align="center">
<font size="2">填写您的出生日期</font>
</td>
</tr>
<tr bgcolor="#6699CC">
<td height="26" align="center">
<font size="2">地址:</font>
</td>
<td>
<textarea name="address"><%= (vector != null)? vector.get(2): "" %></textarea>
</td>
<td height="26" align="center">
<font size="2">填写您的联系地址</font>
</td>
</tr>
<tr bgcolor="#6699CC">
<td height="26" align="center">
<font size="2">个性说明:</font>
</td>
<td>
<textarea name="description" rows="4"><%= (vector != null)? vector.get(3): "" %></textarea>
</td>
<td>
</td>
</tr>
<tr bgcolor="#6699CC">
<td height="26" colspan="3" align="center">
<input type="submit" name="submit" value="提 交" />
<input type="reset" name="reset" value="重 填" />
</td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -