📄 admin_newmanage.asp
字号:
<!--#include file=../conn/adodb1.asp -->
<%
if session("cjuser")="" and session("pwdd")="" then
response.write"<SCRIPT language=JavaScript>alert('你没有登录,无权进入!');"
response.write"this.location.href='error.htm';</SCRIPT>"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
dim sql,rs
set rs=server.createobject("adodb.recordset")
sql="select * from news order by timm desc"
rs.open sql,db,1,1
if rs.recordcount >0 then
%>
<table width="100%" border="0" cellpadding="0" cellspacing="1" >
<tr >
<td align="center" class="fenlei"><strong> 标题</strong></td>
<td align="center" class="fenlei" ><strong>文章类型</strong></td>
<td align="center" class="fenlei"><strong>加入时间</strong></td>
<td align="center" class="fenlei"><strong>修改</strong></td>
<td align="center" class="fenlei"><strong>删除</strong></td>
</tr>
<%
dim i
for i=1 to rs.recordcount
%>
<tr width="100%"
onmouseover="this.style.backgroundColor = '#F7FBFF'"
onmouseout="this.style.backgroundColor = '#FFFFFF'">
<td height="25" align="center" class="bordbg"><%=rs("title")%></td>
<td height="25" align="center" class="bordbg"><%=rs("lx")%></td>
<td height="25" align="center" class="bordbg"><%=rs("timm")%></td>
<td height="25" align="center" class="bordbg"><a href="admin_fnews.asp?id=<%=rs("id")%>" class="fontt" >修改</a></td>
<td height="25" align="center" class="bordbg"><a href="companyuser_del.asp?id=<%=rs("id")%>" class="fontt" >删除</a></td>
</tr>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
%>
</table>
<br>
<%
else
response.write "没有任何数据!"
end if
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -