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

📄 productshow.asp

📁 只要会打字就可以做网站
💻 ASP
字号:
<!--#include file="Inc/syscode.asp"-->
<!--#include file="inc/Skin_css.asp"-->
<%
ShowSmallClassType=ShowSmallClassType_Article
dim ArticleID
ArticleID=trim(request("ArticleID"))
if ArticleId="" then
	response.Redirect("Product.asp")
end if

sql="select * from Product where ArticleID=" & ArticleID & ""
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,3
if rs.bof and rs.eof then
	response.write"<SCRIPT language=JavaScript>alert('找不到此产品!');"
  response.write"javascript:history.go(-1)</SCRIPT>"
else	
	rs("Hits")=rs("Hits")+1
	rs.update
	if rs("hits")>=HitsOfHot then
		rs("Hot")=True
		rs.update
	end if
	BigClassName=rs("BigClassName")
	SmallClassName=rs("SmallClassName")
%>
 <%if not(rsBigClass.bof and rsBigClass.eof) and ShowSmallClassType="Menu" then response.write " onmousemove='HideMenu()'"%>
<!-- #include file="Head.asp" -->
<table width="779" height="5"  border="0" cellpadding="0" cellspacing="0" background="Img/contopbg.gif" align="center"><!--DWLayoutTable-->
  <tr>
    <td><table width="226" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="209"></td>
          <td width="17" background="Img/contopbg2.gif"></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="779"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
  <tr>
    <td width="209" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td ><img src="Img/login.gif"  width="196" height="32"></td>
      </tr>
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td height="10" align="center"><table  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="Img/left1.gif" width="187" height="19"></td>
            </tr>
            <tr>
              <td background="Img/left2.gif"><table width="90%" border="0" align="center" cellpadding="2" cellspacing="0">
                  <tr>
                    <td align="center">
                      <% call ShowUserLogin() %></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td><img src="Img/left3.gif" width="187" height="20"></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td height="5"></td>
      </tr>
    </table>
      <table width="209" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center"></td>
        </tr>
        <tr>
          <td>
            <div align="center">
              <table width="209"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="5"></td>
                </tr>
                <tr>
                  <td><img src="Img/shang.gif" width="203" height="33"></td>
                </tr>
              </table>
              <table width="209" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td>
                    <% call ShowSmallClass_Tree() %>
                  </td>
                </tr>
              </table>
          </div></td>
        </tr>
        <TR>
          <TD 
                            height=3 colspan="2"></TD>
        </TR>
      </table>
      <p>&nbsp;</p>      <p>&nbsp;</p>
        <p>&nbsp;</p></td>
		
		
		
    <td width="17" background="Img/combg.gif">&nbsp;</td>
    <td valign="top"><table width="563" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><table width="563"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="2"></td>
              </tr>
              <tr>
                <td height="26">&nbsp; <span >&nbsp;&nbsp;<img src="Img/HaoSc23.png" width="14" height="16" align="absmiddle"> &nbsp;<span class="tt_16">产 品 展 示</span></span></td>
              </tr>
              <tr>
                <td height="2" bgcolor="#CBE0E9"></td>
              </tr>
          </table></td>
        </tr>
      </table>
        <table width="563" border="0" align="center" cellpadding="0" cellspacing="0">
          <TR>
            <TD width="451" 
                  height=25>
              <%
response.write "&nbsp;<a href='Product.asp?BigClassName=" & rs("BigClassName") & "'>" & rs("BigClassName") & "</a>&nbsp;&gt;&gt;&nbsp;"
if rs("SmallClassName") & ""<>"" then
	response.write "<a href='Product.asp?BigClassName=" & rs("BigClassName")&"&SmallClassName=" & rs("SmallClassName") & "'>" & rs("SmallClassName") & "</a>&nbsp;&gt;&gt;&nbsp;"
end if
response.write rs("Title")
%>
            </TD>
            <TD width="106"><a href=# onClick="window.open('add.asp?Product_Id=<%=rs("Product_Id")%>','blank_','scrollbars=yes,resizable=no,width=650,height=450')"><img border=0 src=Img/addtocart.gif
width=100 height=26></a></TD>
          </TR>
          <TR>
            <TD 
                  height=1 colspan="3" background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif" 
              width=10></TD>
          </TR>
          <TR>
            <TD height="1" colspan="3">
              <%call ShowArticleContent()%>
            </TD>
          </TR>
          <TR>
            <TD 
                  height=1 colspan="3" background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif" 
              width=10></TD>
          </TR>
          <TR>
            <TD 
                  height=25>点击数:<%=rs("Hits")%>&nbsp; 录入时间:<%= FormatDateTime(rs("UpdateTime"),2) %>&nbsp;【<a href='javascript:window.print()'>打印此页</a>】&nbsp;【<a href='javascript:history.back()'>返回</a>】</TD>
            <TD 
                  height=25><a href=# onClick="window.open('add.asp?Product_Id=<%=rs("Product_Id")%>','blank_','scrollbars=yes,resizable=no,width=650,height=450')"><img border=0 src=Img/addtocart.gif 
width=100 height=26></a></TD>
          </TR>
        </table></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
</BODY></HTML>
<%
end if
rs.close
set rs=nothing
call CloseConn()
%>

⌨️ 快捷键说明

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