菜鸟求教,十万火急!!!
我弄了一个网站,是在网上下载的乐享cms,上传之后发现除了首页之外其他页面右下角都有一小块地方显示无法找到该网页,其他一切正常。初步怀疑是以下代码的问题<!--#include file="Inc/conn.asp"--><!--#include file="Inc/Function_Page.asp"-->
<!--#include file="Inc.asp"-->
<%
Dim ID
ID=LaoYRequest(request("id"))
If ID="" then
Call Alert("不正确的ID","Index.asp")
end if
set rsclass=server.createobject("adodb.recordset")
sql="select * from Yao_Class where id="&id
rsclass.open sql,conn,1,1
if rsclass.eof and rsclass.bof then
Call Alert("不正确的ID","Index.asp")
else
if rsclass("Link")=1 then
Response.Redirect ""&laoy(rsclass("Url"))&""
End if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<%=rsclass("keyword")%>" />
<meta name="description" content="<%=rsclass("ReadMe")%>" />
<link href="<%=SitePath%>images/8586<%=Css%>.css" ID="skin" type=text/css rel=stylesheet>
<link rel="shortcut icon" href="<%=SitePath%>images/myfav.ico" type="image/x-icon" />
<script type="text/javascript" src="<%=SitePath%>inc/main.asp"></script>
<%If rss=1 then%>
<link rel="alternate" title="订阅<%=rsclass("ClassName")%>(RSS 2.0)" href="http://<%=SiteUrl%><%=SitePath%>Rss/Rss<%=ID%>.xml" type="application/rss+xml" />
<%end if%>
<title><%=rsclass("ClassName")%><%=IIF(rsclass("ClassName2")<>"","-"&rsclass("ClassName2")&"-","-")%><%=SiteTitle%></title>
</head>
<body>
<!-- //包含头部文件-->
<%=Head%>
<div class="mw">
<!-- //导航-->
<div class="dh">
您现在的位置:<a href="<%=SitePath%>">首页</a> >> <%If rsclass("TopID")>0 then%><a href="<%=IIF(Html=3,""&SitePath&"news/news_"&rsclass("TopID")&".html",""&SitePath&"news.asp?ID="&rsclass("TopID")&"")%>"><%=Classlist(rsclass("TopID"))%></a> >> <%End if%><a href="<%=IIF(Html=3,""&SitePath&"news/news_"&ID&".html",""&SitePath&"news.asp?ID="&ID&"")%>"><%=rsclass("ClassName")%></a> >> 列表
</div>
<!-- //left-->
<div id="nw_left">
<%If Mydb("Select Count([ID]) From ["&tbname&"_Class] Where TopID="&ID&"",1)(0)>0 then%>
<div id="web2l" style="border:0px;">
<%
Sqlpp ="select [ID],[ClassName] from "&tbname&"_Class Where TopID="&ID&" order by num"
Set Rspp=server.CreateObject("adodb.recordset")
rspp.open sqlpp,conn,1,1
Do while not Rspp.Eof
%>
<div id="sclass">
<h6><span><a href="<%=IIF(Html=3,""&SitePath&"news/news_"&rspp("ID")&".html",""&SitePath&"news.asp?ID="&rspp("ID")&"")%>">more...</a></span><a href="<%=IIF(Html=3,""&SitePath&"news/news_"&rspp("ID")&".html",""&SitePath&"news.asp?ID="&rspp("ID")&"")%>"><%=rspp("ClassName")%></a><%If rss=1 then%><a href="http://<%=SiteUrl%><%=SitePath%>Rss/Rss<%=rspp("ID")%>.xml" target="_blank"><img src="<%=SitePath%>images/rss.gif" title="订阅<%=rspp("ClassName")%>(RSS 2.0)" style="margin:0 0 0 30px;"/></a><%End if%></h6>
<ul>
<%Call ShowArticle(rspp("id"),10,5,"·",100,"no","DateAndTime desc,ID desc",0,0)%>
</ul>
</div>
<%
Rspp.Movenext
Loop
rspp.close
set rspp=nothing
%>
</div>
<%else%>
<div id="web2l">
<h6><%=rsclass("ClassName")%></h6>
<div id="content">
<ul id="listul">
<%
Set mypage=new xdownpage
mypage.getconn=conn
mypage.getsql="Select ID,Title,DateAndTime,Hits,IsTop,Images,TitleFontColor,Artdescription from "&tbname&"_Article Where ClassID="&rsclass("ID")&" and yn=0 order by IsTop desc,DateAndTime desc"
mypage.pagesize=artlistnum
set rs=mypage.getrs()
for i=1 to mypage.pagesize
if not rs.eof then
%>
<li style="border-bottom:1px dashed #CCCCCC;">
<!-- //ding-->
<%If rs("IsTop")=1 then Response.Write("<font color=red>[顶]</font>") end if%>
<a href="<%If html=1 then Response.Write(""&SitePath&"article.asp?ID="&rs("ID")&"") else:if html=2 then Response.Write(""&SitePath&"article/?"&rs("ID")&".html") else:if html=3 then Response.Write(""&SitePath&"article/"&rs("ID")&".html") End if%>" target="_blank"><%if rs("TitleFontColor")<>"" then Response.Write("<font style=""color:"&rs("TitleFontColor")&""">"&rs("Title")&"</font>") else Response.Write(""&rs("Title")&"") end if%></a>
<span style="color:#AAA;font-size:12px;"><%=FormatDate(rs("DateAndTime"),11)%></span>
</li>
<%If artlist=0 then%>
<div class="box" style="height:65px;"><%=left(LoseHtml(rs("Artdescription")),90)%>...</div>
<%End if%>
<%
rs.movenext
else
exit for
end if
next
%>
</ul>
</div>
<div id="clear"></div>
<div id="page">
<ul>
<%=mypage.showpage()%>
</ul>
</div>
</div>
<%
rs.close
set rs=nothing
end if
%>
</div>
<!-- //right-->
<div id="nw_right">
<%Call ShowAD(3)%>
<div id="web2r">
<h5>热门信息</h5>
<ul id="list10">
<%Call ShowArticle(ID,10,5,"·",100,"no","Hits desc,ID desc",0,0)%>
</ul>
</div>
<%Call ShowAD(4)%>
</div>
</div>
<%=Copy%>
<%
rsclass.close
set rsclass=nothing
end if%></div>
</body>
</html>上面是那一页的全部源代码。大家帮忙看看是否有什么问题,比如站内搜索什么的。