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

📄 productshow.asp

📁 官方最新的南方数据v12生成静态商业版。全站生成静态。
💻 ASP
字号:
<!--#include file="Inc/Const.asp" -->
<!--#include file="Inc/SysProduct.asp" -->
<!--#include file="inc/Skin_css.asp"-->
<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="点击查看详细信息..."; 
  } 
 }
}

function EndSortChange(a,b)
{
	if(eval(a).style.display=='')
	{
		eval(a).style.display='none';
		eval(b).className='SortEndFolderOpen';
	}
	else
	{
		eval(a).style.display='';
		eval(b).className='SortEndFolderClose';
		
	}
}
function SortChange(a,b)
{
	if(eval(a).style.display=='')
	{
		eval(a).style.display='none';
		eval(b).className='SortFolderOpen';
	}
	else
	{
		eval(a).style.display='';
		eval(b).className='SortFolderClose';
	}
}
//--> 
</script> 

<%
dim ID
ID=replace(Trim(request("ID")),"'","")
if ID="" then
	response.Redirect("Product.asp")
end if

sql="select * from 0791idc_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=Trim(rs("Title"))
    HeadTitle=Title
%>
<!-- #include file="Head.asp" -->
<link href="Images/tree.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="LightBox/js/prototype.js"></script>
<script type="text/javascript" src="LightBox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="LightBox/js/lightbox.js"></script>

<link rel="stylesheet" href="LightBox/css/lightbox.css" type="text/css" media="screen" />


<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="5" valign="top" bgcolor="#FFFFFF"></td>
  </tr>
  <tr> 
    <td height="72" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="tdbg_left"  width="190" height="179" valign="top" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;用户登陆 
                </td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
                <td height="10"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                        <% call ShowUserLogin() %>
                      </td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;产品列表</td>
              </tr>
              <tr>
                <td height="5"></td>
              </tr>
              <tr>
                <td height="10"><table width="79%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><% call ProductClass(0)  %>
                      </td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;产品搜索</td>
              </tr>
              <tr>
                <td height="5"></td>
              </tr>
              <tr>
                <td height="10"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><% call ShowSearchForm("Search.asp",2) %>
                      </td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td height="5"></td>
              </tr>
            </table></td>
          <td width="6"></td>
          <td  valign="top"><table Class=border width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="206" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="22%" height="32" class="title_right">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;产 
                        品 展 示</td>
                      <td width="78%" class="title_right">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <TR> 
                      <TD width="452" 
                  height=25> 
				       <% call ShowClassGuide()
                         response.write "&nbsp;&gt;&gt;&nbsp"&Title
                       %> </TD>
                      <TD width="98"><a href="Payment.asp?Product_Id=<%=rs("Product_Id")%>",target="_blank"><img border=0 src=Images/inquire_now.gif
width=86 height=21></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="237" colspan="3"> <table width="90%" 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="4"><div align="center"><font color="#FF6600"></font><font color="#FF6600"></font> 
                                <%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
                              <a href="<%=rs("DefaultPicUrl")%>"  rel="lightbox[spots_pic]" title="<%=rs("Title")%>" 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="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%> 
                            <br>
                                <a href="<%=rs("DefaultPicUrl")%>"  rel="lightbox[spots_pic]" title="<%=rs("Title")%>" target="_blank"> 
                                <br>
                                <img src="Images/zoomin.jpg" width="71" height="15" border="0">                                </a></div></td>
                            <td height="39"><div align="right">产品编号:</div></td>
                            <td height="40"><font color="#FF6600"><strong><%=rs("Product_Id")%></strong></font></td>
                          </tr>
                          <tr> 
                            <td width="15%" height="39"><div align="right">产品名称:</div></td>
                            <td width="41%" height="40"><font color="#FF6600"><strong><%=rs("title")%></strong></font></td>
                          </tr>
                          <tr> 
                            <td height="31"><div align="right">规  格:</div></td>
                            <td height="40"><font color="#FF6600"><strong><%=rs("Spec")%></strong></font></td>
                          </tr>
                          <tr> 
                            <td height="29"><div align="right">产品备注:</div></td>
                            <td height="40"><font color="#FF6600"><strong><%=rs("Memo")%></strong></font></td>
                          </tr>
                          
                          <tr> 
                            <td height="9" colspan="3">&nbsp;</td>
                          </tr>
                        </table></TD>
                    </TR>
                    <TR> 
                      <TD height="28" colspan="3" valign="bottom" class="title_right2">   产品说明</TD>
                    </TR>
                    <TR> 
                      <TD height="1" colspan="3"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                          <tr> 
                            <td><%call ShowProductContent()%></td>
                          </tr>
                        </table></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 colspan="2"> <li>上一个产品: 
                          <% call ShowPrevProduct(200) %>
                  </li>
                  <br>
                        <li>下一个产品: 
                          <% call ShowNextProduct(200) %>
                          <br>
                      </TD>
                    </TR>
                    <TR> 
                      <TD 
                  height=25>点击数:<%=rs("Hits")%>&nbsp; 录入时间:<%= FormatDateTime(rs("UpdateTime"),2) %>&nbsp;【<a href='javascript:window.print()'>打印此页</a>】&nbsp;【<a href="javascript:self.close()">关闭</a>】</TD>
                      <TD 
                  height=25><a href="Payment.asp?Product_Id=<%=rs("Product_Id")%>",target="_blank"><img border=0 src=Images/inquire_now.gif
width=86 height=21></a></TD>
                    </TR>
                  </table> </td>
              </tr>
            </table></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 + -