?? admin_room.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="hotel.asp" -->
<!--#include file="include/is_admin.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>房間維護</title>
<style type="text/css">
<!--
@import url("style.css");
-->
</style>
</head>
<body>
<div align="center">
<table width="706" height="281" border="0" class="table_big">
<tr>
<td valign="top"><div align="center">
<!--#include file="include/admin_head.asp" -->
<br>
<table width="501" border="0" class="table_small">
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td colspan="5" class="text_title"><div align="left">全部房間:</div></td>
</tr>
<tr>
<td colspan="5" class="table_title"> </td>
</tr>
<tr class="text_title">
<td width="50"><div align="left">房間ID</div></td>
<td width="107"><div align="left">房間名稱</div></td>
<td width="80"><div align="left">房間類型</div></td>
<td width="65"><div align="left">費用</div></td>
<td width="173"><div align="left">操作</div></td>
</tr>
<%
dim rs_room,sql,delurl,editurl
'打開房間數據庫--------------------
set rs_room=server.CreateObject("adodb.recordset")
sql = "select * from room "
rs_room.open sql,hotel_conn,3,2
rs_room.movefirst
while (not rs_room.eof)
delurl="del.asp?room_id=" & rs_room("room_id")
editurl="admin_edit.asp?room_id=" & rs_room("room_id")
%>
<tr class="text">
<td><div align="left"><%= rs_room("room_id") %></div></td>
<td><div align="left"><%= rs_room("name") %></div></td>
<td><div align="left"><%= rs_room("type") %></div></td>
<td><div align="left"><%= rs_room("cost") %></div></td>
<td>
<div align="left">
[<a href="<%= delurl %>">刪除</a>]
[<a href="<%= editurl %>">修改</a>]
</div>
</td>
</tr>
<%
rs_room.movenext
wend
%>
<tr>
<td colspan="5"> </td>
</tr>
</table>
<br>
<!--#include file="include/foot.asp" -->
<br>
</div></td>
</tr>
</table>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -