<%
    String sJspName_PAGE = SzConvert.getJspName(request.getServletPath());
%>    
      <!----翻页---->
      <% if (iCurrentPage==1) { %>
      首页
      上页
      <% } else {%>
      <a href="#" OnClick="javascript:FormSubmit(formPage,'<%=sJspName_PAGE%>?page=1');">首页</a>
      <a href="#" OnClick="javascript:FormSubmit(formPage,'<%=sJspName_PAGE%>?page=<%=iCurrentPage-1%>');">上页</a>
      <% } %>
      <% if (iCurrentPage<iPageCount) { %>
      <a href="#" OnClick="javascript:FormSubmit(formPage,'<%=sJspName_PAGE%>?page=<%=iCurrentPage+1%>');">下页</a>
      <a href="#" OnClick="javascript:FormSubmit(formPage,'<%=sJspName_PAGE%>?page=<%=iPageCount%>');">尾页</a>
      <% } else { %>
      下页
      尾页
      <% } %>
      第<input type="text" name="page" class="txtClassPage" value="<%=iCurrentPage%>" size="2"  OnMouseOver="javascript:this.select();" onkeydown="javascript:SearchEnterKey();">页

      共&nbsp;<%=iPageCount%>&nbsp;页/共&nbsp;<%=iRecordCount%>&nbsp;记录&nbsp;
      <!----快速查找---->快速查找
      <input type="text" name="txtSearch" class="txtClassSearch" value="<%=sSearch.trim()%>" size="10" OnMouseOver="javascript:this.select();"  onkeydown="javascript:SearchEnterKey();">
      <input type="button" name="btnGoPage" class="btnClass" value="确定"  OnClick="javascript:FormSubmit(formPage,'<%=sJspName_PAGE%>');">

<script language="javascript">
    function SearchEnterKey(e) {	
      //修改2011-11-03：支持safari,ff
      var et = e || window.event;
      if (et.keyCode) {
	if (et.keyCode == 13) {
	  FormSubmit(formPage,'<%=sJspName_PAGE%>');
	}
      } else  if (et.which  == 13) {
	  FormSubmit(formPage,'<%=sJspName_PAGE%>');
      }
    }
</script>