📄 edithoteldetail.asp
字号:
<%
if request.cookies("adminok")="" then
response.redirect "login.htm"
end if
%>
<!--#include file="conn.asp"-->
<!--#include file="../inc/articlechar.inc"-->
<%
if request("action")="update" then
id=request("id")
set rs=server.createobject("adodb.recordset")
sqltext="select * from hotelb where id="&id
rs.open sqltext,conn,3,3
rs("c_name")=request.form("hotelname")
rs("level")=request.form("hotellevel")
rs("province")=request.form("hotelprovince")
rs("city")=request.form("hotelcity")
rs("info")=request.form("hotelinfo")
rs("logurl")=request.form("hotellogurl")
rs("picurl")=request.form("hotelpicurl")
rs.update
rs.close
conn.close
response.redirect "HotelInfo.asp"
else
id=request("id")
set rs=server.createobject("adodb.recordset")
sqltext="select * from Hotelb where id="&id
rs.open sqltext,conn,1,1
%>
<html>
<head>
<title>酒店信息编辑</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<SCRIPT language=javascript id=clientEventHandlersJS>
<!--
function form1_onsubmit()
{
if(document.FORM1.hotelname.value.length<1)
{
alert("您必须填写酒店名称!");
document.FORM1.hotelname.focus();
return false;
}
if(document.FORM1.hotelcity.value.length<1)
{
alert("您必须输入酒店所在市县!");
document.FORM1.hotelcity.focus();
return false;
}
}
//-->
</SCRIPT>
<body text="#000000">
<FORM ACTION="edithoteldetail.asp" METHOD="POST" NAME="FORM1" onsubmit="return form1_onsubmit()">
<input type=hidden name=action value="update">
<input type=hidden name=id value=<%=request("id")%>>
<div align="center">
<center>
<TABLE cellSpacing=1 cellPadding=4 width=445 bgColor=#416327 height="144">
<TBODY>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="431" height="10" bgcolor="#006600"></TD></TR>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="431" height="32"><font color="#0000FF">酒店信息编辑</font><font color="#0000FF">----</font></TD></TR>
</center>
<center>
<tr>
<TD class=main1 width=102 bgColor=#008080 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">酒店名称:</font></SPAN></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><INPUT NAME="hotelname" MAXLENGTH="20" CLASS="medium" value="<%=rs("c_name")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 20; background-color: #f3f3f3; width: 172; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size="20">
<font color="#FF0000">*</font></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#008080 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">星级标准:</font></SPAN></TD>
<TD width=317 height=25 bgcolor="#e1f0ff" class=main1><Select NAME="hotellevel" CLASS="medium" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 20; background-color: #f3f3f3; width: 100; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size="1">
<option value=<%=rs("level")%> selected><%=rs("level")%></option>
<option value="无">无标准</option>
<option value=二星级>二星级</option>
<option value=三星级>三星级</option>
<option value=四星级>四星级</option>
<option value=五星级>五星级</option>
<option value=准三星级>准三星级</option>
<option value=准四星级>准四星级</option>
<option value=准五星级>准五星级</option> </select>
<font color="#FF0000">*</font></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#008080 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">酒店所在省份:</font></SPAN></TD>
<TD width=317 height=25 bgcolor="#e1f0ff"><Select NAME="hotelprovince" CLASS="medium" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 20; background-color: #f3f3f3; width: 100; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size="1">
<option value=<%=rs("province")%> selected><%=rs("province")%></option>
<option value=北京>北京</option>
<option value=上海>上海</option>
<option value=山东>山东</option>
<option value=广东>广东</option>
<option value=黑龙江>黑龙江</option>
<option value=湖南>湖南</option>
</select>
<font color="#FF0000">*</font></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#008080 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">酒店所在市县:</font></SPAN></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><INPUT NAME="hotelcity" SIZE="30" MAXLENGTH="50" CLASS="medium" value="<%=rs("city")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 20; background-color: #f3f3f3; width: 129; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"><font color="#FF0000">
*</font></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#008080 height=25 align="right"><font color="#FFFFFF">标志图片URL:</font></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><input type="text" name="hotellogurl" size="38" value="<%=rs("logurl")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 20; background-color: #f3f3f3; width: 294; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="../HotelLogo/"></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#008080 height=25 align="right"><font color="#FFFFFF">外型图片URL:</font></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><input type="text" name="hotelpicurl" size="38" value="<%=rs("picurl")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 20; background-color: #f3f3f3; width: 293; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="../HotelPic/"></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#008080 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">酒店简介:</font></SPAN></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><font color="#FF0000"><textarea rows="6" name="hotelinfo" cols="42" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 125; background-color: #f3f3f3; width: 308; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"><%=rs("info")%></textarea></font></TD>
</tr>
</center>
<center>
</center>
<center>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="431" height="15"></TD></TR>
<TR bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="431" height="27">
<p align="center">
<INPUT TYPE=SUBMIT VALUE=" 修 改 " CLASS="medium" ONCLICK="javascript:return checksignup()" NAME="signup_submit"><INPUT TYPE=RESET VALUE="重 填" CLASS="medium" NAME="signup_reset"><input class="main" type="button" size="3" value="返回" onclick="javascript:window.history.go(-1)">
</TD></TR>
<TR bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="431" height="4" bgcolor="#006600"></TD></TR></TBODY></TABLE>
</center>
</div>
<p align="center">
</form>
</body>
</html>
<%
rs.close
conn.close
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -