<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!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/UpdateCustomerServlet" method="post">
<input type="hidden" name="id" value="${customer.id }"/>
<table width="60%" border="1">
<tr>
<td>姓名</td>
<td>
<input type="text" name="name" value="${customer.name }"/>
</td>
</tr>
<tr>
<td>性别</td>
<td>
<input type="radio" name="gender" value="1" ${customer.gender=='1'?'checked="checked"':'' }/>男
<input type="radio" name="gender" value="0" ${customer.gender=='0'?'checked="checked"':'' }/>女
</td>
</tr>
<tr>
<td>出生日期</td>
<td>
<input type="text" id="birthday" name="birthday" readonly="readonly" value="${customer.birthday }" onClick="return showCalendar('birthday', 'y-mm-dd');"/>
</td>
</tr>
<tr>
<td>手机</td>
<td>
<input type="text" name="cellphone" value="${customer.cellphone }"/>
</td>
</tr>
<tr>
<td>邮箱</td>
<td>
<input type="text" name="email" value="${customer.email }"/>
</td>
</tr>
<tr>
<td>爱好</td>
<td>
<c:forEach items="${hobby}" var="h">
<input type="checkbox" name="hobbies" value="${h}" ${fn:contains(customer.hobby,h)?'checked="checked"':'' }/>${h}
</c:forEach>
</td>
</tr>
<tr>
<td>客户类型</td>
<td>
<input type="radio" name="type" value="2" ${customer.type=='2'?'checked="checked"':'' }/>VIP
<input type="radio" name="type" value="1" ${customer.type=='1'?'checked="checked"':'' }/>普通客户
<input type="radio" name="type" value="0" ${customer.type=='0'?'checked="checked"':'' }/>不良客户
</td>
</tr>
<tr>
<td>描述</td>
<td>
<textarea name="description" rows="5" cols="55">${customer.description }</textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="保存"/>
</td>
</tr>
</table>
</form>
</body>
</html>
posted on 2014-04-21 23:58
天YU地___PS,代码人生 阅读(223)
评论(0) 编辑 收藏