求助大神么

[复制链接]
查看11 | 回复2 | 2021-1-27 05:54:14 | 显示全部楼层 |阅读模式
各位大神,我是新手,我现在是用dreamweaver可视化界面做了个搜索结果页面,现在碰到搜索出来的结果,要是有2页就出现问题了,点击下一页就没有搜索结果,我知道这是分页参数问题,但由于技术原因,,,自己解决不了恳请各位大神帮忙看看需要怎么修改。。。。
PS:我知道各位大神看不上用dreamweaver自带弄出来的代码。。但由于本人是自学所以先想看看dreamweaver弄出来的代码,然后再试着自己编写代码
以下是我的搜索页面代码:

"")Then
Recordset1__MM=Request.Form("qymc")
EndIf
%>
"")Then
Recordset1__NN=Request.Form("fwlly")
EndIf
%>

-1)Then
If(Recordset1_first>Recordset1_total)Then
Recordset1_first=Recordset1_total
EndIf
If(Recordset1_last>Recordset1_total)Then
Recordset1_last=Recordset1_total
EndIf
If(Recordset1_numRows>Recordset1_total)Then
Recordset1_numRows=Recordset1_total
EndIf
EndIf
%>
0)Then
Recordset1.MoveFirst
Else
Recordset1.Requery
EndIf
'setthenumberofrowsdisplayedonthispage
If(Recordset1_numRowsRecordset1_total)Then
Recordset1_numRows=Recordset1_total
EndIf
'setthefirstandlastdisplayedrecord
Recordset1_first=1
Recordset1_last=Recordset1_first+Recordset1_numRows-1
If(Recordset1_first>Recordset1_total)Then
Recordset1_first=Recordset1_total
EndIf
If(Recordset1_last>Recordset1_total)Then
Recordset1_last=Recordset1_total
EndIf
EndIf
%>
"")Then
MM_paramIsDefined=(Request.QueryString(MM_paramName)"")
EndIf
%>
0)then
'useindexparameterifdefined,otherwiseuseoffsetparameter
MM_param=Request.QueryString("index")
If(MM_param="")Then
MM_param=Request.QueryString("offset")
EndIf
If(MM_param"")Then
MM_offset=Int(MM_param)
EndIf
'ifwehavearecordcount,checkifwearepasttheendoftherecordset
If(MM_rsCount-1)Then
If(MM_offset>=MM_rsCountOrMM_offset=-1)Then'pastendormovelast
If((MM_rsCountModMM_size)>0)Then'lastpagenotafullrepeatregion
MM_offset=MM_rsCount-(MM_rsCountModMM_size)
Else
MM_offset=MM_rsCount-MM_size
EndIf
EndIf
EndIf
'movethecursortotheselectedrecord
MM_index=0
While((NotMM_rs.EOF)And(MM_index
MM_rsCount)Then
MM_size=MM_rsCount
EndIf
EndIf
'ifwewalkedofftheend,settheoffsetbasedonpagesize
If(MM_rs.EOFAndNotMM_paramIsDefined)Then
If(MM_offset>MM_rsCount-MM_sizeOrMM_offset=-1)Then
If((MM_rsCountModMM_size)>0)Then
MM_offset=MM_rsCount-(MM_rsCountModMM_size)
Else
MM_offset=MM_rsCount-MM_size
EndIf
EndIf
EndIf
'resetthecursortothebeginning
If(MM_rs.CursorType>0)Then
MM_rs.MoveFirst
Else
MM_rs.Requery
EndIf
'movethecursortotheselectedrecord
MM_index=0
While(NotMM_rs.EOFAndMM_index
-1)Then
If(Recordset1_first>MM_rsCount)Then
Recordset1_first=MM_rsCount
EndIf
If(Recordset1_last>MM_rsCount)Then
Recordset1_last=MM_rsCount
EndIf
EndIf
'setthebooleanusedbyhideregiontocheckifweareonthelastrecord
MM_atTotal=(MM_rsCount-1AndMM_offset+MM_size>=MM_rsCount)
%>
"")Then
MM_removeList=MM_removeList&"&"&MM_paramName&"="
EndIf
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
'addtheURLparameterstotheMM_keepURLstring
ForEachMM_itemInRequest.QueryString
MM_nextItem="&"&MM_item&"="
If(InStr(1,MM_removeList,MM_nextItem,1)=0)Then
MM_keepURL=MM_keepURL&MM_nextItem&Server.URLencode(Request.QueryString(MM_item))
EndIf
Next
'addtheFormvariablestotheMM_keepFormstring
ForEachMM_itemInRequest.Form
MM_nextItem="&"&MM_item&"="
If(InStr(1,MM_removeList,MM_nextItem,1)=0)Then
MM_keepForm=MM_keepForm&MM_nextItem&Server.URLencode(Request.Form(MM_item))
EndIf
Next
'createtheForm+URLstringandremovetheintial'&'fromeachofthestrings
MM_keepBoth=MM_keepURL&MM_keepForm
If(MM_keepBoth"")Then
MM_keepBoth=Right(MM_keepBoth,Len(MM_keepBoth)-1)
EndIf
If(MM_keepURL"")Then
MM_keepURL=Right(MM_keepURL,Len(MM_keepURL)-1)
EndIf
If(MM_keepForm"")Then
MM_keepForm=Right(MM_keepForm,Len(MM_keepForm)-1)
EndIf
'autilityfunctionusedforaddingadditionalparameterstothesestrings
FunctionMM_joinChar(firstItem)
If(firstItem"")Then
MM_joinChar="&"
Else
MM_joinChar=""
EndIf
EndFunction
%>
分 -->
回复

使用道具 举报

千问 | 2021-1-27 05:54:14 | 显示全部楼层
上接上面的代码:
1)Then
MM_moveParam="offset"
If(MM_keepMove"")Then
MM_paramList=Split(MM_keepMove,"&")
MM_keepMove=""
ForMM_paramIndex=0ToUBound(MM_paramList)
MM_nextParam=Left(MM_paramList(MM_paramIndex),InStr(MM_paramList(MM_paramIndex),"=")-1)
If(StrComp(MM_nextParam,MM_moveParam,1)0)Then
MM_keepMove=MM_keepMove&"&"&MM_paramList(MM_paramIndex)
EndIf
Next
If(MM_keepMove"")Then
MM_keepMove=Right(MM_keepMove,Len(MM_keepMove)-1)
EndIf
EndIf
EndIf
'setthestringsforthemovetolinks
If(MM_keepMove"")Then
MM_keepMove=Server.HTMLEncode(MM_keepMove)&"&"
EndIf
MM_urlStr=Request.ServerVariables("URL")&"?"&MM_keepMove&MM_moveParam&"="
MM_moveFirst=MM_urlStr&"0"
MM_moveLast=MM_urlStr&"-1"
MM_moveNext=MM_urlStr&CStr(MM_offset+MM_size)
If(MM_offset-MM_size


无标题文档



现在显示的是第条到第条(总共条)
0)AND(NOTRecordset1.EOF))
%>
序号企业名称企业注册号工商状态税务状态服务联络员企业类型
">



0Then%>
">第一页
0%>
0Then%>
">前一页
0%>

">下一页

">最后一页



回复

使用道具 举报

千问 | 2021-1-27 05:54:14 | 显示全部楼层
没人么帮忙么
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行