⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 right.asp

📁 K风搜索 2.1商业版 完整功能版 后台http://XXXXXX/admin/ 管理帐号:admin 管理密码:admin 安全密码: ks21 网站设置http://XXXXXX/
💻 ASP
字号:
javastr=""
<!--#include file="setup.asp"-->
<!--#include file="conn.asp"-->
<%
'================================================================================
'Product:K-Search Version 2.1
'本“软件产品”受《中华人民共和国著作权法》和《中华人民共和国计算机软件保护条例》 
'和国际条约的保护。如未经授权而擅自复制或传播本程序(或其中任何部分),将受到严厉
'的刑事及民事制裁,并将在法律许可的范围内受到最大可能的起诉!
'Homepage:http://www.lucoo.com/
'--------------------------------------------------------------------------------
'Copyright(c) 2005 lucoo.com All Rights Reserved 绿色互联 版权所有
'================================================================================
function filtration(str)
str=replace(str,chr(34),"")
str=replace(str,chr(35),"")
str=replace(str,chr(37),"")
str=replace(str,chr(38),"")
str=replace(str,chr(39),"")
str=replace(str,chr(40),"")
str=replace(str,chr(41),"")
str=replace(str,chr(42),"")
str=replace(str,chr(43),"")
str=replace(str,chr(45),"")
str=replace(str,chr(46),"")
str=replace(str,chr(58),"")
str=replace(str,chr(59),"")
str=replace(str,chr(60),"")
str=replace(str,chr(61),"")
str=replace(str,chr(62),"")
filtration=str
end Function

dim rs
dim keyword
dim keywordlist
keyword=Request.QueryString("keyword")
if keyword="" then
'
else
keyword=replace(keyword,"  "," ")
keyword=filtration(keyword)
keyword=ltrim(rtrim(keyword))

if len(keyword)>=3 then
keyword_left=left(keyword,2)
keyword_right=right(keyword,2)
keywordlist=keyword &" "& keyword_left &" "&keyword_right
keywordlist=split(keywordlist,chr(32))
else
keywordlist=split(keyword,chr(32))
end if


for i=0 to ubound(keywordlist)
sql=sql &" web.title like '%" & keywordlist(i) & "%' or "
sql=sql &" web.keyword like '%" & keywordlist(i) & "%' or "
sql=sql &" web.content like '%" & keywordlist(i) & "%' or "
sql=sql &" web.url like '%" & keywordlist(i) & "%' or "
next
sql=Left(SQL,(LEN(SQL)-3))
set rs=server.createobject("adodb.recordset")
rs.open "select id,title,keyword,url,content,verify,commend,commend_time from web where commend<>0 and commend_time>#"&formatdatetime(date,2)&"# and ("&sql&") and verify=0 order by commend desc",conn,1,1
if rs.eof and rs.bof then
'
else
dim totalPut   
dim CurrentPage
dim TotalPages
Const MaxPerPage=10
dim page
page=Request.QueryString("page")
if Not isempty(page) then
currentPage=Cint(page)
else
currentPage=1
end if 
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move  (currentPage-1)*MaxPerPage

showContent
else
currentPage=1
showContent
end if
end if
end if
sub showContent

dim id,title,content
set id=rs("id")
set title=rs("title")
set content=rs("content")

for i=1 to 10 step 1
%>
javastr=javastr+"<table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"1\">"
javastr=javastr+"<tr><td height=\"20\"><span><a href=\"<%=Web_path%>goto.asp?id=<%=id%>\"  target=\"_blank\"><%=title%></a></span></td>"
javastr=javastr+"</tr><tr>"
javastr=javastr+"<td height=\"20\"><font color=\"#666666\"><%=left(content,25)%></font></td>"
javastr=javastr+"</tr><tr>"
javastr=javastr+"<td bgcolor=\"#CCCCCC\"></td>"
javastr=javastr+"</tr></table>"
<%
rs.movenext
if rs.eof then exit for
next
End Sub
rs.close   
set rs=nothing
end if
conn.close   
set conn=nothing
%>
document.write (javastr)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -