📄 class1.asp
字号:
<%
if session("admin")="" then
response.redirect "admin.asp"
end if
%>
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>栏 目 管 理</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<%
set rs=server.createobject("ADODB.Recordset")
rsstr="select * from class order by ClassID asc"
rs.open rsstr,conn,1,1
%>
<body>
<br><br>
<div align="center"><center>
<table cellspacing="0" width="80%" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999">
<tr>
<td width="100%" bgcolor="#999999" height="20">
<font color="#FFFFFF"><center><p><b>栏 目 管 理</b></font>
</td>
</tr>
<tr align="center">
<td width="100%">
<table border="0" cellspacing="1" width="100%">
<tr><td align='left' colspan='2'>
<form name="show" method="POST" action="add.asp">
<input type="submit" value="添 加 栏 目" name="title">
</form>
<tr>
<td width="30%" align="center" height="30">
栏目名称</td>
<td width="25%" height="30">
栏目编号
</td>
<td width="45%" height="30">
栏目操作
</td>
</tr>
<%
if rs.recordcount = 0 then response.write("<td>暂无网址栏目!</td>")
if rs.recordcount > 0 then
dim j
j=1
do while (not rs.EOF)
%>
<tr>
<td width="30%" align="center" height="30">
<%=rs("ClassName")%>
</td>
<td width="25%" height="30">
编号<%=rs("ClassId")%>
</td>
<td width="45%" height="30">
[-<a href="edit.asp?ids=<%=rs("ClassId")%>">编辑</a> <a href="del.asp?ids=<%=rs("ClassId")%>">删除</a>-]
</td>
<%
rs.MoveNext
j=j+1
loop
end if
%>
</tr>
</table>
</table>
</center>
</div>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -