?? article_add.asp
字號:
<!--#include file="conn.asp" -->
<!--#include file="admin_dn.asp" -->
<%
if Trim(Request.QueryString("w"))="save" then
rs.open "news",conn,2,3
rs.addnew
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"))&"]發(fā)表文章成功"
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><strong>網站文章管理</strong></p>
<p> </p>
<form name="form1" method="post" action="article_add.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"></td>
</tr>
<tr>
<td height="26">發(fā) 布 者:</td>
<td><input name="name" type="text" id="name" value="本站站長"></td>
</tr>
<tr>
<td height="26">文章類型:</td>
<td><select name="ll" id="ll">
<option value="公司動態(tài)">-公司動態(tài)-</option>
<option value="客戶服務">-客戶服務-</option>
</select></td>
</tr>
<tr>
<td height="26">文章內容:</td>
<td><textarea name="body" cols="40" rows="10" id="body"></textarea>
支持html </td>
</tr>
<tr>
<td height="26"> </td>
<td><input type="submit" name="Submit" value="確定發(fā)表"></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 + -