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

📄 search.asp

📁 广告策划中心整站程序
💻 ASP
字号:
<!--#include file="Comm/conn.asp" -->
<%
Dim pageurl
pageurl="search.asp"
Page=request("page")
SubLar=request("LarCode")
Keywords=Trim(request("keywords"))

sqlprod="select * from ProdMain where online=true "
if SubLar<>"" then sqlprod = sqlprod + "and LarCode='"&SubLar&"'"
'在项目和名称里面查找
if Keywords<>"" then sqlprod = sqlprod + "and ProdName like '%"&keywords&"%' or Model like '%"&keywords&"%'"
%>
<html><head>
<title>搜索结果-<%=keywords%>-<%=sitename%>-<%=siteurl%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="cycoo15.css" type="text/css">
</head>
<body bgcolor="#011D32" background="images/bggreen.gif" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center"> 
  <!--#include file="menu/topbar.asp"-->
  <table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr> 
      <td width="780" height="1" bgcolor="#FFFFFF"></td>
    </tr>
    <tr> 
      <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="197">
          <param name="movie" value="menu2.swf">
          <param name="quality" value="high">
          <embed src="menu2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="197"></embed></object></td>
    </tr>
    <tr> 
      <td bgcolor="A5B2C6" height="18" class="new"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td> 
              <!--#include file="menu/searchbar.asp"-->
            </td>
          </tr>
        </table></td>
    </tr>
  </table>
  <TABLE width=760 border=0 align=center cellpadding=0 cellspacing=0 bgcolor="#FFFFFF">
    <TR>
      <td height="315" bgcolor="FFFBF7" align="center" valign="top" width="185"> 
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height=8></td>
          </tr>
        </table>
        <!--#include file="loginbox.asp"-->
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height=8></td>
          </tr>
        </table>
        <!--#include file="prodtree.asp"-->
      </TD>
      <td height="100" bgcolor="#CCCCCC" width="1"></td>
      <td height="100" valign="top" align="center" bgcolor="#FfFfFf">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height=8></td>
          </tr>
        </table><%'分大类显示作品
Set rsprod=Server.CreateObject("ADODB.RecordSet") 
	rsprod.open sqlprod,conn,1,1
n=0
if rsprod.bof and rsprod.eof then
response.write "<table><tr><td height=100 align=center>很抱歉!没有找到 <b>"&keywords&"</b> 作品<br><br><font color=red>更换您输入的关键字再试试!</font></td></tr></TABLE>"

else
'以下是调用公用的作品显示页面,
%>
<!--#include file="prodlist.asp"-->
<%end if%>
        
      </TD>
    </TR>
  </TABLE>
  <!--#include file="menu/bottom.asp"-->
</div>
</body>
</html>
<%
set conn=nothing
%>

⌨️ 快捷键说明

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