⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hotel_giveme.asp

📁 一个有用的东西 希望大家喜欢 谢谢大家对本站的支持
💻 ASP
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="conn.asp" -->
<!--#include file="mfk_body.asp" -->
<title><%=title1%>--预订酒店</title>
<%
call pagestart
dim action
action=trim(request("action"))
if action="ok" then
dim textfield2,textfield3,textfield4,textfield5,textfield6,textfield7,textfield8,textfield1,hoteldid,hotelname,hoteladd
function checkstr(str)
dd=trim(str)
dd=replace(dd,"'","")
checkstr=dd
end function
textfield1=checkstr(request("textfield1"))
textfield2=checkstr(request("textfield2"))
textfield3=checkstr(request("textfield3"))
textfield4=checkstr(request("textfield4"))
textfield5=checkstr(request("textfield5"))
textfield6=checkstr(request("textfield6"))
textfield7=checkstr(request("textfield7"))
textfield8=checkstr(request("textfield8"))
hotelid=checkstr(request("hotelid"))
hotelname=checkstr(request("hotelname"))
hoteladd=checkstr(request("hoteladd"))
hoteltype=checkstr(request("hoteltype"))
if not isdate(textfield4) then
response.Redirect("error.asp?errormsg=<li>您的入住日期格式不对哦!</li><br><li>请点击选择日期!</li>")
end if
if not isdate(textfield7) then
response.Redirect("error.asp?errormsg=<li>您的离开日期格式不对哦!</li><br><li>请点击选择日期!</li>")
end if
sql="insert into giveme_hotel(hotel_id,hotel_name,hotel_add,hotel_type,hotel_n,dt_1"&_
",dt_2,y_name,y_email,y_tel,y_bio,y_d)values('"&hotelid&"',"&_
"'"&hotelname&"','"&hoteladd&"','"&hoteltype&"','"&textfield3&"','"&textfield4&"','"&textfield7&"',"&_
"'"&textfield1&"','"&textfield2&"','"&textfield5&"','"&textfield8&"','"&textfield6&"')"
conn.execute(sql)
closeconn
response.Redirect("ok.asp?msg=<li>本次预订操作(预订酒店)成功!</li><br><li>感谢您对我社的支持!</li>")
else
%>
<script>
function check(){
if(form1.textfield1.value==''){
alert("请将您的资料填写完整!");
return false;
}
if(form1.textfield2.value==''){
alert("请将您的资料填写完整!");
return false;
}
if(form1.textfield3.value==''){
alert("请将您的资料填写完整!");
return false;
}
if(form1.textfield4.value==''){
alert("请将您的资料填写完整!");
return false;
}
if(form1.textfield5.value==''){
alert("请将您的资料填写完整!");
return false;
}
if(form1.textfield6.value==''){
alert("请将您的资料填写完整!");
return false;
}
if(form1.textfield7.value==''){
alert("请将您的资料填写完整!");
return false;
}
}
function SelectDate(obj) 
{ 
var obj = eval('document.form1.'+obj); 
result = window.showModalDialog('giveme_ok.asp?action=showdate',obj.value,'help:no;status: no;dialogWidth=184px;dialogHeight=220px');
if (result!=null) { obj.value = result; } 
}
</script>
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="27"><img src="skins/mfk_skin(<%=skin%>)/mfk_lefttitle1.gif"></td>
    <td width="701" background="skins/mfk_skin(<%=skin%>)/mfk_midtitle1.gif">&nbsp;</td>
    <td width="27"><img src="skins/mfk_skin(<%=skin%>)/mfk_righttitle1.gif"></td>
  </tr>
</table>
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0" class="lefttablebox">
<form action="?action=ok" method="post" name="form1" onsubmit="return check();">
  <tr>
    <td height="30"><table width="193" height="19" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td width="163">填 写 酒 店 预 订 表 单</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="46" class="lefttable1"><table width="751" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr class="tablebg">
        <td height="26" colspan="6" align="center" class="titletable">酒 店 基 本 情 况 [ <a href="hotel_show.asp?id=<%=request("id")%>">详细</a> ]</td>
        </tr>
      <tr class="tablebg">
        <td width="90" height="26" align="center" class="table1">酒店名称</td>
        <td width="150"> <%=request.QueryString("hotelname")%></td>
        <td width="90" align="center" class="table1">酒店地址</td>
        <td width="205"> <%=request.QueryString("hoteladd")%></td>
        <td width="90" align="center" class="table1">房间类型</td>
        <td width="119"> <%=request.QueryString("hoteltype")%></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="46" class="lefttable1"><table width="751" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr align="center" class="lefttable1">
        <td height="26" colspan="6">填 写 您 的 信 息</td>
        </tr>
      <tr>
        <td width="99" height="26" align="center" class="table1">您的的姓名</td>
        <td width="129" class="tablebg"><input name="textfield1" type="text" size="10" onmouseover="this.focus();"></td>
        <td width="99" align="center" class="table1">电子邮件</td>
        <td width="161" class="tablebg"><input name="textfield2" type="text" onmouseover="this.focus();" value="无" size="18"></td>
        <td width="100" align="center" class="table1">入住天数</td>
        <td width="156" class="tablebg"><select name="textfield3">
          <option value="1">1 天</option>
          <option value="2">2 天</option>
          <option value="3">3 天</option>
          <option value="4">4 天</option>
          <option value="5">5 天</option>
          <option value="6">6 天</option>
          <option value="7">7 天</option>
          <option value="8">8 天</option>
          <option value="9">9 天</option>
          <option value="10">10天</option>
          <option value="100">更多</option>
        </select></td>
      </tr>
      <tr>
        <td height="26" align="center" class="table1">入住日期</td>
        <td class="tablebg"><input name="textfield4" type="text" size="15" onmouseover="this.focus();" onclick="SelectDate('textfield4');" value="点击选择"></td>
        <td align="center" class="table1">联系电话</td>
        <td class="tablebg"><input type="text" name="textfield5" onmouseover="this.focus();"></td>
        <td align="center" class="table1">预订时间</td>
        <td class="tablebg"><input name="textfield6" type="text" size="20" value="<%=now()%>"></td>
      </tr>
      <tr>
        <td height="26" align="center" class="table1">离开日期</td>
        <td class="tablebg"><input name="textfield7" type="text" size="15" onmouseover="this.focus();" onclick="SelectDate('textfield7');" value="点击选择"></td>
        <td align="center" class="table1">补充说明</td>
        <td colspan="3" class="tablebg"><input name="textfield8" type="text" size="40" onmouseover="this.focus();">
          <input name="hotelid" type="hidden" id="hotelid" value="<%=request("id")%>">
		  <input name="hotelname" type="hidden" id="hotelid" value="<%=request("hotelname")%>">
		  <input name="hoteladd" type="hidden" id="hotelid" value="<%=request("hoteladd")%>">
		  <input name="hoteltype" type="hidden" id="hotelid" value="<%=request("hoteltype")%>">
		  </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" align="center" class="lefttable1"><input name="Submit" type="submit" class="mfk_button" value="确定预订"></td>
  </tr>
</form>
</table>

<table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="7"><img src="skins/mfk_skin(<%=skin%>)/mfk_lefttitle1_1.gif"></td>
    <td width="741" background="skins/mfk_skin(<%=skin%>)/mfk_midtitle1_1.gif">&nbsp;</td>
    <td width="7"><img src="skins/mfk_skin(<%=skin%>)/mfk_righttitle1_1.gif"></td>
  </tr>
</table>
<%
end if
call pageend
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -