|
下面是我的一段分页代码,有一个很怪的问题, 我输入的"首页" "上页" "下页"中的"页"子会莫名其妙的消失, 刚开始我以为是我不小心改了,忘保存了, 可是我保存多次,当时还可以,等到第二天我再打开,就发现,"页"就又没了,这到底是为什么?
<table width="95%" height="10" border="1" align="center" cellpadding="2" cellspacing="2" bordercolorlight=#808080 bordercolordark=#ffffff>
<tr>
<%if kqrs.pagecount > 0 then%>
<td width="13%" height="10" align="left">当前页<%=intpage%>/<%=kqrs.PageCount%></td>
<%else%>
<td width="16%" align="left">当前页0/0</td>
<%end if%>
<td>共<%=kqrs.recordcount%>条</td>
<td width="71%" align="right"> <a href="Admin_News.asp?page=1&vmgz=<%=vmgz%>&vmk=<%=vmk%>&ksid=<%=ksid%>">首</a>|
<%if pre then%>
<a href="Admin_News.asp?page=<%=intpage -1%>&vmgz=<%=vmgz%>&vmk=<%=vmk%>&ksid=<%=ksid%>">上</a>|
<%end if%>
<%if last then%>
<a href="Admin_News.asp?page=<%=intpage +1%>&vmgz=<%=vmgz%>&vmk=<%=vmk%>&ksid=<%=ksid%>">下</a> |
<%end if%>
<a href="Admin_News.asp?page=<%=kqrs.PageCount%>&vmgz=<%=vmgz%>&vmk=<%=vmk%>&ksid=<%=ksid%>">尾</a>|转到第
<select name="sel_page" onChange="javascript:location=this.options[this.selectedIndex].value;">
<%
for i = 1 to kqrs.PageCount
if i = intpage then%>
<option value="Admin_News.asp?page=<%=i%>&vmgz=<%=vmgz%>&vmk=<%=vmk%>&ksid=<%=ksid%>" selected><%=i%></option>
<%else%>
<option value="Admin_News.asp?page=<%=i%>&vmgz=<%=vmgz%>&vmk=<%=vmk%>&ksid=<%=ksid%>"><%=i%></option>
<%
end if
next
%>
</select>
<%
kqrs.close
conn.close%>
页 </td>
</tr>
</table> |
|