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,代碼人生 閱讀(235) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2014年4月>
          303112345
          6789101112
          13141516171819
          20212223242526
          27282930123
          45678910

           一定要好好學習,天天向上!

          常用鏈接

          留言簿

          隨筆分類(8)

          隨筆檔案(35)

          文章分類

          文章檔案(1)

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: SHOW| 根河市| 瑞昌市| 平谷区| 德兴市| 桃江县| 固始县| 湘乡市| 惠来县| 获嘉县| 文成县| 武功县| 长乐市| 昌黎县| 什邡市| 棋牌| 留坝县| 永春县| 水城县| 浦东新区| 理塘县| 杂多县| 宁蒗| 新巴尔虎右旗| 山东| 多伦县| 枣强县| 喀喇沁旗| 项城市| 瑞金市| 宿迁市| 高青县| 饶河县| 嘉兴市| 锡林郭勒盟| 宝应县| 中西区| 黄冈市| 云林县| 柘城县| 台东县|