📄 alluser.jsp
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="com.jxyd.common.Fenye"%>
<%@ 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:html lang="true">
<head>
<title>库存图书</title>
<link href="<%=basePath%>/css/style.css" rel="stylesheet">
<link href="<%=basePath%>/css/main.css" rel="stylesheet">
</head>
<script type="text/javascript">
var retval="";
function edite(id){
window.showModalDialog('muser.do?method=EditeUser&usercode='+id+'&temp='+Math.random(),window,"dialogWidth:610px;dialogHeight:320px;help:0;status:0;scroll:auto;center:1");
}
function shanchu(id){
if(confirm('确定删除该读者吗?')){
document.showform.action="muser.do?method=DeleteUser&userid="+id;
document.showform.submit();
return true;
}
}
function Select(){
document.showform.action="muser.do?method=SelectUser";
document.showform.submit();
return true;
}
</script>
<body>
<form action="" name="showform" method="post">
<!--RIGHT-->
<div class="right">
<div class="content">
<p align="center">
已注册的读者
</p>
<div class="data_bot1" id="lendinfo">
按
<select name="select">
<option value="1" selected="selected">
编号
</option>
<option value="2">
姓名
</option>
<option value="3">
图书证号
</option>
</select>
<input type="text" name="book" >
<img src="<%=basePath%>/images/search.gif" onclick="Select()" alt="查询"
onmouseover="this.style.cursor='hand'" >
<table>
<tr>
<th>
编号
</th>
<th>
图书证号
</th>
<th>
姓名
</th>
<th>
单位
</th>
<th>
年龄
</th>
<th>
类别
</th>
<th>
编辑
</th>
<th>
删除
</th>
</tr>
<logic:present name="user">
<logic:iterate id="ub" name="user" type="com.jxyd.vo.UserBean">
<tr>
<td>
<%=ub.getUserId()%>
</td>
<td>
<%=ub.getBarCode()%>
</td>
<td>
<%=ub.getName()%>
</td>
<td>
<%=ub.getUnit()%>
</td>
<td>
<%=ub.getAge()%>
</td>
<td>
<%=ub.getSign()%>
</td>
<td>
<input type="button" value="编辑"
onclick="edite(<%=ub.getBarCode()%>)">
</td>
<td>
<input type="button" value="删除" onclick="shanchu(<%=ub.getId() %>)">
</td>
</tr>
</logic:iterate>
</logic:present>
</table>
</div>
<%
Fenye fenye = (Fenye) request.getAttribute("fenye");
if (fenye != null) {
%>
<%=fenye.getDisplay()%>
<%
}
%>
</div>
</div>
</form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -