📄 hotelsubmit.asp
字号:
<%
if request.cookies("adminok")="" then
response.redirect "login.htm"
end if
%>
<!--#include file="conn.asp"-->
<!--#include file="../inc/articlechar.inc"-->
<%
hotelname=trim(request("hotelname"))
hotelprovince=trim(request("hotelprovince"))
hotelcity=trim(request("hotelcity"))
set rs=server.createobject("adodb.recordset")
sqltext="select * from hotelb where c_name='"&hotelname&"' and province='"&hotelprovince&"' and city='"&hotelcity&"'"
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_name")=request.form("hotelname")
rs("level")=request.form("hotellevel")
rs("province")=request.form("hotelprovince")
rs("city")=request.form("hotelcity")
rs("info")=htmlencode(request.form("hotelinfo"))
rs("logurl")=request.form("hotellogurl")
rs("picurl")=request.form("hotelpicurl")
rs.update
rs.close
end if
session("hotelname")=trim(request("hotelname"))
set rs=server.createobject("adodb.recordset")
sqltext="select * from hotelb order by id desc"
rs.open sqltext,conn,1,1
session("hotelid")=rs("id")
rs.close
conn.close
%>
<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("hotelname")%> 注册成功!</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='hotelreg.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='roomreg2.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 + -