<!--#include file="webconn.asp"-->
<%
ID=request("id")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from webcontent where c_name='"& id &"'"
rs.open sql,conn,1,3 
if rs.eof and rs.bof then 
rs.addnew
rs("c_name")=id
rs.update
response.Redirect("mod_web.asp?id="& id &"")
else
%>
<link href="web_jspok.css" rel="stylesheet" type="text/css" />

<form action="mod_web_action.asp?id=<%=id%>" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A3BFE8">
  <tr>
    <td height="20" colspan="2" align="center" bgcolor="#E9F1F8">信息编辑</td>
  </tr>
  <tr>
    <td height="20" colspan="2" align="center" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  
  <tr>
    <td height="20" align="center" bgcolor="#E9F1F8">信息标题</td>
    <td align="left" bgcolor="#E9F1F8"><%=id%></td>
  </tr>
  
  <tr>
    <td width="21%" height="20" align="center" bgcolor="#E9F1F8">
	<textarea name="txt_content" cols="40" rows="5" style="display:none"><%=rs("c_content")%></textarea>
信息内容</td>
    <td width="79%" align="left" bgcolor="#E9F1F8"><iframe id="eWebEditor" src="../webdesign/ewebeditor.asp?id=txt_content&style=webluoye" frameborder="0" scrolling="no" width="90%" height="350"> </iframe></td>
  </tr>
  <tr>
    <td height="20" colspan="2" align="center" bgcolor="#E9F1F8">&nbsp;</td>
  </tr>
  <tr>
    <td height="20" colspan="2" align="center" bgcolor="#E9F1F8"><label>
      <input type="submit" name="Submit" value="提交信息">
    </label></td>
  </tr>
</table>
</form>
<%rs.close
set rs=nothing%>
<%end if%>