?? article_edit.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> </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"> </td>
<td><input type="submit" name="Submit" value="確定修改"></td>
</tr>
</table>
</form>
<p> </p>
<p align="center"><font color="#FF0000"><%= ms %></font> </p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -