<!--#include file="conn.asp"--><!--#include file="inc/CHAR.INC"-->
<%set rs=server.createobject("adodb.recordset")
%>
<%if request("act")="save" then
wh=request.form("wh")
hz=request.form("content")
hz=htmlencode4(trim(hz))
hz2=split(hz,")")
Num_1=ubound(hz2)
for i=0 to Num_1
hz3=split(""&hz2(i)&"","(")
Num_2=ubound(hz3)
sql="select * from hzwh where wh='"& hz3(1) &"'"
rs.open sql,conn,1,3
hz4=rs("hz")
rs("hz")=hz4&hz3(0)
rs.update
rs.close
  next
  set rs=nothing 
response.write("<script>alert('成功：修改成功!现在返回管理');location='hzwh.asp'</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
wh=request("wh")
set rs=server.createobject("adodb.recordset")
sql="select * from hzwh where num='"&wh&"'"
rs.open sql,conn,1,1
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">列表：</div></td>
      <td width="83%"> <p>
        <textarea name="content" cols="80" rows="15" id="content"><%=rs("hz")%>
      </textarea>
</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>



