www.gusucode.com > 盐城分类信息网asp源码程序 > admin/gonggao_add.asp

    <!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
<!--
body {
	background-color: #E7EEF5;
	margin-top: 30px;
}
-->
</style></head>
<script language = "JavaScript">

function cc(){
IframeID.document.body.innerHTML=document.all("content").value;
document.all("content").value="";
}
function chk()
{document.all("content").value=IframeID.document.body.innerHTML;}
</script>
<body onload="cc()">
<%set rs=server.createobject("adodb.recordset")
sql="select * from tbl_gonggao where g_id=1"
rs.open sql,conn,1,1%>
<table width="88%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#335078" bordercolordark="#FFFFFF" bgcolor="#C5D5E4">
<form name="g_form" method="post" action="gonggao_save.asp" onsubmit="return chk()">
<tr>
<td height="30" align="center"><strong>网站公告管理</strong></td>
</tr>
<tr>
<td align="center" bgcolor="#DBE4EE">
  <textarea name="content" cols="90" rows="20" id="content"><%=rs("g_content")%></textarea></td>
</tr>
<tr>
<td align="center" bgcolor="#EBF0F5"><input type="submit" value="添加公告">
 </td>
</tr>
</form>
</table>
</body>
</html>