📄 addarticle.asp
字号:
<!--#include file="articleconn.asp"-->
<%
if request.cookies("adminok")="" then
response.redirect "login.asp"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>创建文章</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<form method="POST" action="savearticle.asp">
<div align="center"><center><table border="1" cellspacing="0" width="80%" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0">
<tr>
<td width="100%" bgcolor="#D0D0D0" height="20"><div align="center"><center><p><b>添 加 文 章</b></td>
</tr>
<tr align="center">
<td width="100%"><table border="0" cellspacing="1" width="100%">
<tr>
<td width="15%" align="right" height="30"><b>文章标题:</b></td>
<td width="85%" height="30"><input type="text" name="txttitle" size="70"
class="smallinput" maxlength="100"></td>
</tr>
<tr>
<td width="15%" align="right" height="30"><b>文章栏目:</b></td>
<td width="85%" height="30">
<select class="smallSel" name="typeid" size="1">
<%
dim rs,sql,sel
set rs=server.createobject("adodb.recordset")
sql="select * from type"
rs.open sql,conn,1,1
do while not rs.eof
sel="selected"
response.write "<option " & sel & " value='"+CStr(rs("typeID"))+"' name=typeid>"+rs("type")+"</option>"+chr(13)+chr(10)
rs.movenext
loop
rs.close
%>
</select><b><font color="#FF0000">支持html</font></b><input type="checkbox" name="checkbox" value="on"></td>
</tr>
<tr>
<td width="15%" align="right" valign="top"><b>文章内容:</b></td>
<td width="85%"><textarea rows="15" name="txtcontent" cols="70" class="smallarea"></textarea></td>
</tr>
<tr>
<td width="15%" align="right" valign="top" height="20"></td>
<td width="85%"></td>
</tr>
</table>
</td>
</tr>
</table>
</center></div><div align="center"><center><p><input type="submit" value=" 添 加 "
name="cmdok" class="buttonface"> <input type="reset" value=" 清 除 "
name="cmdcancel" class="buttonface"></p>
</center></div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -