?? kind_list.asp
字號:
<%
'這是安全模塊,如果客戶不是管理員用戶,立即重定向到首頁.
'這樣可以防止某些客戶直接訪問admin下面的文件。
If Session("UserType")<>"A" Then
Response.Redirect "../index.asp"
End If
%>
<!--#INCLUDE FILE="../odbc_connection2.asp"-->
<html>
<head>
<title>類別管理</title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body>
<h2 align="center">類別管理</h2>
<center>
<table border="0" width="90%">
<tr bgcolor="#FFFFFF" align="right">
<td colspan="4"><a href="kind_add.asp">添加類別</a></td>
</tr>
<tr bgcolor="#B7B7B7" align="center">
<td width="30%">類別編號</td>
<td width="30%">類別名稱</td>
<td width="40%" colspan="2">管理</td>
</tr>
<%
'建立Recordset對象
Dim strSql,rs
strSql ="Select * From kind"
Set rs=db.execute(strSql)
Do While Not rs.Eof
%>
<tr bgcolor="#F2F2F2" align="center">
<td><%=rs("KindId")%></td>
<td><%=rs("KindName")%></td>
<td><a href="kind_update.asp?kindId=<%=rs("kindId")%>&KindName=<%=rs("KindName")%>">修改名稱</a></td>
<td><a href="kind_delete.asp?kindId=<%=rs("kindId")%>">刪除</a></td>
</tr>
<%
rs.MoveNext
Loop
%>
</table>
</center>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -