搜索文章時(shí)自動(dòng)加上W3SVC/1/ROOT這個(gè)錯(cuò)誤的鏈接的解決方法_風(fēng)訊Cms教程
修改Search.asp文件第89行----------------未經(jīng)測(cè)試
ClassCName1="<a href=" & GetDoMain& RssearchObj("SaveFilePath")&"/"& RssearchObj("ClassEName") &"/index."&RssearchObj("FileExtName")&" target=""_blank""><font color=red>「"& RssearchObj("ClassCName") &"」</font></a> "
但此方法錯(cuò)誤。已經(jīng)修正:
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>搜索結(jié)果</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"><!---請(qǐng)自己設(shè)置您的模板-----></font></td>
</tr>
<tr>
<td>以下為要害字<font color="#FF0000"><strong><%=request("KeyWord")%></strong></font>的相關(guān)內(nèi)容</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
- 最簡(jiǎn)單的欄目切換方法(樣式系列之欄目切換篇2)
- 我也放個(gè)欄目切換代碼,簡(jiǎn)簡(jiǎn)單單的。
- 搜狐女性頻道幻燈效果(幻燈系列之flash特效篇)
- 有效控制新聞內(nèi)容的圖片的尺寸
- 現(xiàn)提供增加<目錄生成規(guī)則>的方法!
- 風(fēng)訊里面上下篇標(biāo)簽DIV模式下浮動(dòng)的解決方法!
- 風(fēng)訊目錄路徑自由選擇的實(shí)現(xiàn)方法
- 新聞列表讀取內(nèi)容時(shí)去掉html代碼
- 添加文字廣告的解決方案!
- 發(fā)些滾動(dòng)的代碼
- 標(biāo)題下的分隔線在4.0中如何設(shè)置,還有標(biāo)題的行間距
- 隨時(shí)更換模版、廣告等,無(wú)須重新生成整站,共享出來(lái)供討論
風(fēng)訊Cms教程教程Rss訂閱Cms教程搜索
風(fēng)訊Cms教程推薦
- Foosun CMS V4.0 SP1版常見(jiàn)錯(cuò)誤解決辦法!
- 臨時(shí)發(fā)布之在首頁(yè)發(fā)布新聞 理解樣式-標(biāo)簽-模板之關(guān)聯(lián)
- 3.1sp1-圖片目錄直讀風(fēng)訊整合
- 出現(xiàn)加載 DLL 時(shí)出錯(cuò)的錯(cuò)誤
- 標(biāo)簽內(nèi)容限制2000字符怎么辦?
- 3.1自由標(biāo)簽建立的簡(jiǎn)單介紹
- 3.1-采集教程(1例)
- 4.0建站超級(jí)技巧3 附技巧1的視頻講述
- 風(fēng)訊4.0版后臺(tái)填加欄目演示錄象!
- 我的風(fēng)汛學(xué)習(xí)方法---新手請(qǐng)進(jìn),高手請(qǐng)多多指點(diǎn)。
- 相關(guān)鏈接:
復(fù)制本頁(yè)鏈接| 搜索搜索文章時(shí)自動(dòng)加上W3SVC/1/ROOT這個(gè)錯(cuò)誤的鏈接的解決方法
- 教程說(shuō)明:
風(fēng)訊Cms教程-搜索文章時(shí)自動(dòng)加上W3SVC/1/ROOT這個(gè)錯(cuò)誤的鏈接的解決方法
。