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

📄 product.asp

📁 网站源码
💻 ASP
字号:
<!--#include file="setup.asp" -->
<% 
if not isempty(request("pageno")) or request("pageno")<>0 then
pageno=request.querystring("pageno")
else
pageno=1
end if



if request("pro_type") <> "" then
pro_type=request("pro_type")
else
pro_type=0
end if

 %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=web_name%>公司简介</title>
<link href="inc/style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<!--#include file="index_top.asp" -->

<table width="762" height="5" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="f5f5f5" class="tablelinenotop">
  <tr> 
    <td></td>
  </tr>
  <tr> 
    <td height="1" bgcolor="#CCCCCC"></td>
  </tr>
</table>
<table width="762" height="335" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tablelinenotop">
  <tr> 
    <td width="170" valign="top" bgcolor="#FFFFFF"> 
      <div align="center"> 

        <table width="100%" height="47" border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td><img src="image/produ.jpg" width="170" height="50"></td>
          </tr>
        </table>
        
        <table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
          <tr> 
            <td></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td>&nbsp;</td>
          </tr>
        </table>
 <!--#include file="pro_type.asp" -->

      </div></td>
    <td width="1" bgcolor="#cccccc"></td>
    <td width="583" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>&nbsp;</td>
        </tr>
      </table>
      <table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
	  <form action="pro_search.asp" method="post" name="form2">
        <tr> 
          <td width="74%" height="34"> <div align="right"><font color="#FF9900">快速查找 </font>
              <input name="keyword" type="text" size="15" maxlength="50">
              &nbsp;&nbsp; </div></td>
            <td width="26%"><input type="image" src="image/pro/community_board_btn_search.gif" width="45" height="20" border="0"></a> 
            </td>
        </tr>
		</form>
        <tr> 
          <td colspan="2"><div align="center"> 
              <table width="95%" height="4" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                <tr> 
                  <td bgcolor="f5f5f5"></td>
                </tr>
              </table>
            </div></td>
        </tr>
      </table>
	  <% 
	  strsql="select * from pro_list"
	  if pro_type<>0 then
	  strsql=strsql&" where pro_type="&pro_type
	  end if
	  set rs = Server.CreateObject("ADODB.Recordset")
		rs.Open strsql, conn, 1, 1
		
	if not rs.eof then
page=9
rs.pagesize=page
maxpage=rs.pagecount
if pageno < 1 then
pageno =1
end if
if pageno+1 >maxpage+1  then
pageno=maxpage
end if
rs.absolutePage=pageno
else
maxpage=1
end if
total = rs.RecordCount
	   %>

      <table width="549" border="0" align="center" cellpadding="0" cellspacing="0">
	  <% while not rs.eof and page>0 %>
        <tr> 
          <td width="1" background="image/pro/dot.gif"></td>
          <td height="200" valign="top"> 
            <table width="161" height="188" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="187" height="22" bgcolor="#8DB937"> <div align="center"><font color="#FFFFFF"><%= rs("pro_name") %></font></div></td>
              </tr>
              <tr> 
                <td height="118"> 
                  <div align="center"><img src="<%= rs("pro_img") %>" width="141" height="92"></div></td>
              </tr>
              <tr> 
                <td><table width="94%" height="29" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td><div align="right"><a href="product_view.asp?id=<%=rs("id")%>"><img src="image/pro/product_list_more.gif" width="38" height="13" border="0"></a></div></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
          </td>
		  <% if not rs.eof then
		  rs.movenext
		  page=page-1
		  end if
		   %>
          <td width="1" background="image/pro/dot.gif"></td>
          <td valign="top">
		  <% if not rs.eof then %>
		  <table width="161" height="188" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="187" height="22" bgcolor="#8DB937"> <div align="center"><font color="#FFFFFF"><%= rs("pro_name") %></font></div></td>
              </tr>
              <tr> 
                <td height="118"> <div align="center"><img src="<%= rs("pro_img") %>" width="141" height="92"></div></td>
              </tr>
              <tr> 
                <td><table width="94%" height="29" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td><div align="right"><a href="product_view.asp?id=<%=rs("id")%>"><img src="image/pro/product_list_more.gif" width="38" height="13" border="0"></a></div></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
			<%  end if %>
			</td>
					  <% if not rs.eof then
		  rs.movenext
		  page=page-1
		  end if
		   %>
          <td width="1" background="image/pro/dot.gif"></td>
          <td valign="top">
		   <% if not rs.eof then %>
		  <table width="161" height="188" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="187" height="22" bgcolor="#8DB937"> <div align="center"><font color="#FFFFFF"><%= rs("pro_name") %></font></div></td>
              </tr>
              <tr> 
                <td height="118"> <div align="center"><img src="<%= rs("pro_img") %>" width="141" height="92"></div></td>
              </tr>
              <tr> 
                <td><table width="94%" height="29" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td><div align="right"><a href="product_view.asp?id=<%=rs("id")%>"><img src="image/pro/product_list_more.gif" width="38" height="13" border="0"></a></div></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
			<%  end if %>
			
			</td>
        </tr>
        <tr> 
          <td height="1" background="image/pro/dot1.gif"></td>
          <td height="1" background="image/pro/dot1.gif"></td>
          <td height="1" background="image/pro/dot1.gif"></td>
          <td height="1" background="image/pro/dot1.gif"></td>
          <td height="1" background="image/pro/dot1.gif"></td>
          <td height="1" background="image/pro/dot1.gif"></td>
        </tr>
		<% if not rs.eof then
			rs.movenext
			end if
			page=page-1
			wend
			
			rs.close
			set rs=nothing
		  %>
      </table>
      <table width="100%" height="44" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><table width="100%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr class="font"> 
                <td width="188"> <div align="center">共有<%=total%>条记录</div></td>
                <td width="421"> <div align="center"> 共有<%=maxpage%>页 20条/页 目前第<%=pageno%>页 
                     <a href="product.asp?pageno=<%=pageno-1%>&pro_type=<%=pro_type%>">上一页</a> 
                     <a href="product.asp?pageno=<%=pageno+1%>&pro_type=<%=pro_type%>">下一页</a></div></td>
                <form name="form2" method="get" action="">
                  <td width="151">&nbsp; </td>
                </form>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<!--#include file="index_down.asp" -->
</body>
</html>

⌨️ 快捷键说明

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