?? search.asp
字號(hào):
<!--#include file="conn.asp"-->
<!--
'----------------------------------------------------------------------
'轉(zhuǎn)發(fā)時(shí)請(qǐng)保留此聲明信息,這段聲明不并會(huì)影響你的速度!
'******************* 商務(wù)鏈圖文發(fā)布系統(tǒng) ***************************
'程序名稱:商務(wù)鏈圖文發(fā)布系統(tǒng)1.0
'程序設(shè)計(jì):銀杏公子
'電子郵件:bhj0523@163.com
'網(wǎng)站支持:http://www.35lian.com
'Q Q 支持:411655198
'版權(quán)所有:商務(wù)鏈 (www.35lian.com)
'版權(quán)聲明:
'1、未經(jīng)授權(quán)許可,不得將本程序用于盈利或非盈利性的商業(yè)用途。
'2、為適應(yīng)實(shí)際的計(jì)算機(jī)應(yīng)用環(huán)境或者改進(jìn)其功能、性能,可以進(jìn)行必要的修改,但不得去除商務(wù)鏈 (www.35lian.com)版權(quán)標(biāo)示;未經(jīng)終點(diǎn)書面授權(quán)許可,不得向任何第三方提供修改后的程序。
'3、使用本程序必須保留商務(wù)鏈的版權(quán)聲明,將本程序從原有自然語言文字轉(zhuǎn)換成另一自然語言文字的,仍應(yīng)注明出處。
'**********************************************************************
'----------------------------------------------------------------------
-->
<%
key=request("key")
otype=request("otype")
if key="" then
response.write "<script>alert('查找字符串不能為空!');history.back();</Script>"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
<title>商務(wù)鏈</title>
</head>
<body topmargin="0"><!--#include file="top.asp"-->
<table width="760" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr>
<td width="160" height="300" valign="top" bgcolor="efefef">
<!--#include file="left.asp"-->
</td>
<td width="600" align="center" valign="top" bgcolor="#FFFFFF">
<table width="100%" height="40" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<%
Set rs= Server.CreateObject("ADODB.Recordset")
if otype="title" then
sql="select * from NEWS where title Like '%"& key &"%' order by id desc"
elseif otype="msg" then
sql="select * from NEWS where content Like '%"& key &"%' order by id desc"
else
end if
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'>對(duì)不起,沒有找到相關(guān)新聞</p>"
else
%>
<tr bgcolor="#9999CC">
<td width="9%" height="25" align="center" bgcolor="#FF0000"><font color="#FFFFFF">ID</font></td>
<td width="55%" align="center" bgcolor="#FF0000"><font color="#FFFFFF">新聞標(biāo)題</font></td>
<td width="15%" align="center" bgcolor="#FF0000"><font color="#FFFFFF">發(fā)布者</font></td>
<td width="21%" align="center" bgcolor="#FF0000"><font color="#FFFFFF">發(fā)布日期</font></td>
</tr>
<%
i=0
do while not rs.eof
%>
<tr bgcolor="#FFFFFF">
<td height="22" align="center"><%=rs("id")%></td>
<td> <a href="html/<%=rs("c_filepath")%>" target="_blank"><%=rs("title")%></a></td>
<td align="center"><%=left(rs("user"),5)%></td>
<td align="center"><%=rs("infotime")%></td>
</tr>
<%
rs.movenext
i=i+1
loop
%>
<tr bgcolor="#FFFFFF">
<td height="24" colspan="4">
<div align="center">關(guān)鍵字<font color="#FF0000"><strong><%=key%></strong></font>,共為您找到<font color="#FF0000"><%=i%></font>條新聞</div></td>
</tr>
<%
end if
rs.close
set rs=nothing
%>
</table>
</td>
</tr>
</table><!--#include file="bottom.asp"-->
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -