<%@ Language=VBScript%>
<%
Response.Buffer=false
Response.Expires=0
%>
<!-- #include file="./dsnroot.asp" -->
<!-- #include file="./links.asp" -->
<%
set cn=Server.CreateObject("ADODB.Connection")
set rs=Server.CreateObject("ADODB.Recordset")
set rs1=Server.CreateObject("ADODB.Recordset")
cn.Open mycnstr
id=Request.QueryString ("id")
menu="0100000"
if id="" then
		id=0
	else
		id=cint(id)
end if		
if id<>0 then
		sqltext="select picname4 from danwei where id="&id&" and enable=1"
		rs.Open sqltext,cn,1,1
		if not rs.EOF then
			picname=trim(rs("picname4"))
		else
			err=1	
		end if
		rs.Close 
	else
		err=1
end if				
if err=1 then 
		errtxt="参数错误，您没有选择要查看的产品或者该产品已经被管理员删除！"
end if		
if right(picname,3)<>"swf" then
		fileflag=0
	else
		fileflag=1
end if
%>
<html>
<head>
<title>皖宝床垫</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="font.css" type="text/css">
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>

<body bgcolor="#006A00" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <tr>
    <td align="center" valign="top" background="images/home_bg.gif" style="background-repeat:repeat-x">
      <table width="778" border="0" cellspacing="0" cellpadding="0" height="52">
        <tr>
          <td background="images/top_bg.jpg">&nbsp;<a href="javascript:window.close()" class="a12"><font color="#CDEBCD">[关闭窗口]</font></a></td>
        </tr>
      </table>
      <table width="778" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td bgcolor="#FFFFEC">&nbsp;</td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFEC" height="360" align="center">
			<%if err<>1 then%>
               <%if picname<>"" then%>
						<%if right(picname,3)<>"swf" then%>
								<img src="upfile/<%=picname%>" border=0>
						<%else%>
								<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" id=ShockwaveFlash2 width="600" height="405">
									<param name=movie value="./upfile/<%=picname%>"><param name=quality value=high>
									<embed src="./upfile/<%=picname%>" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="405"></embed> 
								</object>
						<%end if%>	
			  <%end if%>
		   <%else%>	 
			  <%=errtxt%>
		   <%end if%>	  
		  </td>
        </tr>
        <tr>
          <td bgcolor="#FFFFEC">&nbsp;</td>
        </tr>
      </table>
      <table width="778" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="images/bot_bg.jpg" height="50" align="center"> <br>
            <table width="690" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="font3" width="230"><font color="#CDEBCD">COPYRIGHT 
                  2004 ALL RIGHTS RESERVED</font></td>
                <td width="140" valign="middle"><a href="http://www.ahwangbao.com.cn" target="_blank" class="a11"><font size="1">www.ahwangbao.com.cn</font></a></td>
                <td width="200" class="font1"><font color="#CDEBCD">版权所有:联美双语家居产品企业网站系统</font></td>
                <td class="font1"><font color="#CDEBCD">设计制作:<a href="http://www.9919.com.cn" target="_blank" class="a11">民工源码</a></font></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
