edit.jsp 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <HTML>
  6. <HEAD>
  7. <meta http-equiv="Content-Language" content="zh-cn">
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  9. <LINK href="${pageContext.request.contextPath}/css/Style.css" type="text/css" rel="stylesheet">
  10. <script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
  11. <script language="javascript" src="${pageContext.request.contextPath}/js/check.js"></script>
  12. <!-- 日期插件,使用jquery -->
  13. <script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery-1.4.2.js"></script>
  14. <link rel="stylesheet" href="${pageContext.request.contextPath}/jquery/jquery.datepick.css" type="text/css">
  15. <script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery.datepick.js"></script>
  16. <script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery.datepick-zh-CN.js"></script>
  17. </HEAD>
  18. <script type="text/javascript">
  19. $(document).ready(function(){
  20. //使用class属性处理 'yy-mm-dd' 设置格式"yyyy/mm/dd"
  21. $('#birthday').datepick({dateFormat: 'yy-mm-dd'});
  22. });
  23. $(function() {
  24. //获取所有option
  25. $("#education option[value='${p.education}']").attr("selected","selected");
  26. })
  27. </script>
  28. <body>
  29. <form id="userAction_save_do" name="Form1" action="${pageContext.request.contextPath}/person?method=update" method="post">
  30. &nbsp;
  31. <table cellSpacing="1" cellPadding="5" width="100%" align="center" bgColor="#eeeeee" style="border: 1px solid #8ba7e3" border="0">
  32. <input type="hidden" name="pid" value="${p.pid }" id="pid"/>
  33. <input type="hidden" name="resume" value="${p.resume }" id="path"/>
  34. <tr>
  35. <td class="ta_01" align="center" bgColor="#afd1f3" colSpan="4"
  36. height="26">
  37. <strong><STRONG>编辑人员信息</STRONG>
  38. </strong>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
  43. 登录名:
  44. </td>
  45. <td class="ta_01" bgColor="#ffffff" colspan="3">
  46. <input type="text" name="username" value="${p.username }" id="userAction_save_do_logonName" class="bg"/>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td align="center" bgColor="#f5fafe" class="ta_01">
  51. 密码:
  52. </td>
  53. <td class="ta_01" bgColor="#ffffff">
  54. <input type="password" name="password" value="${p.password }" id="logonPwd"/>
  55. </td>
  56. <td align="center" bgColor="#f5fafe" class="ta_01">
  57. 用户姓名:
  58. </td>
  59. <td class="ta_01" bgColor="#ffffff">
  60. <input type="text" name="realname" value="${p.realname }" id="userAction_save_do_userName" class="bg"/>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td align="center" bgColor="#f5fafe" class="ta_01">
  65. 性别:
  66. </td>
  67. <td class="ta_01" bgColor="#ffffff">
  68. <input type="radio" name="gender" id="sex男" value="男" <c:if test="${p.gender =='男' }">checked</c:if>/><label for="sex男">男</label>
  69. <input type="radio" name="gender" id="sex女" value="女" <c:if test="${p.gender =='女' }">checked</c:if>/><label for="sex女">女</label>
  70. </td>
  71. <td align="center" bgColor="#f5fafe" class="ta_01">
  72. 学历:
  73. </td>
  74. <td class="ta_01" bgColor="#ffffff">
  75. <select name="education" id="education">
  76. <option value=""
  77. >--选择学历--</option>
  78. <option value="博士">博士</option>
  79. <option value="硕士">硕士</option>
  80. <option value="研究生">研究生</option>
  81. <option value="本科">本科</option>
  82. <option value="专科">专科</option>
  83. <option value="高中">高中</option>
  84. </select>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td align="center" bgColor="#f5fafe" class="ta_01">
  89. 出生日期:
  90. </td>
  91. <td class="ta_01" bgColor="#ffffff">
  92. <input type="text" name="birthday" size="20" value="${p.birthday }" readonly="readonly" id="birthday"/>
  93. </td>
  94. <td align="center" bgColor="#f5fafe" class="ta_01">
  95. 电话:
  96. </td>
  97. <td class="ta_01" bgColor="#ffffff">
  98. <input type="text" name="phone" value="${p.phone }" id="telephone"/>
  99. </td>
  100. </tr>
  101. <tr>
  102. <td align="center" bgColor="#f5fafe" class="ta_01">
  103. 兴趣爱好:
  104. </td>
  105. <td class="ta_01" bgColor="#ffffff" colSpan="3">
  106. <input type="checkbox" name="love" value="看电影" id="interest-1" checked="checked"/>
  107. <label for="interest-1" class="checkboxLabel">看电影</label>
  108. <input type="checkbox" name="love" value="旅游" id="interest-2"/>
  109. <label for="interest-2" class="checkboxLabel">旅游</label>
  110. <input type="checkbox" name="love" value="健身" id="interest-3"/>
  111. <label for="interest-3" class="checkboxLabel">健身</label>
  112. <input type="checkbox" name="love" value="购物" id="interest-4"/>
  113. <label for="interest-4" class="checkboxLabel">购物</label>
  114. <input type="checkbox" name="love" value="睡觉" id="interest-5"/>
  115. <label for="interest-5" class="checkboxLabel">睡觉</label>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td align="center" bgColor="#f5fafe" class="ta_01">
  120. 简历资料:
  121. </td>
  122. <td class="ta_01" bgColor="#ffffff" colSpan="3">
  123. ${p.resume }
  124. <!-- <input type="file" name="upload" size="30" value="" id="userAction_save_do_upload"/> -->
  125. </td>
  126. </tr>
  127. <TR>
  128. <TD class="ta_01" align="center" bgColor="#f5fafe">
  129. 备注:
  130. </TD>
  131. <TD class="ta_01" bgColor="#ffffff" colSpan="3">
  132. <textarea name="rmark" cols="30" rows="3" id="userAction_save_do_remark" style="WIDTH: 96%">${p.rmark }</textarea>
  133. </TD>
  134. </TR>
  135. <TR>
  136. <td align="center" colSpan="4" class="sep1">
  137. <img src="${pageContext.request.contextPath}/images/shim.gif">
  138. </td>
  139. </TR>
  140. <tr>
  141. <td class="ta_01" style="WIDTH: 100%" align="center"
  142. bgColor="#f5fafe" colSpan="4">
  143. <button type="submit" id="userAction_save_do_submit" name="submit" value="&#30830;&#23450;" class="button_ok">
  144. &#30830;&#23450;
  145. </button>
  146. <FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
  147. <FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
  148. <INPUT class="button_ok" type="button" onclick="history.go(-1)" value="返回"/>
  149. <span id="Label1"></span>
  150. </td>
  151. </tr>
  152. </table>
  153. </form>
  154. </body>
  155. </HTML>