?? userinfo.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.jxyd.vo.UserBean;"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>個人信息查看</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<%=basePath%>/css/style.css" rel="stylesheet">
<link href="<%=basePath%>/css/main.css" rel="stylesheet">
</head>
<script type="text/javascript">
function changepwd(id){
window.showModalDialog('user.do?method=ChangPwdPage&usercode='+id+'&temp='+Math.random(),window,"dialogWidth:310px;dialogHeight:200px;help:0;status:0;scroll:auto;center:1");
}
function changemark(id){
document.showform.action="user.do?method=UpdateMark&id="+id;
document.showform.submit();
return true;
}
</script>
<body>
<form action="" name="showform" method="post">
<div class="right">
<div class="content">
<p align="center">
讀者個人信息
</p>
<%
UserBean ub = (UserBean) request.getAttribute("ub");
%>
<table width="600" border="1" class="table">
<tr>
<td width="66">
姓名
</td>
<td width="177">
<label>
<input type="text" name="name" value="<%=ub.getName() %>" readonly="readonly"/>
</label>
</td>
<td>
性別
</td>
<td>
<label>
<% String sex="";
if(ub.getSex()==1){
sex="男";
}else if(ub.getSex()==2){
sex="女";
}
%>
<input type="text" value="<%=sex %>" name="sex" readonly="readonly">
</label>
</td>
</tr>
<tr>
<td>
年齡:
</td>
<td>
<label>
<input type="text" name="age" value="<%=ub.getAge() %>" readonly="readonly"/>
</label>
</td>
<td>
密碼:
</td>
<td>
<label>
<input type="password" name="unit" value="<%=ub.getPassword() %>" readonly="readonly" size="22"/> <a onclick="return changepwd(<%=ub.getBarCode() %>);" onmouseover="this.style.cursor='hand'">修改密碼</a>
</label>
</td>
</tr>
<tr>
<td width="77">
借閱證號:
</td>
<td>
<label>
<input type="text" name="code" value="<%=ub.getBarCode() %>" readonly="readonly"/>
</label>
</td>
<td>
單位:
</td>
<td>
<label>
<input type="text" name="unit" value="<%=ub.getUnit() %>" readonly="readonly"/>
</label>
</td>
</tr>
<tr>
<td>手機號:</td>
<td><input type="text" name="mphone" value="<%=ub.getMphone() %>" readonly="readonly"> </td>
<td width="77">
編號:
</td>
<td width="175">
<label>
<input type="text" name="userId" value=" <%=ub.getUserId() %>" readonly="readonly"/>
</label>
</td>
</tr>
<tr><td>
讀者類型:
</td>
<td>
<% String type="";
if(ub.getSign()==1){
type="教員";
}else if(ub.getSign()==2){
type="學員";
}
%>
<label>
<input type="text" value="<%=type %>" name="sign" readonly="readonly">
</label>
</td>
<td>押金:</td>
<td><input type="text" name="yj" value="<%=ub.getYJ() %>" readonly="readonly"> </td>
</tr>
<tr>
<td>
備注:
</td>
<td colspan="3">
<label>
<textarea name="mark" cols="50" rows="4"><%=ub.getMark() %></textarea>
</label>
</td>
</tr>
<tr>
<td colspan="2"><div align="right"> <input type="button" name="tijiao" value="修改備注" onclick="changemark(<%=ub.getId() %>)"> </div></td>
</tr>
</table>
<div style="margin-left: 15px;margin-top:10px;font-size: 12px">*您可以修改密碼或添加備注</div>
</div>
</div>
<!--end RIGHT-->
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -