📄 roomsubmit.asp
字号:
<%
if request.cookies("adminok")="" then
response.redirect "login.htm"
end if
%>
<!--#include file="conn.asp"-->
<%
hotelid1=request("roomhotel")
roomtype=trim(request("roomtype"))
set rs=server.createobject("adodb.recordset")
sqltext="select * from roomb where c_id='"&hotelid1&"' and type='"&roomtype&"'"
rs.open sqltext,conn,3,3
if not rs.eof and not rs.bof then
Response.Redirect "messagebox.asp?msg=此房型在同一酒店已经注册过,请注册其他房型!"
else
'添加一条记录到数据库
rs.addnew
rs("c_id")=request.form("roomhotel")
rs("type")=request.form("roomtype")
rs("breakfast")=request.form("breakfast")
rs("marketprice")=request.form("marketprice")
rs("stageprice")=request.form("stageprice")
if request("netprice")=""then
rs("netprice")=""
else
rs("netprice")=request("netprice")
end if
rs("state")=request.form("state")
rs("paytype")=request.form("paytype")
rs.update
rs.close
conn.close
end if
%>
<html>
<head>
<title>酒店登记成功</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body text="#000000">
<div align="center">
<center>
<TABLE cellSpacing=1 cellPadding=4 width=445 bgColor=#416327 height="144">
<TBODY>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 width="431" height="10" bgcolor="#1f60a0"></TD></TR>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 width="431" height="32"><font class="medium">
<p align="center"><br>
房型:<%=request.form("roomtype")%> 注册成功!</p>
</center>
</font></TD></TR>
<center>
</center>
<center>
</center>
<center>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 width="431" height="15"></TD></TR>
<TR bgColor=#e1f0ff>
<TD class=main1 width="431" height="27">
<p align="center">
<input type="button" value="添加下一房型" onclick=" window.location='roomreg.asp'" style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#D4D0C8;" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#D4D0C8'">
<input type="button" value="返回" onclick=" window.location='manage.asp'" style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#D4D0C8;" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#D4D0C8'">
</TD></TR>
<TR bgColor=#e1f0ff>
<TD class=main1 width="431" height="4" bgcolor="#1f60a0"></TD></TR></TBODY></TABLE>
</center>
</div>
<p align="center">
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -