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

📄 article_edit.asp

📁 1.功能强大的内容管理系统 2.无限二级栏目分类 3.新闻采集功能 4.管理员名和密码均为:admin
💻 ASP
字号:
<!--#include file="conn.asp" -->
<!--#include file="admin_dn.asp" -->
<% 
if Trim(Request.QueryString("w"))="save" then
 rs.open "select * from news where id="&request("id"),conn,2,3
 rs("title")=Trim(Request.Form("title"))
 rs("name")=Trim(Request("name"))
 body=replace(request("body"),vbcrlf,"<br>")
 rs("body")=body
 rs("ll")=Trim(Request.Form("ll"))
 rs.update
 rs.close
 ms="在["&Trim(Request.Form("ll"))&"]修改文章成功"
 end if 
rs.open "select * from news where id="&request("id"),conn,1,1
if rs.eof then
Response.Write("参数有错")
response.end
end if
llt=rs("ll")
if llt="公司动态" then
 llb1="selected"
else 
 llb2="selected"
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="image/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="5" topmargin="5">
<p><a href="adm_1.asp" target="mainFrame"><strong>修改文章</strong></a></p>
<p>&nbsp;</p>
<form name="form1" method="post" action="article_edit.asp?w=save">
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="133"></td>
      <td width="594"></td>
    </tr>
    <tr>
      <td height="26">文章标题:</td>
      <td><input name="title" type="text" id="title" value="<%=rs("title")%>">
        <input name="id" type="hidden" id="id" value="<%=request("id")%>">
      </td>
    </tr>
    <tr>
      <td height="26">发 布 者:</td>
      <td><input name="name" type="text" id="name" value="<%=rs("name")%>"></td>
    </tr>
    <tr>
      <td height="26">文章类型:</td>
      <td><select name="ll" id="ll">
          <option value="公司动态" <%=llb1%>>-公司动态-</option>
          <option value="客户服务" <%=llb2%>>-客户服务-</option>
        </select></td>
    </tr>
    <tr>
      <td height="26">文章内容:</td>
      <td><textarea name="body" cols="40" rows="10" id="body"><%=rs("body")%></textarea>
        支持html</td>
    </tr>
    <tr>
      <td height="26">&nbsp;</td>
      <td><input type="submit" name="Submit" value="确定修改"></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
<p align="center"><font color="#FF0000"><%= ms  %></font> </p>
</body>
</html>

⌨️ 快捷键说明

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