zoukankan      html  css  js  c++  java
  • 关系管理系统:更新用户jsp页面

    <%@ 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>
  • 相关阅读:
    [转]如何让ruby中的ri起作用
    大四中软实习笔记20130304
    VC6.0: fatal error C1010: unexpected end of file while looking for precompiled head
    大四中软实习笔记20130307
    C++ odbc 连接数据库错误 在指定的 DSN 中,驱动程序和应用程序之间的体系结构不匹配
    大四中软实习笔记20130303
    VC6.0: unresolved external symbol "public
    【分布式锁的演化】什么是锁?
    【分布式锁的演化】常用锁的种类以及解决方案
    【数据库】海量数据切分方案
  • 原文地址:https://www.cnblogs.com/lichone2010/p/3178659.html
Copyright © 2011-2022 走看看