📄 page.jsp
字号:
<%
int pages = 0;
int currPages = 0;
int recNums = 0;
// if(request.getAttribute("pages")!=null)
// pages = Utility.getIntValue((String)request.getAttribute("pages"));
// if(request.getAttribute("currPages")!= null)
// currPages = Utility.getIntValue((String)request.getAttribute("currPages"));
// if(request.getAttribute("recNums")!=null)
// recNums = Utility.getIntValue((String)request.getAttribute("recNums"));
%>
<br>
<script>alert("a");</script>
<table style="<%=(pages!= 1 ? "":"display:none")%>" border="0" cellspacing="1" cellpadding="0" bgcolor="#0159BD" id="NavArea" width="100%">
<tr bgcolor="#0159BD">
<td bgcolor="#0159BD">
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="divPage">
<tr bgcolor="#E5E9F8">
<td height="20" width="20%"><nobr><div align="center">共<%=recNums%> 条目<nobr></div></td>
<td width="16%"> </td>
<td width="4%"><nobr><img src="../images/212.gif" name="cpage" width="17" height="18"></nobr></td>
<td width="12%"><nobr>第<%=currPages%>/<label id=maxPage><%=pages%></label>页</nobr></td>
<td width="12"><nobr><img src="../images/first_page.gif" style="cursor:hand;" id="hpage" width="41" height="14" onclick='<%=currPages!=1? "toPage(1);":""%>'></nobr></td>
<td width="12"><nobr><img src="../images/pre_page.gif" style="cursor:hand;" id="upage" width="41" height="14" onclick='<%=currPages!=1? "toPage("+(currPages-1)+");":""%>'></nobr></td>
<td width="12"><nobr><img src="../images/next_page.gif" style="cursor:hand;" id="dpage" width="41" height="14" onclick='<%=(currPages!=pages)? "toPage("+(currPages+1)+");":""%>'></nobr></td>
<td width="12"><nobr><img src="../images/last_page.gif" style="cursor:hand;" id="tpage" width="41" height="14" onclick='<%=currPages!=pages? "toPage(-2);":""%>'></nobr></td>
</tr>
</table>
</td>
</tr>
</table>
<script language="JavaScript">
<!--
var iRelateURL;
var i;
var preURL = "";
if(document.getElementById("relateURL")==null)
iRelateURL=2;
else iRelateURL = document.getElementById("relateURL").value;
for(i=1;i<=iRelateURL;i++)
preURL += "../";
preURL += "images/";
document.getElementById("cpage").src = preURL+"212.gif";
document.getElementById("hpage").src = preURL+"first_page.gif";
document.getElementById("upage").src = preURL+"pre_page.gif";
document.getElementById("dpage").src = preURL+"next_page.gif";
document.getElementById("tpage").src = preURL+"last_page.gif";
-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -