<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>添加用户</title>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath }/js/calendar.css">
<script type="text/javascript" src="${pageContext.request.contextPath }/js/calendar.js"></script>
</head>
<body style="text-align: center;">
<form action="${pageContext.request.contextPath }/servlet/AddCustomerServlet" method="post">
<table width="60%" border="1">
<tr>
<td>姓名</td>
<td>
<input type="text" name="name"/>
</td>
</tr>
<tr>
<td>性别</td>
<td>
<input type="radio" name="gender" value="1"/>男
<input type="radio" name="gender" value="0"/>女
</td>
</tr>
<tr>
<td>出生日期</td>
<td>
<input type="text" id="birthday" name="birthday" readonly="readonly" onClick="return showCalendar('birthday', 'y-mm-dd');"/>
</td>
</tr>
<tr>
<td>手机</td>
<td>
<input type="text" name="cellphone"/>
</td>
</tr>
<tr>
<td>邮箱</td>
<td>
<input type="text" name="email"/>
</td>
</tr>
<tr>
<td>爱好</td>
<td>
<c:forEach items="${hobby}" var="h">
<input type="checkbox" name="hobbies" value="${h}"/>${h}
</c:forEach>
</td>
</tr>
<tr>
<td>客户类型</td>
<td>
<input type="radio" name="type" value="2"/>VIP
<input type="radio" name="type" value="1"/>普通客户
<input type="radio" name="type" value="0"/>不良客户
</td>
</tr>
<tr>
<td>描述</td>
<td>
<textarea name="description" rows="5" cols="55"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="保存"/>
</td>
</tr>
</table>
</form>
</body>
</html>
posted on 2014-04-21 23:45
天YU地___PS,代码人生 阅读(584)
评论(0) 编辑 收藏