<!--#include file="conn.asp" -->
<% adm_power_page="3" %>
<!--#include file="admin_dn.asp" -->
<!--#include file="../inc/gl.asp" -->
<% 
id=request("id")

if Trim(Request.QueryString("w"))="edit" then
msg=""
 if Trim(Request.Form("title"))="" then 
  msg="对不起，带 *　的为必填项 "
 else
 sql="select * from zs where id="&id
  rs.open sql,conn,2,3
  application.lock
   rs("title")=Trim(Request.Form("title"))
  rs("bak")=replace(Trim(Request.Form("bak")),VbCrLf,"<br>")
  rs("dat")=Trim(Request.Form("dat"))
  rs("img")=Trim(Request.Form("img"))
  rs("url")=Trim(Request.Form("url"))
  rs.update
  application.unlock
  rs.close
  msg="修改成功..."
 end if

end if
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="4" topmargin="4">
<p><font color="#FF0000">作品展示 产品修改</font></p>
<p>&nbsp;</p>
<% sql="select * from zs where id="&id
rs.open sql,conn,1,1
if not rs.eof then %>
<form action="zp_edit.asp?w=edit" method="post" name="form1">
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#000066"> 
      <td height="16" colspan="2"><font color="#FFFFFF">作品展示产品新增</font></td>
    </tr>
    <tr> 
      <td width="17%" height="25"> <p align="center">作品名称:</p></td>
      <td width="83%"><input name="title" type="text" id="title" value="<%=rs("title")%>" size="15">
        <font color="#FF0000">*
        <input name="id" type="hidden" id="id" value="<%=id%>">
        </font></td>
    </tr>
    <tr> 
      <td height="25"><div align="center">作品图片:</div></td>
      <td><input name="img" type="text" id="img" value="<%=rs("img")%>"></td>
    </tr>
    <tr> 
      <td height="29"><div align="center">完成时间:</div></td>
      <td><input name="dat" type="text" id="dat" value="<%=rs("dat")%>"></td>
    </tr>
    <tr> 
      <td height="29"><div align="center">链接地址:</div></td>
      <td><input name="url" type="text" id="url" value="<%=rs("url")%>"></td>
    </tr>
    <tr> 
      <td><div align="center">作品简介:</div></td>
      <td><p>
          <textarea name="bak" cols="30" rows="4" id="bak"><%=rs("bak")%></textarea>
        </p>
        <p>&nbsp; </p></td>
    </tr>
    <tr bgcolor="#000066"> 
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="-新增-"></td>
    </tr>
  </table>
</form>
<% else
Response.Write("没有找到相关的记录")
end if
rs.close %>
<p>&nbsp;</p>
<p><a href="../page2.asp" target="_blank">-查看效果-</a></p>
<p align="center"><font color="#FF0000"><%= msg %></font></p>
</body>
</html>
