<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<%if Request.QueryString("no")="eshop" then

id=request("id")
title=request("title")
img=server.htmlencode(Trim(Request("img")))



If title="" Then
response.write "SORRY <br>"
response.write "请输入更新内容的标题"
response.end
end if
If img="" Then
response.write "SORRY <br>"
response.write "内容不能为空"
response.end
end if


Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from img where id="&id
rs.open sql,conn,1,3

rs("title")=title
rs("img")=img
rs.update
rs.close
response.redirect "Manage_Img.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From img where id="&id, conn,3,3
%>
<!-- #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="Manage_Img.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="Manage_Img_add.asp">添加荣誉</a></TD>
              </TR>
            </TBODY>
          </TABLE></td>
      </tr>
    </table></td>
    <td align="center" valign="top">
	<table width="100%" height="24"  border="0" cellpadding="5" cellspacing="0">
      <tr>
        <td background="image/usercenter_3.jpg">
          <div align="center"><font color="#FFFFFF"><strong>修 改<font color="#FFFFFF">&nbsp;精 品</font></strong></font></div></td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <form method="post" name="myform" action="Manage_editImg.asp?no=eshop">
            <input type=hidden name=id value=<%=id%>>
            <td><div align="center"> 
                <table width="100%" border="0" cellspacing="1" cellpadding="3">
                  <tr bgcolor="#C2DAE1"> 
                    <td width="8%" height="25"> <div align="center">荣誉描述</div></td>
                    <td width="62%">                    <textarea name="title" cols="60" rows="8" id="title"><%=rs("title")%></textarea></td>
                  </tr>
                  <tr bgcolor="#EFEEE9"> 
                    <td height="22"> 
                    <div align="center">图片地址</div></td>
                    <td><input name="img" type="text" id="img" value="<%=rs("img")%>" size="25" maxlength="30"> 
                    <font color="#FF0000"> * 图片地址</font></td>
                  </tr>
                  <tr bgcolor="#C2DAE1"> 
                    <td height="25" colspan="2"> 
                      <div align="center"> 
                        <input name="submit" type="submit" value="确定">
                        &nbsp; 
                        <input name="reset" type="reset" value="从来">
                    </div></td>
                  </tr>
                  <tr> 
                    <td colspan="2">图片上传</td>
                  </tr>
                  <tr> 
                    <td colspan="2"><div align="center"> 
                        <iframe name="ad" frameborder=0 width=100% height=50 scrolling=no src=../uploada.asp></iframe>
                      </div></td>
                  </tr>
                </table>
              </div></td>
          </form>
        </tr>
    </table> </td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->