首页 | 风讯安装 | 后台管理 | 升级转换 | 模板制作 | 标签说明 | 采集说明 | 常见问题 | 自由标签 | 样式管理 | 功能扩展 | 插件使用 |
常 见 问 题
新 手 入 门
中 级 进 阶
高 级 技 巧
 搜索文章时自动加上W3SVC/1/ROOT这个错误的链接的解决方法 ★★★★★ 【字体:小 大】 
搜索文章时自动加上W3SVC/1/ROOT这个错误的链接的解决方法
http://www.foosun.cn   作者:霜晨月   来源:  点击:  更新时间:06-06-16 10:41:08
 

修改Search.asp文件第89行----------------未经测试

    ClassCName1="<a href=" & GetDoMain& RssearchObj("SaveFilePath")&"/"& RssearchObj("ClassEName") &"/index."&RssearchObj("FileExtName")&" target=""_blank""><font color=red>「"& RssearchObj("ClassCName") &"」</font></a> "

但此方法错误。已经修正:

    Dim confimsn
set confimsn=conn.execute("select domain from config")
set Rs = server.CreateObject ("ADODB.RecordSet")
If Request("condition")="title" then
 Sql = "select * from News where DelTF=0 and AuditTF=1 and Title like '%"&Replace(request("keyword"),"'","''")&"%'"
elseif Request("condition")="content" then
 Sql = "select * from News where DelTF=0 and AuditTF=1 and  content like '%"&Replace(request("keyword"),"'","''")&"%'"
elseif Request("condition")="author" then
 Sql = "select * from News where DelTF=0 and AuditTF=1 and Author like '%"&Replace(request("keyword"),"'","''")&"%'"
end if
 Rs.Open Sql,Conn,1,3
%>
<html>
<head>
<title>搜索结果</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.MainMenuBGStyle {
 background-repeat: no-repeat;
 background-position: right center;
}
-->
</style>
</head>
<link href="CSS/css.css" rel="stylesheet">
<body>
<table width="70%" border="0" align="center" cellpadding="8" cellspacing="1" class="tabbgcolor">
  <tr class="tabbgcolorliWhite">
      <td width="78%" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="6">
        <tr>
          <td><font color="#999999">&lt;!---请自己设置您的模板-----&gt;</font></td>
        </tr>
        <tr>
          <td>以下为关键字<font color="#FF0000"><strong><%=request("KeyWord")%></strong></font>的相关内容</td>
        </tr>
      </table>
      <%
if Rs.eof and Rs.bof then
 Response.write "<p align='center'> 未找到符合你条件的<font color=#ff0000>"&Request("keyword")&"</font>信息</p>"
 Else
 rs.pagesize=40
 rs.absolutepage=cint(strpage)
 select_count=rs.recordcount
 select_pagecount=rs.pagecount
  for i=1 to rs.pagesize
  if rs.eof then
  exit for
  end if
 %>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22" bgcolor="#FFFFFF">·<%

9 7 3 1 2 4 8 :
文章录入:风讯科技  责任编辑:风讯科技  
·上一篇:正式版-错误:热点文章总是显示点击数最少的新闻. 解决方法
·下一篇:手动添加标签(热点新闻),生成首页就出错的解决方法
【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
 没有任何评论
2002-2006 Foosun Inc. 四川风讯科技发展有限公司.版权所有  蜀ICP备 05005237