<!--#Include File="Connection.Asp"-->
<!--#Include File="Function.Asp"-->
<!--#Include File="JaClog.Asp"-->
<%
If Request.QueryString("action")="do" Then
Dim SqlA,Aid,Na,Sr,vi,piw,ty
Aid = Cint(Trim(Request.Form("id")))
Na = JaKillStr(Trim(Request.Form("Na")))
Sr = JaKillStr(Trim(Request.Form("sr")))
vi = JaKillStr(Trim(Request.Form("vi")))
piw = JaKillStr(Trim(Request.Form("pi")))
ty = Cint(JaKillStr(Trim(Request.Form("ty"))))
If ty = 5 Then 
  Sr = Sr & "|4|2"
End If

SqlA = "Update [JaSel] Set JaSname='"&Na&"',JaSale='"&Sr&"',JaSbuy='"&vi&"',JaBuy='"&piw&"',JaType="&ty&" WHERE ID="&Aid&""

Conn.ExeCute(SqlA)
Response.Write "<script language=javascript>alert('修改物品成功!');"
  Response.Write "window.document.location.href='SelInfo.Asp?Id="&Aid&"';</script>"
  Response.End()
End If
Dim Id,Rs
Id = Trim(Request.QueryString("id"))
Set Rs = Conn.ExeCute("SELECT * FROM [JaSel] WHERE id = "&Id&"")
If Not Rs.Eof Then
Dim T,G,fy,ft,TT
if Rs("JaType")=1 Then
 T="BgSel"
 G = Rs("JaSale")
 TT ="皮肤"
else
if Rs("JaType")=2 Then
 T="cursel"
 G = Rs("JaSale")
 TT ="鼠标"
 else
if Rs("JaType")=3 Then
 T="bannersel"
 G = Rs("JaSale")
 TT ="banner"
  else
if Rs("JaType")=4 Then
 T="flytopsel"
 G = Rs("JaSale")
 TT ="挂件"
else
if Rs("JaType")=5 Then
 T="Flysel"
 G=Split(Rs("JaSale"),"|")(0)
 fy=Split(Rs("JaSale"),"|")(1)
 ft=Split(Rs("JaSale"),"|")(2)
 TT ="漂浮"
else
if Rs("JaType")=6 Then
 T="classsel"
 G = Rs("JaSale")
 TT ="植物"
else
if Rs("JaType")=7 Then
 T="Saysel"
 G = Rs("JaSale")
 TT ="公告栏"
else
if Rs("JaType")=8 Then
 T="Musicsel"
 G = Rs("JaSale")
 TT ="播放器"
end if
end if
end if
end if
end if
end if
end if
end if
%>
<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(5)%> 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>VIP 价 格：</STRONG></TD>
        <TD bgColor=#ffffff><INPUT 
      name=vi id="vi" value=<%=Rs(4)%> size=15 maxLength=8> </TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=25><STRONG>普 通 用 户 价 格：</STRONG></TD>
        <TD bgColor=#e7ebf1> <INPUT 
      name=pi id="pi" value=<%=Rs(3)%> size="15" maxLength=50> </TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=25><STRONG>物 品 所 属 ：</STRONG></TD>
        <TD bgColor=#ffffff><select name=ty id="ty">
            <option value="1" <%If Rs("JaType")=1 Then Response.Write "Selected" End If%>>皮肤</option>
<option value="2" <%If Rs("JaType")=2 Then Response.Write "Selected" End If%>>鼠标</option>
<option value="3" <%If Rs("JaType")=3 Then Response.Write "Selected" End If%>>banner</option>
<option value="4" <%If Rs("JaType")=4 Then Response.Write "Selected" End If%>>挂件</option>
<option value="5" <%If Rs("JaType")=5 Then Response.Write "Selected" End If%>>漂浮</option>
<option value="6" <%If Rs("JaType")=6 Then Response.Write "Selected" End If%>>植物</option>
<option value="7" <%If Rs("JaType")=7 Then Response.Write "Selected" End If%>>公告栏</option>
<option value="8" <%If Rs("JaType")=8 Then Response.Write "Selected" End If%>>播放器</option>
</select>
          所 属: <b><%=TT%></b></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
%>