<!--#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="点击查看详细信息..."; 
  } 
 }
}
//--> 
</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
%>
<!-- #include file="Head.asp" -->
<table width="850" 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="843" 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="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                        <% call ShowSmallClass_Tree() %>
                      </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 class="title_right" height="32">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;产 
                        品 展 示</td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <TR> 
                      <TD width="452" 
                  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="98"><a href="Payment.asp?Productlj_Id=<%=rs("Productlj_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="5"><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="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%>	
							
							</td>
                            <td height="39"><div align="right">产品编号：</div></td>
                            <td height="40"><font color="#FF6600"><strong><%=rs("Productlj_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>
<script language="javascript">
top.document.title="<%=rs("title") %>"; 
</script>
                          <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="31"><div align="right">产品类别：</div></td>
                            <td height="40"><font color="#FF6600"><strong><%=rs("BigClassName")%></strong></font></td>
                          </tr>
                          <tr> 
                            <td height="9" colspan="3">&nbsp;</td>
                          </tr>
                        </table></TD>
                    </TR>
                    <TR> 
                      <TD class="title_right" height="37" colspan="3">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10"> 
                        产 品 说 明 </TD>
                    </TR>
                    <TR> 
                      <TD height="1" colspan="3"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <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>点击数：<%=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?Productlj_Id=<%=rs("Productlj_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()
%>