<!--#include file="Inc/EnSysProduct.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("EnProduct.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
Start=Rs("EnTitle")
EnbigClassName=Rs("EnBigClassName")
EnSmallClassName=Rs("EnSmallClassName")
If CheckInstr(EnbigClassName,AllPurview) Or CheckInstr(EnSmallClassName,AllPurview) then checkvalue=true
If session("adminName")<>"" or session("vipuser") then checkvalue=False
If CheckValue then Response.Redirect "EnError.asp?error=need vip!"
%>
<!-- #include file="EnHead.asp" -->
<TABLE class="xmtable" border=0 align="center" cellPadding=0 cellSpacing=12 bgcolor="#FFFFFF">
  
  <tr> 
    <td  height="450" valign="top" Class="tdbg_left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="10"><table width="100%" 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;&nbsp;&nbsp;&nbsp;&nbsp;Product 
            list</td>
        </tr>
        <tr>
          <td height="5"></td>
        </tr>
        <tr>
          <td height="10"><table width="100%" 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 valign="top" bgcolor="#FFFFFF">　</td>
    <td valign="top" bgcolor="#FFFFFF"><table width="670" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><% If IsFlash3="Yes" Then %>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="<%=width3%>" height="<%=High3%>">
              <param name="movie" value="<%=enBannerUrl3%>">
              <param name="quality" value="high">
              <param name="wmode" value="transparent">
              <embed src="<%=enBannerUrl3%>" width="<%=width3%>" height="<%=High3%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
            </object>
            <% Else %>
            <img src="<%=enBannerUrl3%>" width="<%=width3%>" height="<%=High3%>">
            <% end If%>
        </td>
      </tr>
    </table>
      <br>
      <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 class="title_c">Product Show</TD>
                    <TD width="561" class="title_right">　</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>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <TR>
        <TD width="452" 
                  height=25><%
response.write "&nbsp;<a href='EnProduct.asp?EnBigClassName=" & rs("EnBigClassName") & "'>" & rs("EnBigClassName") & "</a>&nbsp;&gt;&gt;&nbsp;"
if rs("EnSmallClassName") & ""<>"" then
	response.write "<a href='EnProduct.asp?EnBigClassName=" & rs("EnBigClassName")&"&EnSmallClassName=" & rs("EnSmallClassName") & "'>" & rs("EnSmallClassName") & "</a>&nbsp;&gt;&gt;&nbsp;"
end if
response.write rs("EnTitle")
%>        </TD>
        <TD width="98"><a href="EnPayment.asp?Product_Id=<%=rs("Product_Id")%>",target="_blank"></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="42" colspan="3"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="21" colspan="4">　</td>
            </tr>
            <tr>
              <%fileExt=lcase(getFileExtName(rs("DefaultPicUrl")))%>
              <td width="41%" 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="propic_view.asp?id=<%=rs("id")%>" 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 width="2%" rowspan="6">　</td>
              <td height="18%"><div align="left">Number:</div></td>
              <td width="47%"><font color="#FF6600"><strong><%=rs("Product_Id")%></strong></font></td>
            </tr>
            <tr>
              <td width="10%" height="18%"><div align="left">Name:</div></td>
              <td><font color="#FF6600"><strong><%=rs("Entitle")%></strong></font></td>
            </tr>
            <tr>
              <td height="18%"><div align="left">Spec:</div></td>
              <td><font color="#FF6600"><strong><%=rs("EnSpec")%></strong></font></td>
            </tr>
            <tr>
              <td height="18%"><div align="left">Memo:</div></td>
              <td><font color="#FF6600"><strong><%=rs("EnMemo")%></strong></font></td>
            </tr>
            <tr>
              <td height="18%"><div align="left">Class:</div></td>
              <td><font color="#FF6600"><strong><%=rs("EnBigClassName")%></strong></font></td>
            </tr>
            <tr>
              <td height="18%"><div align="left">Inquire:</div></td>
              <td><a href="EnPayment.asp?Product_Id=<%=rs("Product_Id")%>",target="_blank"><img border=0 src=Images/Eninquire_now.gif></a></td>
            </tr>
            <tr>
              <td height="9" colspan="4">&nbsp;</td>
            </tr>
        </table></TD>
      </TR>
      <TR>
        <TD class="title_right" height="37" colspan="3">&nbsp;&nbsp;&nbsp;&nbsp; 
          Product Readme</TD>
      </TR>
      <TR>
        <TD height="1" colspan="3"><br>
          <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><%call ShowProductContent()%></td>
            </tr>
        </table>
          <br></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" align="right">Hits：<%=rs("Hits")%>&nbsp; UpdateTime：<%= FormatDateTime(rs("UpdateTime"),2) %>&nbsp;【<a href='javascript:window.print()'>Print</a>】&nbsp;【<a href="javascript:self.close()">Close</a>】<a href="EnPayment.asp?Product_Id=<%=rs("Product_Id")%>",target="_blank"></a></TD>
        </TR>
    </table></td>
<TD width=1 background=images/MainLine.gif></TD>    
    <TD width="79" > </TD>
	  </tr>
</table>
<!-- #include file="Inc/EnFoot.asp" -->
</BODY></HTML>
<%
end if
rs.close
set rs=nothing
call CloseConn()
%>