xboxone官网客服:为什么使用eWebeditor编辑器后文字可以正常显示而图片显示源代码

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 09:57:36
<!--#include file="admin.asp"-->
<!--#include file="conn.asp"-->
<%if Request.QueryString("no")="eshop" then

id=request("id")
title=request("title")
content=server.htmlencode(Trim(Request("content")))

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

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

rs("title")=title
rs("content")=content
rs.update
rs.close
response.redirect "Manage_yeNews.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From Yenews where id="&id, conn,3,3
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" align="center" valign="top"> </td>
<td align="center" valign="top">
<br>
<strong><br>
</strong> <br>
<br>
<table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"> <div align="center"><strong>修改新闻<br>
<br>
</strong></div></td>
</tr>
<tr>
<form method="post" action="Manage_yeeditnews.asp?no=eshop">
<input type=hidden name=id value=<%=id%>>
<td><div align="center">
<table width="100%" border="0" cellspacing="2" cellpadding="3">
<tr>
<td width="8%" height="25" bgcolor="#C0C0C0"> <div align="center">标  题</div></td>
<td width="62%" bgcolor="#C0C0C0"><input type="text" name="title" maxlength="30" size="25" value="<%=rs("title")%>"></td>
</tr>
<tr>
<td height="25" bgcolor="#C0C0C0"><div align="center">内  容</div></td>
<td height="25" bgcolor="#C0C0C0">
<textarea name="content" style="display:none"><%if rs("html")=false then
content=replace(rs("content"),"<br>",chr(13))
content=replace(content," "," ")
else
content=rs("content")
end if
response.write content%></textarea><iframe id="eWebEditor1" src="editor/ewebeditor.asp?id=content&style=s_popup" frameborder="0" scrolling="no" width="550" height="350"></iframe></td>
</tr>
<tr>
<td height="25" colspan="2" bgcolor="#E3E3E3">
<div align="center">
<input type="submit" value="确定">
 
<input type="reset" value="重置">
</div></td>
</tr>
</table>
</div></td></form>
</tr>
</table>
</td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->