📄 tjmapquery.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>料品统计查询</title>
<style>
input{
border:1px solid red;
}
table{
border-collapse:collapse;
}
</style>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script>
function changePage(obj){
if(obj.value == '首页'){
document.all("currpage").value = 1;
document.all("query").submit();
}else if(obj.value == '上一页'){
document.all("currpage").value = document.all("ppage").value;
document.all("query").submit();
}else if(obj.value == '下一页'){
document.all("currpage").value = document.all("npage").value;
document.all("query").submit();
}else{
document.all("currpage").value = document.all("allpage").value;
document.all("query").submit();
}
}
</script>
</head>
<body>
<br>
<font color="blue" size="4"> 料品统计</font>
<hr color="gray" width="100%" />
${message}
<font color=red>${error}</font>
<form action="MapAction.query.do?tj=1" name="query" method="post">
料品编号:
<input name="mpid" value="${param.mpid}">
料品名称:
<input name="mpname" value="${param.mpname}">
数量:
<input name="mpnum" value="${param.mpnum}">
<input type="submit" value="查询">
<br>
<br>
<table border="0">
<tr>
<td align="center">
<table border="1" id="tab">
<tr>
<th>
序号
</th>
<th>
料品编号
</th>
<th>
料品名称
</th>
<th>
数量
</th>
<th>
单位
</th>
<th>
描述
</th>
<th>
图片
</th>
</tr>
<c:forEach items="${po.list}" var="map" varStatus="status">
<tr>
<td>
${(po.currpage-1)*po.pagesize + status.count}
</td>
<td>
${map.mpid}
</td>
<td>
${map.mpname}
</td>
<td>
${map.mpnum}
</td>
<td>
${map.mpunit}
</td>
<td>
${map.mpdes}
</td>
<td>
<img src="../showpic?imageid=${map.mpid}">
</td>
</tr>
</c:forEach>
<tr>
<td>
合计
</td>
<td></td>
<td></td>
<td>
${sum }
</td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<br>
<input type="hidden" name="ppage" value="${po.ppage}">
<input type="hidden" name="currpage" value="${po.currpage}">
<input type="hidden" name="npage" value="${po.npage}">
<input type="hidden" name="allpage" value="${po.allpage}">
<input type="hidden" name="addcount" value="0">
<input type="hidden" name="delmpid">
<input type="hidden" name="modmpid">
总记录条数:${po.allcount} 每页显示:${po.pagesize} 总页数:${po.allpage}
<input type="button" value="首页" onclick="changePage(this)">
<input type="button" value="上一页" onclick="changePage(this)">
当前页:${po.currpage}
<input type="button" value="下一页" onclick="changePage(this)">
<input type="button" value="末页" onclick="changePage(this)">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -