<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title></title>
<link rel="stylesheet" href="style/athletic.css">
<script type="text/javascript"> function queryItem() {
itemForm.btnTopPage.disabled = true;
itemForm.btnPreviousPage.disabled = true;
itemForm.btnNext.disabled = true;
itemForm.btnBottomPage.disabled = true; with (document.getElementById("queryForm")) {
method = "post";
action = "querySchoolById.do";
submit();
}
}
function topPage() {
window.self.location = "listSchoolById.do?pageNo=${pageModel.topPageNo}&pageSize=${listSchoolByIdForm.pageSize}"
}
function previousPage() {
window.self.location = "listSchoolById.do?pageNo=${pageModel.previousPageNo}&pageSize=${listSchoolByIdForm.pageSize}"
}
function nextPage() {
window.self.location = "listSchoolById.do?pageNo=${pageModel.nextPageNo}&pageSize=${listSchoolByIdForm.pageSize}"
}
function bottomPage() {
window.self.location = "listSchoolById.do?pageNo=${pageModel.bottomPageNo}&pageSize=${listSchoolByIdForm.pageSize}"
}
function myOnkeypress() {
if (window.event.keyCode == 13) {
queryItem();
}
}
</script>
</head><body class="body1">
<form name="queryForm" id="queryForm">
<div align="center">
<table width="95%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td> </td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="8">
<tr>
<td width="522" class="p1" height="2" nowrap><img src="images/_arrow_02.gif" width="14" height="14"> <b>学校>>项目>>信息</b></td>
</tr>
</table>
<hr width="97%" align="center" size=0>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="17%" height="29"> <div align="left">学校/编号:</div></td>
<td width="46%"><input name="queryId" type="text" class="text1" id="queryId" value="请输入所要查询的学校编号" size="50" maxlength="50" onkeypress="myOnkeypress()">
</td>
<td width="37%"> <div align="left">
<input name="btnQuery" type="button" class="button1" id="btnQuery" value="查询" onClick="queryItem()">
</div></td>
</tr>
<tr>
<td height="16">
<div align="right"></div></td>
<td> </td>
<td><div align="right"></div></td>
</tr>
</table>
</div>
</form>
<form name="itemForm" id="itemForm">
<table width="95%" border="0" cellspacing="0" cellpadding="0" class="rd1" align="center">
<tr>
<td nowrap height="10" class="p2">得分信息</td>
<td nowrap height="10" class="p3"> </td>
</tr>
</table>
<table width="95%" border="1" cellspacing="0" cellpadding="0" align="center" class="table1">
<tr> <td width="170" class="rd6">编号</td>
<td width="222" class="rd6">学校名字</td>
<td width="195" class="rd6">总积分</td>
</tr>
<c:forEach items="${pageModel.list}" var="school">
<tr>
<td width="293" class="rd8" >${school.id }</td>
<td width="293" class="rd8" >${school.name }</td>
<td width="293" class="rd8" >${school.totleScore }</td>
</tr>
</c:forEach>
</table>
<table width="95%" height="30" border="0" align="center" cellpadding="0" cellspacing="0" class="rd1">
<tr>
<td class="rd19" height="2" width="36%"> <div align="left"><font color="#FFFFFF"> 信息: </font><font color="red">列表</font>
</div></td>
<td class="rd19" width="64%"> <div align="right">
<input name="btnTopPage" class="button1" type="button" id="btnTopPage" value="|<< " title="首页" onClick="topPage()">
<input name="btnPreviousPage" class="button1" type="button" id="btnPreviousPage" value=" < " title="前一页" onClick="previousPage()">
<input name="btnNext" class="button1" type="button" id="btnNext" value=" > " title="后一页" onClick="nextPage()">
<input name="btnBottomPage" class="button1" type="button" id="btnBottomPage" value=" >>|" title="尾页" onClick="bottomPage()">
</div></td>
</tr>
</table>
</form>
</body>
</html>我想实现再点查询的时候把下面的上一页下一页首页尾页的按钮失效,可是总事业不成功,哪位能给看一下哪里错了3q
解决方案 »
- 问个关于.jsp文件与.java文件分离后的技术问题
- 关于jsp使用FCKEditor的问题
- servlet如何调用bean
- SQL2000
- 很奇怪的apache日志问题
- jfreechart问题,十万火急!分不够加!已经有部分答案,但我还不知道如何做?
- 高分求稳定,好用的,有人用过的jsp,mysql留言本,急用,先谢了!
- Tomcat中的http认证如何实现控制(类似Apache那种网站登录认证)
- jsp显示有空格的字符串问题(非常普遍的问题)
- 怎么用JSP动态查询EXCEL文件中的数据????????????????????
- 如何获取发起请求的服务器IP?
- 我这样的数据库连接池配置 怎么不行??
try:
itemForm===》document.itemForm
具体查看方法:function queryItem() {
itemForm.btnTopPage.disabled = true;
itemForm.btnPreviousPage.disabled = true;
itemForm.btnNext.disabled = true;
itemForm.btnBottomPage.disabled = true;
alert("这个时候看看按钮是否已经失效");
with (document.getElementById("queryForm")) {
method = "post";
action = "querySchoolById.do";
submit();
}
}
不清楚LZ的试销是个什么概念。。
那你就在查询的action中传出来一个标志,如:flag;在页面中加载时加入onload="nodispage()"
判断flag标志为true就执行它.
function nodispage() {
itemForm.btnTopPage.disabled = true;
itemForm.btnPreviousPage.disabled = true;
itemForm.btnNext.disabled = true;
itemForm.btnBottomPage.disabled = true;
}