<!--#include file="checkUser.asp"-->
<!--#include file="conn.asp"-->
<%
if request("act")="upd" then
   sql="update company set gonggao='"&request("gonggao")&"'"
   conn.execute sql
   response.write "<script language=javascript>alert('公司简介修改成功');location='main.asp';</script>"
end if
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="select gonggao from company"
rs.open sql,conn,1,1
%>
<html>
<head>
<title>后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../images/CSS.CSS" type="text/css">
<link rel="stylesheet" href="Images/Admin_style.css">
<link rel="stylesheet" href="Images/Admin_style.css">
</head>
<body bgcolor="#9CC7EF" text="#000000" leftmargin="0" topmargin="0">
<%if not (rs.eof or err) then %>
  <table width="80%" height="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#7E99E7" >
<form name="form1" action="?act=upd" method="post"> 
   <tr > 
      <th height="26"> <div align="center" class="unnamed1"><font color="#FFFFFF">网站公告</font></div></th>
    </tr>
    <tr> 
      <td nowrap bgcolor="#D6DFF7"> <div align="center"> 
          <span class="unnamed1">
          
		<iframe id="myiframe" src="edit/editor.htm?id=gonggao&ReadCookie=0" frameborder="0" scrolling="no" width="621" height="460"></iframe> 
		<input type=hidden name=id value="<%=ID%>">
		<textarea name="gonggao" style="display:none"><%=rs("gonggao")%></textarea>
      </span></div></td>
    </tr>
    <tr bgcolor="#4296E7"> 
      <td height="24" bgcolor="#D6DFF7"> <div align="center">          <span class="unnamed1">
          <input type="submit" name="Submit" value="修改">
      </span></div></td>
    </tr></form>
</table>

<%else %>
<span class="unnamed1">无该记录，请<a href="Javascript:window.history.go(-1)">返回</a></span>
<%end if %>

</body>
</html>
