关系管理系统:更新用户jsp页面
2013-07-08 20:53
363 查看
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@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> <script type="text/javascript" src="${pageContext.request.contextPath }/js/customer.js"></script> </head> <body style="text-align: center;" onload="pageInit()"> <form action="${pageContext.request.contextPath }/servlet/UpdateCustomerServlet" method="post" onsubmit="return dosubmit()" id="customer"> <table width="55%" border="1"> <input type="hidden" name="id" value="${customer.id }"> <tr> <td>客户姓名</td> <td> <input type="text" name="name" value="${customer.name }"> </td> </tr> <tr> <td>性别</td> <td> <input type="radio" name="gender" value="男" ${customer.gender=='男'?'checked':'' }>男 <input type="radio" name="gender" value="女" ${customer.gender=='女'?'checked':'' }>女 </td> </tr> <tr> <td>生日</td> <td> <select id="year"> <option value="${fn:split(customer.birthday,'-')[0] }">${fn:split(customer.birthday,'-')[0] }</option> </select>年 <select id="month"> <option value="${fn:split(customer.birthday,'-')[1] }">${fn:split(customer.birthday,'-')[1] }</option> </select>月 <select id="day"> <option value="${fn:split(customer.birthday,'-')[2] }">${fn:split(customer.birthday,'-')[2] }</option> </select>日 </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 var="pre" items="${preferences}"> <input type="checkbox" name="pre" value="${pre }" ${fn:contains(customer.preference,pre)?'checked':'' }>${pre } </c:forEach> </td> </tr> <tr> <td>客户类型</td> <td> <c:forEach var="type" items="${types}"> <input type="radio" name="type" value="${type }" ${customer.type==type?'checked':'' }>${type } </c:forEach> </td> </tr> <tr> <td>客户备注</td> <td> <textarea rows="5" cols="50" name="description">${customer.description }</textarea> </td> </tr> <tr> <td> <input type="reset" value="清空"> </td> <td> <input type="submit" value="修改客户"> </td> </tr> </table> </form> </body> </html>
相关文章推荐
- 关系管理系统:显示所有用户jsp页面
- 关系管理系统:添加客户显示jsp页面
- Servlet+JSP+MySQL实现用户管理模块之七、实现用户信息更新和重置密码
- 关系管理系统:CustomerDaoimpl中添加用户代码update()
- 项目(1)----用户信息管理系统(5)---(剩余jsp界面)
- 物流管理系统(七)4实现用户未登录自动跳转到登录页面
- 分享一个Flex管理系统 Session超时的时候 用户操作时自动提示并跳转到登陆页面的方法
- 关系管理系统:CustomerDaoimpl中添加用户代码delete()
- JSP用户管理系统1.0
- jsp之用户管理系统(5,真的是finally)
- 基于jsp+servlet图书管理系统之后台用户信息修改操作
- 关系管理系统:CustomerDaoimpl中添加用户代码find()
- 关系管理系统:CustomerDaoimpl中添加用户分页显示getPageData()
- 关系管理系统:分页jsp显示上一页下一页...
- JSP+Servlet培训班作业管理系统[13] -使用基于Action的后端(用户登录为例)
- jsp之简单的用户管理系统(4,mvc模式)
- 基于jsp+servlet图书管理系统之后台用户信息查询操作
- Webservice_25_SOAP的基于契约优先开发用户管理_实现Jsp页面功能
- 关系管理系统:CustomerDaoimpl中添加用户代码add()
- SSH系列:(9)用户管理-JSP页面