📄 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 + -