⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.asp

📁 by php excellent hotel management system
💻 ASP
字号:
<%
'###########################################################################################
'			   Copyright (C) 2006 FreeLin rights reserved.                                 '
'			      本系统由FREELIN工作室独立开发2006.3.20                                      '
'				     版权所有,并保留所有版权,不得修改传播                                       '
'					    http://www.yisky.com                                          '
'						     co_lin@126.com                                                '
'###########################################################################################
%>
<!--#include file="config.asp"-->
<!--#include file="freelin.asp"-->
<%
if request.querystring("type") = "news" then
	id = trim(request.querystring("id"))
	set rs = conn.execute("select * from news where id="& id &"")
	title=rs("title")
	contentUrl = "xlnxin.asp?type=news&id="& id
	if request.form("Submit")<>"" then
		xln_title = Trim(request.form("xln_title"))
		xln_content = request.form("xln_content")
		if xln_title = "" or xln_content = "" then xln_showmsg "操作失败","所填项目全部不能为空","news.asp","自动返回"
		conn.execute "update news set title='"& xln_title &"',content='"& xln_content &"' where id="& id &""
		xln_showmsg "操作成功","修改新闻成功","listnews.asp","自动返回"
	end if
end if
if request.querystring("type") = "case" then
	id = trim(request.querystring("id"))
	contentUrl = "xlnxin.asp?type=case&id="& id
	set rs = conn.execute("select * from thecase where id="& id &"")
	title=rs("title")
	if request.form("Submit")<>"" then
		xln_title = Trim(request.form("xln_title"))
		xln_content = request.form("xln_content")
		if xln_title = "" or xln_content = "" then xln_showmsg "操作失败","所填项目全部不能为空","news.asp","自动返回"
		conn.execute "update thecase set title='"& xln_title &"',content='"& xln_content &"' where id="& id &""
		xln_showmsg "操作成功","修改工程案例成功","listcase.asp","自动返回"
	end if
end if
%>
<table width="90%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#F0F0F0">
  <form name="form1" method="post" action="">
    <tr> 
      <td colspan="2" align="center"><strong>
        <script src="./image/xln_edit.js" type="text/javascript"></script>
        修改操作</strong></td>
    </tr>
    <tr> 
      <td width="10%" align="center">标题</td>
      <td width="90%"><input name="xln_title" type="text" size="40" value='<%=title%>'></td>
    </tr>
    <tr> 
      <td align="center">内容</td>
      <td> 
        <!--#include file="./image/xln_edit.asp"-->
        <script language="javascript">
<%
response.write"document.write ('<iframe src=""" & contentUrl & """ NAME=""message"" ID=""message"" contentUrl id=""message"" width=""520"" height=""300""></iframe>')"
%>
				frames.message.document.designMode = "On";
			  </script> </td>
    </tr>
    <tr> 
      <td height="50" align="center">&nbsp;</td>
      <td><input type="submit" name="Submit" value="提交" onClick="document.form1.xln_content.value = frames.message.document.body.innerHTML;"> 
        &nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" name="Submit2" value="重置"> 
        <input name="xln_content" type="hidden" value=""></td>
    </tr>
  </form>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -