?? info_management.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>歡迎光臨企業(yè)辦公平臺</title>
<link rel=stylesheet type=text/css href="./lib/enterprise.css">
<jsp:useBean scope="page" id="User" class="com.chapter15.User" />
<jsp:useBean scope="page" id="Department" class="com.chapter15.Department" />
<%
//獲取session中保存的UserName屬性值
String sUserName = (String) session.getAttribute("UserName");
//獲取session中保存的UserID
long lUserID = (Long) session.getAttribute("UserID");
User.setUserID(lUserID);
//初始化用戶信息
User.init();
Department.setDepartmentID(User.getDepartmentID());
Department.init();
%>
</head>
<body bgcolor="#F2F2F2">
<div align="center">
<h3>修改密碼</h3>
<form name="form1" method="post" action="modify_password_save.jsp" target="_self">
<table width="80%" border="0">
<tr>
<td width="50%" align="right" height="25">請輸入舊密碼:</td>
<td width="50%" align="left" height="25"><input name="OldUserPassword" type="password" size="20"></td>
</tr>
<tr>
<td width="50%" align="right" height="25">請輸入新密碼:</td>
<td width="50%" align="left" height="25"><input name="UserPassword" type="password" size="20" ></td>
</tr>
<tr>
<td width="50%" align="right" height="25">請確認(rèn)新密碼:</td>
<td width="50%" align="left" height="25"><input name="CUserPassword" type="password" size="20" ></td>
</tr>
<tr>
<td width="100%" align="center" height="30" colspan="2">
<input type="submit" name="sub" value="修改">
<input type="reset" name="res" value="重填">
</td>
</tr>
</table>
</form>
<h3>修改其他信息</h3>
<form name="form2" method="post" action="modify_info_save.jsp" target="_self">
<table width="80%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15%"height="25" align="right"> 用戶名:</td>
<td width="30%"height="25" align="left"> <font color="#0000FF"><%=User.getUserName()%></font></td>
<td width="15%"height="25" align="right"> 員工號:</td>
<td width="30%"height="25" align="left"> <font color="#0000FF"><%=User.getUserSN()%></font></td>
</tr>
<tr>
<td width="15%"height="25" align="right"> 姓名:</td>
<td width="30%"height="25" align="left"> <input type="text" name="RealName" size="20" value="<%=User.getRealName()%>"></td>
<td width="15%"height="25" align="right"> 所屬部門:</td>
<td width="30%"height="25" align="left"> <font color="#0000FF"><%=Department.getDepartmentName()%></font> </td>
</tr>
<tr>
<td width="15%"height="25" align="right"> 性別:</td>
<td width="30%"height="25" align="left"> <input type="radio" value="男" name="Sex" <%if(User.getSex().equals("男")) out.println("checked");%>>男 <input type="radio" value="女" name="Sex" <%if(User.getSex().equals("女")) out.println("checked");%>>女</td>
<td width="15%"height="25" align="right"> 出生日期:</td>
<td width="30%"height="25" align="left"> <input type="text" name="BornDate" size="20" value="<%=User.getBornDate()%>"></td>
</tr>
<tr>
<td width="15%"height="25" align="right"> 最高學(xué)歷:</td>
<td width="30%"height="25" align="left"> <input type="text" name="Degree" size="20" value="<%=User.getDegree()%>"></td>
<td width="15%"height="25" align="right"> 電話:</td>
<td width="30%"height="25" align="left"> <input type="text" name="Telephone" size="20" value="<%=User.getTelephone()%>"></td>
</tr>
<tr>
<td width="15%"height="25" align="right"> 手機(jī):</td>
<td width="30%"height="25" align="left"> <input type="text" name="Mobile" size="20" value="<%=User.getMobile()%>"></td>
<td width="15%"height="25" align="right"> 郵箱:</td>
<td width="30%"height="25" align="left"> <input type="text" name="Email" size="20" value="<%=User.getEmail()%>"></td>
</tr>
<tr>
<td width="15%"height="25" align="right"> 入職時間:</td>
<td width="30%"height="25" align="left"> <input type="text" name="InDate" size="20" value="<%=User.getInDate()%>"></td>
<td width="15%"height="25" align="right" colspan="2"> </td>
</tr>
<tr>
<td width="20%" align="right"> 個人簡介:</td>
<td width="80%" colspan="3" align="left">
<textarea name="Intro" cols="60" rows="10"><%=User.getIntro()%></textarea>
</td>
</tr>
<tr>
<td width="100%" align="center" height="30" colspan="4">
<input type="submit" name="sub" value="修改">
<input type="reset" name="res" value="重填">
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -