posts - 36,  comments - 3,  trackbacks - 0
<%@ 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,代码人生 阅读(192) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2014年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

 一定要好好学习,天天向上!

常用链接

留言簿

随笔分类(8)

随笔档案(35)

文章分类

文章档案(1)

搜索

  •  

最新评论

阅读排行榜

评论排行榜