📄 editroomdetail.asp
字号:
<%
if request.cookies("adminok")="" then
response.redirect "login.htm"
end if
%>
<!--#include file="conn.asp"-->
<%
if request("action")="update" then
id=request("id")
set rs=server.createobject("adodb.recordset")
sqltext="select * from roomb where id="&id
rs.open sqltext,conn,3,3
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
response.redirect "RoomInfo.asp"
else
id=request("id")
set rs=server.createobject("adodb.recordset")
sqltext="select * from roomb where id="&id
rs.open sqltext,conn,1,1
hotelid=rs("c_id")
set rs_hotel=server.createobject("adodb.recordset")
sqltext="select c_name from hotelb where id="&hotelid
rs_hotel.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.markerprice.value.length<1)
{
alert("您必须填写门市价格!");
document.FORM1.markerprice.focus();
return false;
}
if(document.FORM1.stageprice.value.length<1)
{
alert("您必须输入前台现付价!");
document.FORM1.stageprice.focus();
return false;
}
}
//-->
</SCRIPT>
<body text="#000000">
<FORM ACTION="EditRoomDetail.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="#840084"></TD></TR>
<TR vAlign=top bgColor=#e1f0ff>
<TD class=main1 colSpan=2 width="431" height="32"><font color="#0000FF">房型信息编辑----</font></TD></TR>
</center>
<center>
<tr>
<TD class=main1 width=102 bgColor=#993399 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">房间类型:</font></SPAN></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"> <%=rs("type")%></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#993399 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">所属酒店:</font></SPAN></TD>
<TD width=317 height=25 bgcolor="#e1f0ff" class=main1> <%=rs_hotel("c_name")%></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#993399 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">早餐有无:</font></SPAN></TD>
<TD width=317 height=25 bgcolor="#e1f0ff" class=main1><%if rs("breakfast")="有" then%><input type="radio" value="有" checked name="breakfast">有
<input type="radio" name="breakfast" value="无">无 <font color="#FF0000">*</font><%else%><input type="radio" value="有" name="breakfast">有
<input type="radio" name="breakfast" checked value="无">无 <font color="#FF0000">*</font><%end if%></TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#993399 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">门市价格:</font></SPAN></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><INPUT NAME="marketprice" SIZE="30" MAXLENGTH="50" CLASS="medium" value="<%=rs("marketprice")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 20; background-color: #f3f3f3; width: 63; 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=#993399 height=25 align="right"><font color="#FFFFFF">前台现付价:</font></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><input type="text" name="stageprice" size="38" value="<%=rs("stageprice")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 20; background-color: #f3f3f3; width: 64; 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=#993399 height=25 align="right"><font color="#FFFFFF">网上支付价:</font></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><input type="text" name="netprice" size="38" value="<%=rs("netprice")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 20; background-color: #f3f3f3; width: 65; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"> 元</TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#993399 height=25 align="right"><font color="#FFFFFF">首日房态:</font></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><Select NAME="state" CLASS="medium" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 23; background-color: #f3f3f3; width: 61; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size="1">
<option value="<%=rs("state")%>" selected><%=rs("state")%></option>
<option value="良好">良好</option>
<option value=拥挤>拥挤</option>
<option value="爆满">爆满</option>
<option value="空闲">空闲</option>
</select>
</TD>
</tr>
<tr>
<TD class=main1 width=102 bgColor=#993399 height=25 align="right"><SPAN
class=main1><font color="#FFFFFF">付款形式:</font></SPAN></TD>
<TD class=main1 width=317 height=25 bgcolor="#e1f0ff"><Select NAME="paytype" CLASS="medium" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height: 23; background-color: #f3f3f3; width: 85; border: 1 solid black" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size="1">
<option value="<%=rs("paytype")%>" selected><%=rs("paytype")%></option>
<option value="前台付帐">前台付帐</option>
<option value=网上支付>网上支付</option>
<option value="邮局汇款">邮局汇款</option>
</select>
</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="#840084"></TD></TR></TBODY></TABLE>
</center>
</div>
<p align="center">
</form>
</body>
</html>
<%
rs.close
rs_hotel.close
conn.close
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -