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

📄 searchcom.asp

📁 一个功能很全面占用空间的小商城程序,适合个人网上开店使用
💻 ASP
字号:

<!--#include file="shoptop.asp"-->
<center>
<table width="775" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td valign="top"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td align="center" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0" height="520">
                          <tr> 
                            <td width="150" valign="top" align="left"> <table border="0" width="100%" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="150" valign="top" align="left"> 
                                    <!--#include file="leftlistcom.asp"-->
                                  </td>
                                </tr>
<script language="Javascript">
function checkserchinput()
{
	if(document.form.keyword.value=="")
	{
		alert("查询内容不能为空!");
		document.form.keyword.focus();
		return false;
	}
	return true;
}
</script>

                              </table></td>
                            <td width="590" height="100%" align="center" valign="top"> 

                  <table border="0" width="590" cellspacing="0" cellpadding="0" height="5">
      <tr>
        <td width="590" bgcolor="#FFf0ff" height="18" colspan="6">
        搜索结果
        </td>
      </tr>
      <tr>
  <td width="100%" bgcolor="#63CFFF" colspan="2" height="1"></td>
      </tr>

<center>
    <%sortid=request("sortid")
    hw_name=request("hw_name")
    sql="select * from hw where sortid='"&sortid&"' and hw_name like '%"&hw_name&"%'  order by hw_id DESC"
    rs.open sql,conn,3,3
    if rs.eof then
    %>

<tr>
  <td width="100%" colspan="6">没有你要找的商品</td>
</tr><%else%>
<tr><td width=10%>编号</td><td width=30%>商品名称</td><td width=2%>商品价格</td><td width=10%>浏览次数</td><td width=15%>加入收藏</td><td width=15%>立即订购</td></tr>
<%do while not rs.eof %>
<tr><td width=5%><%=rs("hw_id")%></td><td width=30%><a title="点击查看具体信息" href="javascript:openScript('views.asp?hw_id=<%=rs("hw_id")%>',550,500)"><%
name=rs("hw_name")
name=replace(name,hw_name,"<font color=red>"&hw_name&"</font>")
response.write name
%></a></td><td width=25%><%=rs("hw_cash")%></td><td width=20%><%=rs("hw_views")%></td><td width=15%><A href="favadd.asp?hw_id=<%=rs("hw_id")%>">加入收藏</a></td><td width=15%><a href='javascript:openbag(<%=rs("hw_id")%>)'><img src="image/buy.gif" width="64" height="16" border=0></a></td></tr>
<%rs.movenext
loop
end if
rs.close
%>
      </table>
    </center>

 </td>
                            
                          </tr>
                        </table> 

</td>
                    </tr>
                  </table>

</td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">

              <tr>
                <td><table width="100%" border="0" cellspacing="0">
                    <tr>
                      <td>
                        <!--#include file="copy.asp"-->
                      </td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
          <td bgcolor="3B6A05" width="1"></td>
        </tr>
      </table></td>
  </tr>
</table>

⌨️ 快捷键说明

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