<!--#include file="conn.asp"-->
<!--#include file="chk_logs.asp"-->
<%
id=request("id")
lb=request("lb")

%>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<link href="css.css" rel="stylesheet" type="text/css"><link href="images/css.css" rel="stylesheet" type="text/css">
<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px; line-height: 20px; color: #FFFFFF; text-decoration: none; font-family: "宋体";}
-->
</style></head>
<SCRIPT LANGUAGE="JavaScript">
<!--
//缩放对象. 调用方式: zoomObj(this)
function zoomObj(o)
{
var zoom = parseInt(o.style.zoom, 10)||100;
zoom += event.wheelDelta/12;
if (zoom>0)
{
o.style.zoom=zoom+'%';
}
return false;
}

var iOriginalWidth, iOriginalHeight; //存放图片原始长度、宽度

//动态显示图片的长度、宽度和显示比例
function dispCurrentSize()
{
var zoom = document.all.idImg.style.zoom;
zoom = eval(zoom.substring(0, zoom.length-1));
var iWidth = zoom * document.all.idImg.width;
var iHeight = zoom * document.all.idImg.height;
document.all.idPicCurrentSize.innerHTML = "图片当前大小 长：" + Math.ceil(iWidth/100) + " 高：" + Math.ceil(iHeight/100) + "　　显示比例：" + Math.ceil((iWidth / iOriginalWidth)) + "%";
}

//显示图片原始长度、宽度
function dispOriginalSize(oImg)
{
iOriginalWidth = oImg.width;
iOriginalHeight = oImg.height;
document.all.idPicOriginalSize.innerHTML = "图片原始大小 长：" + iOriginalWidth + " 高：" + iOriginalHeight;
document.all.idImg.style.zoom = "100%";
document.myform.picwidth.value=iOriginalWidth;
document.myform.picheight.value=iOriginalHeight;
dispCurrentSize();
}
var a,b
a=iOriginalWidth
b=iOriginalHeight

//-->
</SCRIPT>
<body onLoad="document.myform.picwidth.value=iOriginalWidth;document.myform.picheight.value=iOriginalHeight;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="20" class="admin-top-bg">&nbsp;</td>
  </tr>
  <tr>
    <td><table  width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
      <%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from product where id="&id,conn,1,1%>
     <tr>
        <td colspan="4" align="center" bgcolor="#254B8F" class="bsz"><strong><%=lb%>信息修改</strong></td>
      </tr>
      <tr>
        <td align="center" valign="top"><form name="myform" method="post" action="producteditsave.asp?id=<%=id%>&lb=<%=lb%>" OnSubmit="return checkdata()" onReset="return ResetForm();">
            <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
              <tr bgcolor="#E8F1FF">
                <td align="right" class="wz">编号:</td>
                <td bgcolor="#E8F1FF" class="wz"><label>
                  <input name="cpmc" type="text" id="cpmc" value="<%=rs("cpmc")%>">
                </label></td>
              </tr>
              <tr bgcolor="#E8F1FF">
                <td align="right" class="wz">名称:</td>
                <td bgcolor="#E8F1FF" class="wz"><label>
                  <input name="cpbh" type="text" id="cpbh" value="<%=rs("cpbh")%>">
                </label></td>
              </tr>
             <tr align="center" valign="middle">
                <td align="right" bgcolor="#E8F1FF" class="wz">详情:</td>
                <td height="2" align="left" bgcolor="#E8F1FF" class="wz"><textarea cols="" name="content" rows="" class="textarea" style="display:none"><%=rs("content")%></textarea>
                    <iframe id="eWebEditor1" src="./ewebeditor/ewebeditor.asp?id=content&style=s_blue" frameborder="0" scrolling="no" width="500" height="350"></iframe></td>
              </tr>
			  <tr bgcolor="#E8F1FF">
            <td width="14%" align="right" class="wz"><span class="STYLE3">修改图片</span>：</td>
            <td width="88%" class="wz"><label>
              <input name="xtp" type="text" id="xtp" value="<%=rs("xtp")%>" size="30">
              <span class="STYLE3"><span class="STYLE1">
              <input type="button" name="Submit2" value="修改图片" onClick="window.open('upload_flash.asp?formname=myform&editname=xtp&uppath=up_photo&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
              </span></span></label></td>
          </tr><tr bgcolor="#E8F1FF">
		  <td align="right" class="wz">图片预览：</td>
		  <td class="wz">
		    <img src="<%=rs("xtp")%>"border="0" width="200" ID="idImg" onLoad="dispOriginalSize(this);" onMouseWheel="zoomObj(this);dispCurrentSize();">
		   <div ID="idPicOriginalSize"></div><P><P>
            <div ID="idPicCurrentSize"></div><P><P>
<input type="hidden" name="picwidth" id="picwidth">
<input type="hidden" name="picheight" id="picheight">
		    </td>
 </tr>
              <tr>
                <td align="right" bgcolor="#E8F1FF" class="wz"></td>
                <td height="30" bgcolor="#E8F1FF" class="wz" style="PADDING-LEFT: 10px"><input type="submit" name="Submit" value="修改保存">
                    <input type="button" value=" 返 回 " onClick="javascript:history.go(-1)" class="unnamed5" name="button"></td>
              </tr>
            </table>
        </form></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>