<!--#include file="conn.asp"-->

<!--#include file="admin.asp"-->
<!--#include file="../Inc/articleCHAR.INC"-->
<script language = "JavaScript">

function CheckForm()
{
     document.editCulture.cnWords.value = document.frames.cnEditBox.getHTML(true);     
     document.editCulture.imageNum.value = document.frames.cnEditBox.document.all("editImageNum").value;
     document.editCulture.editFirstImageName.value = document.frames.cnEditBox.document.all("editFirstImageName").value;

	return true;
}
</script>
<%if Request.QueryString("no")="eshop" then

id=request("id")
title=request("title")
mContent = trim(Request.form("cnWords")) 
	mContent = Replace(mContent,"<script","<sscript") 
	mContent = Replace(mContent,"/script>","/scripts>")
	mContent = Replace(mContent,"/script >","/scripts>")




If title="" Then
response.write "SORRY <br>"
response.write "请输入更新内容的标题"
response.end
end if
If mcontent="" Then
response.write "SORRY <br>"
response.write "内容不能为空"
response.end
end if


Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from culture where id="&id
rs.open sql,conn,1,3

rs("title")=title
rs("content")=mcontent
rs.update
rs.close
response.redirect "Manage_culture.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From culture where id="&id, conn,3,3
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top"> <br> <strong><br>
      </strong> <br> <br> 
      <table width="560" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
        <tr> 
          <td class="back_southidc" height="25"> <div align="center"><strong>修改文章 <br>
              </strong></div></td>
        </tr>
        <tr> 
          <form method="post" action="Manage_editculturenews.asp?no=eshop" name="editCulture" onSubmit="return CheckForm();">
            <input type=hidden name=id value=<%=id%>>
            <td><div align="center"> 
                <table width="100%" border="0" cellspacing="1" cellpadding="0">
                  <tr bgcolor="#E7E7E7"> 
                    <td width="8%" height="25" bgcolor="#ECF5FF"> 
                      <div align="center">标&nbsp;&nbsp;题</div></td>
                    <td width="62%" bgcolor="#ECF5FF"> 
                      <input type="text" name="title" maxlength="30" size="25" value="<%=rs("title")%>">
                    </td>
                  </tr>
                 
                  <tr bgcolor="#ECF5FF"> 
                    <td height="25"> 
                      <div align="center">内&nbsp;&nbsp;容</div></td>
                    <td height="25"><IFRAME STYLE="border: none" NAME=cnEditBox src="EditBox.asp?id=<%=rs("id")%>" WIDTH=500 HEIGHT=400></IFRAME></td>
                  </tr>
                  <tr bgcolor="#E7E7E7"> 
                    <td height="25" colspan="2" bgcolor="#ECF5FF"> 
                      <div align="center"> 
                        <input type="submit" value="确定">
                        &nbsp; 
                        <input type="reset" value="从来">
						<!--获取EditBox的内容-->
              <input name=cnWords type=hidden ID="cnWords" value=""> <input name=imageNum type=hidden ID="imageNum" value="<%=mImageNum%>"> 
              <input name=editFirstImageName type=hidden ID="editFirstImageName" value=""> 
              <!--获取EditBox的内容-->
                      </div></td>
                  </tr>
                 
                </table>
              </div></td>
          </form>
        </tr>
      </table>
      <br> <br> </td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->