<!--#include file="conn.asp"--><!--#include file="inc/CHAR.INC"-->
<%set rs=server.createobject("adodb.recordset")
%>
<%if request("act")="save" then
id=request.form("id")
jieqian=request.form("jieqian")
sql="select * from guanyin where id="&id
rs.open sql,conn,1,3
rs("jieqian")=htmlencode2(trim(jieqian))
rs.update
rs.close
set rs=nothing 
response.write("<script>alert('成功：修改成功!现在返回管理');location='gy_add.asp?act=edit&id="&id+1&"'</script>")
response.end
end if%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/style.css" 
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.0" name=GENERATOR></HEAD>
<BODY style="FONT-SIZE: 12px; v-text-align: center" leftMargin=0 topMargin=3 
align="center" marginheight="0" marginwidth="0">
<%if request("act")="edit" then
ninfo="修改" 
else
ninfo="添加" 
end if
%>
<%
if request("act")="edit" then
id=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from guanyin where id="&id&""
rs.open sql,conn,1,1
jieqian=rs("jieqian")
end if
%>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">
   <form name="form1" method="post" action="?act=save">
 <tr bgcolor="3972B4"> 
      <td colspan="3" bgcolor="e7e7e7"> <div align="center"><strong><font color="#000000"><%=ninfo%></font></strong></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="17%"> <div align="right">解莶<%=id%>：</div></td>
      <td width="83%"><textarea name="jieqian" cols="60" rows="6" id="jieqian"><%=jieqian%></textarea>
      <input name="id" type="hidden" id=id value="<%=id%>" size="30"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="3"> <div align="center"> 
          <input type="submit" name="Submit" class="Submit" value="确认<%=ninfo%>">
        </div></td>
    </tr></form>
</table>
</BODY></HTML>

<script language="JavaScript" type="text/JavaScript">
function SwitchNewsType(NewsType)
{
	switch (NewsType)
	{
	case "PicNews":
		document.getElementById('PicNews').style.display='';
	break;

	}
}

</script>



