📄 addnews.asp
字号:
<!--#include file=conn.asp -->
<%
if session("adminname")="" then
response.write "<script language='javascript'>" & chr(13)
response.write "window.document.location.href='login.asp';"&Chr(13)
response.write "</script>" & Chr(13)
Response.End
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="images/style.css" type=text/css rel=stylesheet>
<title>米儿文章管理系统</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
}
-->
</style></head>
<body>
<p> </p>
<p> </p>
<TABLE cellSpacing=1 width=600 bgColor=#1b7bce border=0>
<TBODY>
<TR bgColor=#ffffff>
<TD class=title2>添加文章</TD>
</TR>
<TR bgColor=#ffffff>
<TD><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#1b7bce">
<form name="addNEWS" method="post" action="addnewsok.asp">
<tr bgcolor="#FFFFFF">
<td height="25" bgcolor="#FFFFFF"><div align="left">*新闻标题:
<input name="title" type="text" class="input" size="30">
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" bgcolor="#FFFFFF"><div align="left">*关 键 字:
<input name="key" type="text" class="input" id="key" size="50">
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" bgcolor="#FFFFFF"><div align="left">*新闻类别:
<select name="classname" id="classname">
<option value="0" selected>├选择类别</option>
<%
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from mi222class order by bigclass,id"
rs.Open sql,conn,1,1
if not rs.bof and not rs.eof then
%>
<%
for i=1 to rs.recordcount
if rs("smaclass")="mi222" then
%>
<option value=<%=rs("bigclass")&";"&rs("smaclass")%>>├<%=rs("bigclass")%></option>
<%
else
%>
<option value=<%=rs("bigclass")&";"&rs("smaclass")%>> ├ - <%=rs("smaclass")%></option>
<%
end if
rs.movenext
if rs.eof then exit for
next
else
%>
<option value="0">暂无分类信息</option>
<%
end if
rs.close
%>
</select>
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" valign="top" bgcolor="#FFFFFF"><div align="left">*新闻内容:</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" valign="top" bgcolor="#FFFFFF"><div align="left">
<iframe ID="eWebEditor1" src="../eWebEditor/ewebeditor.asp?id=cnWords&style=standard1&savefilename=editFirstImageName" frameborder="0" scrolling="no" width="100%" HEIGHT="350"></iframe>
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" bgcolor="#FFFFFF"><div align="left">*发布人:
<input name="user" type="text" class="input" value="米儿" size="30">
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" bgcolor="#FFFFFF"> <div align="left">是否设为首页图片新闻:
<input type="radio" name="ok" value="true">
是
<input name="ok" type="radio" value="false" checked>
否 <font color="#FF0000">选择此项时请注意文章中是否添加有图片 !</font></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="center" bgcolor="#FFFFFF">
<div align="center">
<input type="submit" name="Submit" value="提交" class="input">
<input type="reset" name="Submit2" value="重置" class="input">
<!--获取EditBox的内容-->
<input name=cnWords type=hidden ID="cnWords" value="">
<input name=imageNum type=hidden ID="imageNum" value="<%=mImageNum%>">
<input name=editFirstImageName type=hidden ID="editFirstImageName" value="">
<!--获取EditBox的内容-->
</div></td>
</tr>
</form>
</table></TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -