📄 news.asp
字号:
<!-- #Include file="ADOVBS.INC" -->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>添加</title>
</head>
<body>
<%
IF Session("key")<>"ok" THEN
response.redirect "index.asp"
response.end
END IF
%>
<%
Response.Expires=0
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>科目</title>
<link rel="stylesheet" type="text/css" href="1.css">
</head>
<body>
<!--#include file="data.asp"-->
<%
sql="select * from 新闻 order by id desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'> 还 没 有 任 何 资 料 </p>"
else
%>
<div align="left">
<table border="0" cellspacing="1" width="590" cellpadding="0" height="98">
<tr>
<td width="781" height="69" colspan="2">
<p class="MsoNormal" style="text-indent: 72.0pt" align="left"><font color="#000080">
<span style="font-size: 18.0pt">“两课”新闻</span></font></td>
<%end if%></tr>
<tr>
<td width="1158" height="1" colspan="2">
</td>
</tr>
<tr>
<td width="1058" height="12" colspan="2">
>> 当前位置 > <a target="_self" href="manage.asp">首页</a> > “两课”新闻</td>
</tr>
<tr>
<td width="160" height="13" rowspan="2">
<p align="center"></p>
</td>
<td width="1001" height="1">
<p align="center"></td>
</tr>
<tr>
<td width="1001" height="12">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" height="1">
<tr>
<td align="center" width="31%" height="1" style="border: 1px solid #800000">
题目</td>
<td align="center" width="13%" height="1" style="border: 1px solid #800000">
</td>
</tr> <tr><%do while not rs.eof%>
<td align="center" width="31%" height="1" style="border: 1px solid #800000"><font size="2" color="#000000"><%=rs("标题")%></font>
</td>
<td align="center" width="13%" height="1" style="border: 1px solid #800000">
<a target="_self" href="editn.asp?id=<%=rs("id")%>"><img border="0" src="images/EDIT.GIF"></a>
<a href="deln.asp?id=<%=rs("id")%>"><img border="0" src="images/delete.gif"></a></td>
</tr><%
rs.movenext
loop
rs.Close
%>
</table>
</td>
</tr>
</table>
</div>
<p align="left">
<font size="2" color="#000080">
添加</font></p>
<table align="left" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="69%" height="229">
<tr><form method="POST" action="add3.asp">
<td width="13%" align="right" valign="top" height="19">
<p align="center"> </td>
<td width="14%" align="right" valign="top" height="19">
新闻题目:</td>
<td width="73%" height="19">
<input type="text" name="name2" size="43"></td>
</tr>
<tr>
<td width="13%" align="right" valign="top" height="187">
<p align="center"> </td>
<td width="14%" align="right" valign="top" height="187">
新闻内容:</td>
<td width="73%" height="187">
<textarea rows="14" name="notes2" cols="41"></textarea>
</td>
</tr>
<tr>
<td width="13%" align="right" valign="top" height="23">
</td>
<td width="14%" align="right" valign="top" height="23">
</td>
<td width="73%" height="23">
<input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></td>
</tr>
</table>
<p align="left">
<br>
</p>
<p align="left">
</p>
<p align="left">
</p>
<p align="left">
</p>
<p align="left">
</p>
<p align="left">
</p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -