?? admin.asp
字號(hào):
<!--#include file="cfg.asp"-->
<!--#include file="usercheck.asp"-->
<%if userlevel<>"站長(zhǎng)" then response.redirect "msg.asp?msg=權(quán)限不夠,請(qǐng)退出!"
set rs=server.createobject("adodb.recordset")
rs.open "select * from room order by room_id desc",conn,1,1
direction=request("direction")
go=request("go")
if isempty(go) then go=0
select case direction
case "up"
go=go-10
if go<=0 then go=0
case "down"
go=go+10
if go>=rs.recordcount then go=go-10
end select
if not rs.eof then rs.move(go)
%>
<html>
<head>
<title><%=application("ChatInfo")%>-管理中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" rel=stylesheet>
</head>
<body bgcolor="#8EB4D9" text="#000000">
<table width="400" border="1" cellpadding="10" cellspacing="13" background="../images/b2.gif" height="275">
<tr bgcolor="#FFFFFF">
<td bgcolor="#8EB4D9" valign="top" height="284">
<table width="350" cellpadding="2" bordercolor="#333333" align="center" cellspacing="0" border="1" bordercolordark="#FFFFFF" height="81">
<tr>
<td height="25" colspan="6">
<div align="center"><a href="admin.asp">房間列表</a> <a href="admin1.asp">增加房間</a></div>
</td>
</tr>
<tr>
<td height="27" width="58">
<div align="center">房間名</div>
</td>
<td height="27" width="47">
<div align="center">人數(shù)</div>
</td>
<td height="27" width="47">
<div align="center">類型</div>
</td>
<td height="27" width="62">
<div align="center">屋主</div>
</td>
<td height="27" width="48">
<div align="center">修改</div>
</td>
<td height="27" width="50">
<div align="center">刪除</div>
</td>
</tr>
<%do while not rs.eof and i<10
i=i+1%>
<tr>
<td height="19" width="58"><%=rs("room_name")%></td>
<td height="19" width="47"><%=rs("max_num")%></td>
<td height="19" width="47"><%=rs("room_type")%></td>
<td height="19" width="62"><%=rs("room_master")%></td>
<td height="19" width="48">
<div align="center"><a href="editroom.asp?id=<%=rs("room_id")%>">修改</a></div>
</td>
<td height="19" width="50">
<div align="center"><a href="delroom.asp?id=<%=rs("room_id")%>">刪除</a></div>
</td>
</tr>
<%rs.movenext
loop%>
<tr>
<td height="19" colspan="6">
<div align="right"><a href=admin.asp?direction=up&go=<%=go%>>上一頁(yè)</a> <a href=admin.asp?direction=down&go=<%=go%>>下一頁(yè)</a></div>
</td>
</tr>
</table>
<p align=center> </p>
</td>
</tr>
</table>
</body>
</html>
<%call db_close()%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -