|
主题:V6中的单页面无法访问 [收藏主题] | 转到: |
在文章系统新建了一个单页面,但是预览的时候无法显示,问题如下:
技术信息(用于支持人员)
找到/KS_Cls/Kesion.Label.BaseFunCls.asp, 第 131 行 '********************************************************************************************************* '函数名:ReplacePrevNext '作 用:上一篇、下一篇 '参 数:NowID 现在ID,Tid 目录ID,TypeStr类型 '********************************************************************************************************* Function GetPrevNextURL(ChannelID,NowID, Tid, TypeStr,ByRef Title) Dim SqlStr,LinkUrl SqlStr="SELECT Top 1 ID,Title,Tid,Fname From " & KS.C_S(ChannelID,2) & " Where Tid='" & Tid & "' And ID" & TypeStr & NowID & " And Verific=1 and DelTF=0 Order By ID" If TypeStr=">" Then SqlStr=SqlStr & " asc" else SqlStr=SqlStr & " desc" Dim RS:Set RS=Conn.Execute(SqlStr) //这里就是第131行 If RS.EOF And RS.BOF Then GetPrevNextURL = "#" : Title = "没有了" Else LinkUrl = KS.GetItemURL(ChannelID,RS(2),RS(0),RS(3)) GetPrevNextURL = LinkUrl : Title= "<a href=""" & LinkUrl & """ title=""" & RS(1) & """>" & RS(1) & "</a>" End If RS.Close:Set RS = Nothing End Function Function ReplacePrevNext(ChannelID,NowID, Tid, TypeStr) Dim Title Call GetPrevNextURL(ChannelID,NowID, Tid, TypeStr,Title) ReplacePrevNext=Title End Function '替换自定义字段 Function ReplaceUserDefine(ChannelID,F_C,ByVal RS) If Not IsObject(Application(KS.SiteSN&"_userfiledlist"&channelid)) Then Set Application(KS.SiteSN&"_userfiledlist"&channelid)=KS.InitialObject("msxml2.FreeThreadedDOMDocument"& MsxmlVersion) Application(KS.SiteSN&"_userfiledlist"&channelid).appendChild(Application(KS.SiteSN&"_userfiledlist"&channelid).createElement("xml")) Dim D_F_Arr,K,Node,FieldName Dim KS_RS_Obj:Set KS_RS_Obj=Conn.Execute("Select FieldName From KS_Field Where ChannelID=" & ChannelID &" And ShowOnForm=1 Order By OrderID Asc") If Not KS_RS_Obj.Eof Then D_F_Arr=KS_RS_Obj.GetRows(-1) KS_RS_Obj.Close:Set KS_RS_Obj=Nothing If IsArray(D_F_Arr) Then For K=0 To Ubound(D_F_Arr,2) Set Node=Application(KS.SiteSN&"_userfiledlist"&channelid).documentElement.appendChild(Application(KS.SiteSN&"_userfiledlist"&channelid).createNode(1,"userfiledlist"&channelid,"")) Node.attributes.setNamedItem(Application(KS.SiteSN&"_userfiledlist"&channelid).createNode(2,"fieldname","")).text=D_F_Arr(0,K) Next End If End If For Each Node in Application(KS.SiteSN&"_userfiledlist"&channelid).documentElement.SelectNodes("userfiledlist"&channelid) FieldName=Node.selectSingleNode("@fieldname").text If Not IsNull(RS(FieldName)) Then F_C=Replace(F_C,"{$" & FieldName & "}",RS(FieldName)) Else F_C=Replace(F_C,"{$" & FieldName & "}","") End If Next ReplaceUserDefine=F_C End Function 费解,不知道怎么回事,麻烦知道的告诉我下,在线等,也可以联系我QQ:83970496 |
|
支持(0) | 反对(0) 顶端 底部 |
支持(0) | 反对(0) 顶端 底部 |
支持(0) | 反对(0) 顶端 底部 |
<上一主题 | 下一主题 > |