<!--#Include File="Connection.Asp"-->
<!--#Include File="Function.Asp"-->
<!--#Include File="JaClog.Asp"-->
<%
If Request.QueryString("action")="do" Then
Dim SqlA,Aid,Na,Sr,userid
Aid = Cint(Trim(Request.Form("id")))
Na = JaKillStr(Trim(Request.Form("Na")))
Sr = JaKillStr(Trim(Request.Form("sr")))
userid = JaKillStr(Trim(Request.Form("userID")))
SqlA = "Update [Hzone] Set JaPhotoName='"&Na&"',JaPhotoUrl='"&Sr&"',JaUid="&userid&" WHERE ID="&Aid&""

Conn.ExeCute(SqlA)
Response.Write "<script language=javascript>alert('修改物品成功!');"
  Response.Write "window.document.location.href='HzoneInfo.Asp?Id="&Aid&"';</script>"
  Response.End()
End If
Dim Id,Rs
Id = Trim(Request.QueryString("id"))
Set Rs = Conn.ExeCute("SELECT * FROM Hzone WHERE id = "&Id&"")
If Not Rs.Eof Then
Dim T,G,fy,ft,TT
 T="Upload"
 G = Rs("JaPhotoUrl")
 TT ="Hzone缩略图"
%>
<HTML><HEAD><TITLE>无标题文档</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">

<LINK href="JaImg/css.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<style type="text/css">
<!--
.article {
	VISIBILITY: hidden;
	FILTER: revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5);
	POSITION: absolute;
	BACKGROUND-COLOR: #FFFFFF;
	width:86px;
	border: 0px;
}

-->
</style>
<SCRIPT language=javascript>
function Show(divid) { 
divid.filters.revealTrans.apply(); 
divid.style.visibility = "visible"; 
divid.filters.revealTrans.play(); 
} 
function Hide(divid) { 
divid.filters.revealTrans.apply(); 
divid.style.visibility = "hidden"; 
divid.filters.revealTrans.play(); 
} 
</script>
<BODY>
<FORM name=form action="?action=do" method=post>
<TABLE class=itemhead height=25 cellSpacing=0 cellPadding=0 width="100%" 
align=center border=0>
  <TBODY>
  <TR>
    <TD class=itemheadtd vAlign=bottom bgColor=#bcdbfe>
      <TABLE height=18 cellSpacing=0 cellPadding=0 width=250 border=0>
            <TBODY>
        <TR>
                <TD class=item>物品信息 ID:<%=Id%></TD>
              </TR></TBODY></TABLE>
        </TD>
      </TR></TBODY></TABLE>
<TABLE height=8 cellSpacing=0 cellPadding=0 width=100 border=0>
  <TBODY>
  <TR>
    <TD></TD></TR></TBODY></TABLE>
  <TABLE cellSpacing=1 cellPadding=3 width="100%" align=center bgColor=#164481 
border=0>
    <TBODY>
      <TR> 
        <TD align=middle width="19%" bgColor=#daebfe height=25><STRONG>物 品 名 称：</STRONG></TD>
        <TD width="81%" bgColor=#ffffff> <INPUT 
      name=Na id="Na" value=<%=Rs(3)%> size=15 maxLength=8> <INPUT 
       type=hidden name=id id="id" value="<%=Id%>" size="40" maxLength=50></TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=25><STRONG>图 片 连 接：</STRONG></TD>
        <TD bgColor=#e7ebf1><INPUT 
      name=sr id="sr" value=<%=G%> size=15 maxLength=100> <u style="cursor:hand" onmouseover="Show(titile<%=G%>)" onmouseout="Hide(titile<%=G%>)">查看<strong>图片</strong></u> 
          <div class=article id=titile<%=G%> align=left> 
            <table cellspacing=0 cellpadding=0 width="100%" border=0>
              <tbody>
                <tr> 
                  <td><img src="../<%=T%>/<%=G%>.gif"  width="86" height="86"></td>
                </tr>
              </tbody>
            </table>
          </div></TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=25><STRONG>用 户 ID：</STRONG></TD>
        <TD bgColor=#ffffff><INPUT 
      name=userid id="userid" value=<%=Rs(1)%> size=15 maxLength=100></TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=35>&nbsp;</TD>
        <TD bgColor=#ffffff colSpan=2><INPUT class=button1 type=submit value=确认无误，我要修改 name=Submit23></TD>
      </TR>
    </TBODY>
  </TABLE>
</FORM>
</BODY></HTML>
<%
End If
Rs.Close
Set Rs = Nothing
%>