<!--#include file="conn.asp"-->
<!--#include file="admin.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")
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="150" align="center" valign="top" bgcolor="#A0CCD8"> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#279ec0">
      <tr>
        <td align="center" valign="top">
          <table width="100%" height="22"  border="0" cellpadding="5" cellspacing="0">
            <tr>
              <td height="24" background="image/usercenter_3.jpg">
                <div align="left"><strong><font color="#FFFFFF">&nbsp;产品管理</font></strong> </div></td>
            </tr>
          </table>
          <TABLE cellSpacing=6 cellPadding=6 width=150 
                              border=0>
            <TBODY>
              <TR>
                <TD id=aa 
                                onmouseover="vbscript:window.aa.background='image/menu_bg2.gif'" 
                                onmouseout="vbscript:window.aa.background='image/menu_bg1.gif'" 
                                align=middle background=image/menu_bg1.gif 
                                height=24>　　<a href="ClassManage.asp">产品类别设置</a></TD>
              </TR>
              <TR>
                <TD id=aa 
                                onmouseover="vbscript:window.aa.background='image/menu_bg2.gif'" 
                                onmouseout="vbscript:window.aa.background='image/menu_bg1.gif'" 
                                align=middle background=image/menu_bg1.gif 
                                height=24>　　<a href="ArticleManage.asp">产品管理</a></TD>
              </TR>
              <TR>
                <TD id=aa 
                                onmouseover="vbscript:window.aa.background='image/menu_bg2.gif'" 
                                onmouseout="vbscript:window.aa.background='image/menu_bg1.gif'" 
                                align=middle background=image/menu_bg1.gif 
                                height=24>　　<a href="ArticleAdd.asp">添加产品</a></TD>
              </TR>
              <TR>
                <TD id=aa 
                                onmouseover="vbscript:window.aa.background='image/menu_bg2.gif'" 
                                onmouseout="vbscript:window.aa.background='image/menu_bg1.gif'" 
                                align=middle background=image/menu_bg1.gif 
                                height=24>　　<a href="ArticleCheck.asp">审核产品</a></TD>
              </TR>
            </TBODY>
        </TABLE></td>
      </tr>
    </table></td>
    <td width="862" align="center" valign="top">
	<table width="100%" height="0"  border="0" cellpadding="5" cellspacing="0">
      <tr>
        <td height="24" background="image/usercenter_3.jpg">
          <div align="center"><strong><font color="#FFFFFF">查 看 产 品</font></strong></div></td>
      </tr>
    </table>
	<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0>
      <TBODY>
        <TR>
          <TD 
                  height=1 colspan="3" background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif" 
              width=10></TD>
        </TR>
        <TR bgcolor="#C2DAE1">
          <TD 
                  height=25 colspan="3">
            &nbsp;&nbsp;
            <%
response.write "|&nbsp;" & rs("BigClassName") & "&nbsp;&gt;&gt;&nbsp;"
if rs("SmallClassName") & ""<>"" then
	response.write "" & rs("SmallClassName") & "&nbsp;&gt;&gt;&nbsp;"
end if
response.write rs("Title")
%>           </TD>
          </TR>
        <TR>
          <TD 
                  height=1 colspan="3">&nbsp;</TD>
        </TR>
        <TR>
          <TD width="2%" height="1">&nbsp;</TD>
          <TD width="96%"><%=rs("Content")%></TD>
          <TD width="2%">&nbsp;</TD>
        </TR>
        <TR>
          <TD 
                  height=1 colspan="3">&nbsp;</TD>
        </TR>
        <TR>
          <TD 
                  height=25 colspan="3" bgcolor="#EFEEE9">&nbsp;&nbsp;点击数：<%=rs("Hits")%>&nbsp; 录入时间：<%= FormatDateTime(rs("UpdateTime"),2) %>&nbsp;【<a href='javascript:window.print()'>打印此页</a>】&nbsp;【<a href='javascript:window.close()'>关闭</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>
      </TBODY>
    </TABLE></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
<%
end if
rs.close
set rs=nothing

%>
