分页
来源:互联网 发布:黑暗之魂世界观知乎 编辑:程序博客网 时间:2024/05/25 19:56
function query(){
var frm = document.all("balLogQueryfrm");
frm.method.value="query";
frm.submit();
}
</script>
<html:form action="/balmanage/balLogQuery" method="post" styleId="balLogQueryfrm">
<html:hidden property="method" styleId="method"/>
<html:hidden property="curPageNum" styleId="curPageNum"/>
<html:hidden property="totaPageNum" styleId="totaPageNum"/>
<bean:define id="curPageNum" property="curPageNum" name="balLogActionForm" type="Long"/>
<bean:define id="totaPageNum" property="totaPageNum" name="balLogActionForm" type="Long"/>
<%
String show = curPageNum.toString();
String showEnd = totaPageNum.toString();
pageContext.setAttribute("show", show, PageContext.PAGE_SCOPE);
%>
<script language="javascript">
function next(){
var frm = document.all("balLogQueryfrm");
<% int nextPageNum = curPageNum.intValue()+1;%>
frm.method.value="query";
frm.curPageNum.value="<%=nextPageNum%>";
frm.submit();
}
function previous(){
var frm = document.all("balLogQueryfrm");
<% int PrePageNum = curPageNum.intValue()-1;%>
frm.method.value="query";
frm.curPageNum.value="<%=PrePageNum%>";
frm.submit();
}
function first(){
var frm = document.all("balLogQueryfrm");
frm.method.value="query";
frm.curPageNum.value="1";
frm.submit();
}
</script>
<td align="center" colspan="9"><html:button value="查询[S]" styleId="delButton" accesskey="S" property="button" onclick="query();"/></td>
</tr>
</table>
<logic:equal name="show" value="1">
<td id="first"><input type='button' value='首页[F]' accesskey='F' onclick="first()" disabled='disabled'></td>
<td id="previous"> <input type="button" value="上页[P]" accesskey="P" onclick="previous()" disabled='disabled'></td>
</logic:equal>
<logic:notEqual name="show" value="1">
<td id="first"><input type='button' value='首页[F]' accesskey='F' onclick="first()"></td>
<td id="previous"> <input type="button" value="上页[P]" accesskey="P" onclick="previous()"></td>
</logic:notEqual>
<td id="next"> <input type="button" value="下页[N]" accesskey="N" onclick="next()"></td>
<td id="last"> <input type="button" value="尾页[L]" accesskey="L"></td>
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 分页
- 今天开始在这里"落地生根"了
- 网站开发中/Web 应用程序中 在VS.NET 2003 中打包部署水晶报表
- Struts taglib Help Url
- RegisterStartupScript的使用方法
- 不需要应用服务器的J2EE
- 分页
- 分页
- RegisterClientScriptBlock的使用
- 微软中国社区-HOOK专题
- Server.Transfer,Response.Redirect的区别;使用HttpContext.RewritePath来配合Server.Transfer/Execute
- 上帝的需求是什么?--谈软件的需求设计
- 终于注册了我的blog
- 微软建议的ASP性能优化28条守则
- 关于无法阅读CHM文件的解决方法