📄 gonggao_manage.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
%>
<!--#include file=../conn/adodb1.asp -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.fontt {
font-size: 10pt;
text-decoration: none;
}
-->
</style>
<link href="css/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
dim sql,rs
sql="select * from gonggao order by id desc"
set rs=db.execute(sql)
if not rs.eof then
%>
<table width="101%" border="0" cellpadding="0" cellspacing="1" bgcolor="#888888" class="fontt" >
<tr class="fenlei" height="30" >
<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>
<%
do while not rs.eof
%>
<tr bgcolor="#ffffff" width="100%"
onmouseover="this.style.backgroundColor = '#F7FBFF'"
onmouseout="this.style.backgroundColor = '#FFFFFF'">
<td height="25" align="center"><%=rs("id")%></td>
<td height="25" align="center"><%=rs("title")%></td>
<td height="25" align="center"><%=rs("timm")%></td>
<td height="25" align="center"><a href="gonggao_update.asp?id=<%=rs("id")%>">修改</a></td>
<td height="25" align="center"><a href="gonggao_delete.asp?id=<%=rs("id")%>">删除</a></td>
</tr>
<%
rs.movenext
loop
%>
</table>
<%
else
response.write "没有任何的信息!"
end if
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -