<%@ page language="java" contentType="text/html; charset=GB2312"
	pageEncoding="GB2312"%>
<%@ page import="com.wxpn.tutorial.ec.util.ProvinceHandler" %>
<%@ page import="com.wxpn.tutorial.ec.util.EducationHandler" %>
<%@ include file="../include/header.jsp"%>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=760 align="center">
	<TBODY>
		<tr>
			<td align="left" height=25><%if (session.getAttribute("username") != null) {
				out.println(session.getAttribute("username"));
			}%> 当前位置：<a href="/ECommerce/index.jsp">首页</a> -&gt; 成员服务</td>
			<td align="right"><%@ include file="../include/date.jsp"%></td>
		</tr>
		<TR bgColor=#3399ff>
			<TD height=1 colspan="2"><IMG height=1 src="images/spacer.gif"
				width=16></TD>
		</TR>
		<tr>
			<td height=10 colspan="2"><IMG height=1 src="images/spacer.gif"
				width=16></td>
		</tr>
	</TBODY>
</TABLE>

<table align="center" border="0" width="760" cellspacing="0"
	cellpadding="0" height="355">
	<tr>
		<td width="150" height="355" valign="top"><%@ include
			file="../include/top_banner.jsp"%></td>
		<td width="10" height="100%"></td>
		<td width="1" height="100%" bgcolor="#3399ff"></td>
		<td width="10" height="100%"></td>
		<td width="589" height="331" valign="top" background="images/bg1.gif">
		<table border="0" width="100%" cellspacing="0" cellpadding="0"
			height="307">
			<tr align=center>
				<td width="100%" colspan="4" height="20" bgcolor="#3399ff">&nbsp;<font
					color="#ffffff">新用户注册</font></td>
			</tr>

			<tr>
				<td width="100%" align="center" colspan="4" height="36">粗体内容必须填写</td>
			</tr>
			<%if (request.getAttribute("error") != null) {%>
			<tr>
				<td width="100%" align="center" colspan="4" height="36"><font
					color=red><b><%=request.getAttribute("error")%></b></font></td>
			</tr>
			<%}

			%>
			<form name="form1" method="post" action="/ECommerce/RegisterServlet">
			<tr>
				<td align="right" width="30%"><b>登录名称：</b></td>
				<td  width="5%">&nbsp;</td>
				<td colspan="2"  width="65%"><input type="text" name="logname" value="wangxining"></td>
			</tr>
			<tr>
				<td align="right"><b>真实姓名：</b></td>
				<td>&nbsp;</td>
				<td colspan="2"><input type="text" name="realname" value="wangwang"></td>
			</tr>
			<tr>
				<td align="right"><b>您的密码：</b></td>
				<td>&nbsp;</td>
				<td colspan="2"><input type="password" name="passwd1" value=""></td>
			</tr>
			<tr>
				<td align="right"><b>密码确认：</b></td>
				<td>&nbsp;</td>
				<td colspan="2"><input type="password" name="passwd2" value=""></td>
			</tr>
			<tr>
				<td align="right"><b>电子邮件：</b></td>
				<td>&nbsp;</td>
				<td colspan="2"><input type="text" name="email" value=""></td>
			</tr>
			<tr>
				<td align="right"><b>随机码：</b></td>
				<td>&nbsp;</td>
				<td colspan="2"><input type="text" name="random" value=""></td>
			</tr>
			<tr>
				<td colspan="4" align="center">&nbsp;&nbsp;请将图中数字填入文本框中:
				<image src="/ECommerce/include/random.jsp"></td>
			</tr>
			<tr>
				<td align="right"><b>性&nbsp;&nbsp;&nbsp;&nbsp;别：</b></td>
				<td>&nbsp;</td>
				<td colspan="2"><input type="radio" name="Gender" value="1" checked>
				男 <input type="radio" name="Gender" value="0"> 女</td>
			</tr>
			<tr>
				<td align="right">联系电话：</td>
				<td>&nbsp;</td>
				<td colspan="2"><input type="text" name="phone" value=""></td>
			</tr>
			<tr>
				<td align="right">密码提示问题：</td>
				<td>&nbsp;</td>
				<td colspan="2"><input type="text" name="problem" value=""></td>
			</tr>
			<tr>
				<td align="right">密码提示答案：</td>
				<td>&nbsp;</td>
				<td colspan="2"><input type="text" name="answer" value=""></td>
			</tr>
			<tr>
				<td align="right">省市：</td>
				<td>&nbsp;</td>
				<td colspan="2"><%=ProvinceHandler.getNames() %></td>
			</tr>
			<tr>
				<td align="right">教育程度：</td>
				<td>&nbsp;</td>
				<td colspan="2"><%=EducationHandler.getNames() %></td>
			</tr>
			<tr>
				<td align="right">兴趣爱好：</td>
				<td>&nbsp;</td>
				<td><input type=checkbox name=hobbies value="1@"> 计算机行业/软硬件
				&nbsp;&nbsp;&nbsp;&nbsp; <input type=checkbox name=hobbies
					value="2@"> 旅游、度假</td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>&nbsp;</td>
				<td><input type=checkbox name=hobbies value="3@"> 上网聊天、游戏
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type=checkbox
					name=hobbies value="4@"> 阅读、图书音像</td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>&nbsp;</td>
				<td><input type=checkbox name=hobbies value="5@"> 文化/教育/育儿
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type=checkbox
					name=hobbies value="6@"> 情感生活</td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>&nbsp;</td>
				<td><input type=checkbox name=hobbies value="7@"> 影音娱乐
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type=checkbox name=hobbies value="8@"> 生活资讯</td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>&nbsp;</td>
				<td><input type=checkbox name=hobbies value="9@"> 医疗健康
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type=checkbox name=hobbies value="10@"> 房产家居</td>
			</tr>
			<tr>
				<td align="right" valign="top">自我简介：</td>
				<td>&nbsp;</td>
				<td colspan="2"><textarea name="selfintro" cols="40" rows="5"></textarea>
				</td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>&nbsp;</td>
				<td align="left" colspan="2"><input type="button" value="填好了"
					onclick="sub()"> <input type="reset" value="重填"> <script
					language="javascript">
			function sub()
			{
				if(document.form1.logname.value=="")
				{
					window.alert("请填写你的登录名！");
					window.form1.logname.focus();
					return false;
				}
				if(document.form1.realname.value=="")
				{
					window.alert("请填写你的真名！");
					window.form1.realname.focus();
					return false;
				}
				if(document.form1.passwd1.value=="")
				{
					window.alert("请填写密码！");
					window.form1.passwd1.focus();
					return false;
				}
				if(document.form1.passwd1.value!=document.form1.passwd2.value)
				{
					window.alert("请验证密码！");
					window.form1.passwd2.focus();
					return false;
				}
				if(document.form1.email.value=="")
				{
					window.alert("请填写你的E_mail！");
					window.form1.email.focus();
					return false;
				}
				document.form1.submit();
			}
			</script></td>
			</tr>
			</form>

		</table>


		</td>
	</tr>
</table>
<%@ include file="../include/footer.jsp"%>
