跳转 上下页 避免乱码 和检查跳转输入的页数
<table >
<tr><td>
<form name="firstForm" method="post" >
<input type="hidden" name="xianshi" value="<%=xianshi%>" >
<input type="hidden" name="keyword" value="<%=keyword%>" >
<input type="hidden" name="pageNum" value="1" >
<a οnclick="firstForm.submit()">[首页]</a>
</form>
</td>
<td>
<form name="preForm" method="post" >
<input type="hidden" name="xianshi" value="<%=xianshi%>" >
<input type="hidden" name="keyword" value="<%=keyword%>" >
<input type="hidden" name="pageNum" value="<%=pageNum-1>0?pageNum-1:1%>" >
<a οnclick="preForm.submit()">[上页]</a>
</form>
</td>
<td>
<form name="nextForm" method="post" >
<input type="hidden" name="xianshi" value="<%=xianshi%>" >
<input type="hidden" name="keyword" value="<%=keyword%>" >
<input type="hidden" name="pageNum" value="<%=pageNum+1>zys?zys:pageNum+1%>" >
<a οnclick="nextForm.submit()">[下页]</a>
</form>
</td>
<td>
<form name="lastForm" method="post" >
<input type="hidden" name="xianshi" value="<%=xianshi%>" >
<input type="hidden" name="keyword" value="<%=keyword%>" >
<input type="hidden" name="pageNum" value="<%=zys%>" >
<a οnclick="lastForm.submit()">[末页]</a>
</form>
</td>
</tr>
<tr>
<td colspan="4">
<form name="tzForm" method="post" >
<input type="hidden" name="xianshi" value="<%=xianshi%>" >
<input type="hidden" name="keyword" value="<%=keyword%>" >
<input name="pageNum" οnkeyup="this.value=this.value.replace(/\D/g,'');if(this.value<=0){this.value='';};if(this.value><%=zys %>){this.value='';};" style="width: 30px;" >
<a οnclick="tzForm.submit()">[跳转]</a>第<%=pageNum %>/<%=zys %>页
</form>
</td>
</tr>
</table>