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

📄 productshow.asp

📁 广州市拓尔家具网源码 后台:mrsystem 用户名密码admin
💻 ASP
字号:
<!--#include file="Inc/SysProduct.asp" -->
<!--#include file="css.css" -->
<script language="JavaScript"> 
<!-- 
var flag=false; 
function DrawImage(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 200/200){ 
   if(image.width>200){
    ImgD.width=200; 
    ImgD.height=(image.height*200)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
  else{ 
   if(image.height>200){
    ImgD.height=200; 
    ImgD.width=(image.width*200)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
 }
}
//--> 
</script> 

<%
ShowSmallClassType=ShowSmallClassType_Article
dim ID
ID=trim(request("ID"))
if ID="" then
	response.Redirect("Product.asp")
end if

sql="select * from Product where ID=" & ID & ""
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
%>
<TITLE><%=rs("title")%>--<%=SiteName%>--<%=SiteTitle%></TITLE>
<style type="text/css">
<!--
.STYLE3 {font-size: 14px}
.STYLE4 {
	color: #FF9900;
	font-size: 14px;
}
.STYLE5 {color: #FF9900}
-->
</style>
<!--#include file="top.asp"-->
<table width="1001" height="120" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="316" valign="top"><!--#include file="left.asp" --></td>
    <td width="654" align="center" valign="top"><table width="620" height="34" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="620" height="59" align="left" background="images/amain_8.gif"><span class="STYLE4">产品中心</span></td>
      </tr>
    </table>
      <table width="620" height="248" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="248" align="center" valign="top"><table Class=border width="100%" height="150%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="670" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <TR>
                  <TD 
                  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")
%>
                    <a href="Payment.asp?Product_Id=<%=rs("Product_Id")%>",target="_blank"></a></TD>
                </TR>
                <TR>
                  <TD 
                  height=1 colspan="2" background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif" 
              width=10></TD>
                </TR>
                <TR>
                  <TD height="237" colspan="2"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="21" colspan="3">&nbsp;</td>
                      </tr>
                      <tr>
                        <%fileExt=lcase(getFileExtName(rs("DefaultPicUrl")))%>
                        <td width="44%" rowspan="6"><font color="#FF6600">&nbsp;</font><font color="#FF6600">&nbsp;</font>
                          <%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
                          <a href="<%=rs("DefaultPicUrl")%>" target="_blank"><img style="BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-COLOR: #cccccc; BORDER-TOP-COLOR: #cccccc; BORDER-RIGHT-COLOR: #cccccc" src=<%=rs("DefaultPicUrl")%> width="200" height="200" onload="javascript:DrawImage(this);"></a>
                          <%else if fileext="" then%>
                          <img style="BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-COLOR: #cccccc; BORDER-TOP-COLOR: #cccccc; BORDER-RIGHT-COLOR: #cccccc" src=img/nopic.gif >
                          <%else if fileext="swf" then%>
                          <object  classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'  codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='200' height='200'>
                            <param name=movie value='<%=rs("DefaultPicUrl")%>'>
                            <param name=quality value=high>
                            <param name='Play' value='-1'>
                            <param name='Loop' value='0'>
                            <param name='Menu' value='-1'>
                            <embed src='<%=rs("DefaultPicUrl")%>' width='200' height='200' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' ></embed>
                          </object>
                          <%end if end if end if%>                        </td>
                        <td height="18%"><div align="right" class="STYLE5">产品编号:</div></td>
                        <td><font color="#FF6600"><strong><%=rs("Product_Id")%></strong></font></td>
                      </tr>
                      <tr>
                        <td width="15%" height="18%"><div align="right" class="STYLE5">产品名称:</div></td>
                        <td width="41%"><font color="#FF6600"><strong><%=rs("title")%></strong></font></td>
                      </tr>
                      <tr>
                        <td height="18%"><div align="right" class="STYLE5">规  格:</div></td>
                        <td><font color="#FF6600"><strong><%=rs("Spec")%></strong></font></td>
                      </tr>
                      <tr>
                        <td height="18%"><div align="right" class="STYLE5">产品备注:</div></td>
                        <td><font color="#FF6600"><strong><%=rs("Memo")%></strong></font></td>
                      </tr>
                      <tr>
                        <td height="18%"><div align="right" class="STYLE5">产品类别:</div></td>
                        <td><font color="#FF6600"><strong><%=rs("BigClassName")%></strong></font></td>
                      </tr>
                      <tr>
                        <td height="18%" colspan="2">&nbsp;</td>
                      </tr>
                      
                  </table></TD>
                </TR>
                <TR>
                  <TD  colspan="2"><TABLE cellSpacing=0 cellPadding=0 width="100%" 
                              border=0>
                      <TBODY>
                        <TR>
                          <TD class="title_b"></TD>
                          <TD><TABLE cellSpacing=0 cellPadding=0 width="100%" 
                                border=0>
                              <TBODY>
                                <TR>
                                  <TD width=98><font color="#FFFFFF" size="2">产品说明</font></TD>
                                  <TD width="555" class="title_right">&nbsp;</TD>
                                </TR>
                              </TBODY>
                          </TABLE></TD>
                        </TR>
                        <TR>
                          <TD vAlign=bottom colSpan=2 height=5><TABLE cellSpacing=0 cellPadding=0 width="100%" 
                                border=0>
                              <TBODY>
                                <TR>
                                  <TD bgColor=#e3e3e3 
                                height=1></TD>
                                </TR>
                              </TBODY>
                          </TABLE></TD>
                        </TR>
                      </TBODY>
                  </TABLE></TD>
                </TR>
                <TR>
                  <TD height="1" colspan="2"><br>
                      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td><font color="#FFFFFF" size="2">
                            <%call ShowProductContent()%>
                          </font></td>
                        </tr>
                      </table>
                    <br></TD>
                </TR>
                <TR>
                  <TD 
                  height=1 colspan="2" background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif" 
              width=10></TD>
                </TR>
                <TR>
                  <TD 
                  height=25 align="right"><font color="#FFFFFF" size="2">点击数:<%=rs("Hits")%>&nbsp; 录入时间:<%= FormatDateTime(rs("UpdateTime"),2) %>&nbsp;【<a href='javascript:window.print()'>打印此页</a>】&nbsp;【<a href="javascript:self.close()">关闭</a>】</font></TD>
                </TR>
          </table></td></tr>
    </table></td>
        </tr>
      </table>
    </td>
    <td width="31" valign="top"><img src="images/amain_9.gif" width="65" height="219" /></td>
  </tr>
</table>
<%
end if
rs.close
set rs=nothing
call CloseConn()
%>
<!--#include file="foot.asp" -->

⌨️ 快捷键说明

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