giveme.asp

来自「旅游管理系统 用ASP+SQL 2」· ASP 代码 · 共 224 行

ASP
224
字号
<html>
<head>
<meta name=vs_targetSchema content="HTML 4.0">
<title>预订旅游线路</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css1.css" type="text/css">
<script id=clientEventHandlersVBS language=vbscript>
<!--

Sub go_onclick
	if form1.textfield3.value="" then
	window.alert ("您的姓名没有填写!")
	form1.textfield3.focus 
	else
	if form1.textfield4.value="" then
	window.alert ("您的所在地址没有填写!")
	form1.textfield4.focus 
	else
	if form1.textfield9.value="" then
	window.alert ("您的联系电话没有填写!")
	form1.textfield9.focus 
	else
	if form1.textfield14.value="" then
	window.alert ("您的邮政编码没有填写!")
	form1.textfield14.focus
	else
	if form1.textfield16.value="" then
	window.alert ("您的旅游人数没有填写!")
	form1.textfield16.focus
	else
	if form1.textfield19.value="" then
	window.alert ("您来游玩的时间没有填写!")
	form1.textfield19.focus
	else
	if form1.textfield20.value="" then
	window.alert ("您返程的日期没有填写!")
	form1.textfield20.focus
	else
	form1.submit 
	end if
	end if
	end if
	end if
	end if
	end if
	end if
End Sub

-->
</script>
</head>

<body style="background-color: #999999" text="#000000" topmargin="5" >
<!--#include file="includefile/shoubu.asp" -->
<!--#include file="includefile/conn.asp" -->
<%
dim id
id=Request("id")
if id="" then
session("errormsg")="错误的操作命令!"
Response.Redirect "error.asp"
end if
sql="select * from xianlu where id=" +id
rs.open sql,,1,2 
if rs.RecordCount = 0 then
session("errormsg")="您要预订的这条线路已经被删除!"
Response.Redirect "error.asp"
end if
%>
<br>
<form name="form1" method="post" action="giveme_ok.asp?action=add">
  <table width="755" border="0" cellspacing="0" cellpadding="0" align="center" bgColor=#ffffff>
    <tr> 
      <td height="22" align="left" class="title"> &nbsp;&nbsp;预订这条线路:<b><%=rs("x_name")%></b> &nbsp;</td>
    </tr>
  </table>
  <table width="755" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#CCCCCC">
    <tr> 
      <td height="25" width="80" bgcolor="#EFEFEF"> 线路号:</td>
      <td height="25" width="170" bgcolor="#F6F6F6">   
        <input type="text" name="textfield" class="input" size="10" readonly value=<%=rs("id")%>><input type="hidden" name="textfield1" class="input" size="10" readonly value=<%=rs("x_name")%>>
      </td>
      <td height="25" width="82" bgcolor="#EFEFEF"> 旅行社:</td>
      <td height="25" bgcolor="#F6F6F6" colspan="3">   
        <input type="text" name="textfield2" size="55" class="input" readonly value=<%=rs("x_lxs")%>>
      </td>
    </tr>
    <tr> 
      <td height="25" width="80" bgcolor="#EFEFEF"> <font color="#FF0000">姓名:</font></td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield3" class="input" size="15">
        <font color="#FF0000">&nbsp; </font> </td>
      <td height="25" width="82" bgcolor="#EFEFEF"> <font color="#FF0000">所在地址:</font></td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield4" class="input" size="20">
      </td>
      <td height="25" width="76" bgcolor="#EfEfEf"> 电子邮件:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield5" class="input" size="20">
      </td>
    </tr>
    <tr> 
      <td height="25" width="80" bgcolor="#EFEFEF"> OICQ:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield6" class="input" size="15">
      </td>
      <td height="25" width="82" bgcolor="#EFEFEF"> 年龄:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield7" class="input" size="10">
      </td>
      <td height="25" width="76" bgcolor="#EfEfEf"> 主页地址:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield8" class="input" size="20">
      </td>
    </tr>
    <tr> 
      <td height="25" width="80" bgcolor="#EFEFEF"> <font color="#FF0000">电话号码:</font></td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield9" class="input" size="20">
      </td>
      <td height="25" width="82" bgcolor="#EFEFEF"> 手机号码:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield10" class="input" size="20">
      </td>
      <td height="25" width="76" bgcolor="#EfEfEf"> 传真:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield11" class="input" size="20">
      </td>
    </tr>
    <tr> 
      <td height="25" width="80" bgcolor="#EFEFEF"> 工作单位:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield12" class="input" size="20">
      </td>
      <td height="25" width="82" bgcolor="#EFEFEF"> <font color="#FF0000">身份证:</font></td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield13" class="input" size="20">
      </td>
      <td height="25" width="76" bgcolor="#EfEfEf"> <font color="#FF0000">邮政编码:</font></td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield14" class="input" size="10">
      </td>
    </tr>
    <tr> 
      <td height="25" width="80" bgcolor="#EFEFEF"> 需要导游:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <select name="textfield15" class="input">
          <option value="需要" selected>需要</option>
          <option value="不需要">不需要</option>
          <option value="随便">随便</option>
        </select>
      </td>
      <td height="25" width="82" bgcolor="#EFEFEF"> <font color="#FF0000">人数:</font></td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield16" class="input" size="10">
      </td>
      <td height="25" width="76" bgcolor="#EfEfEf"> 希望拼团:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <select name="textfield17">
          <option value="希望">希望</option>
          <option value="不希望">不希望</option>
          <option value="无所谓">无所谓</option>
        </select>
      </td>
    </tr>
    <tr> 
      <td height="25" width="80" bgcolor="#EFEFEF"> 预订时间:</td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield18" class="input" size="20" readonly value=<%=date()&"/"&time()%>>
      </td>
      <td height="25" width="82" bgcolor="#EFEFEF"> <font color="#FF0000">来游时间:</font></td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield19" class="input" size="20">
      </td>
      <td height="25" width="76" bgcolor="#EfEfEf"> <font color="#FF0000">返程日期:</font></td>
      <td height="25" width="170" bgcolor="#FFFFFF">   
        <input type="text" name="textfield20" class="input" size="20">
      </td>
    </tr>
    <tr> 
      <td height="80" width="80" bgcolor="#EFEFEF"> 您的想法:</td>
      <td height="80" colspan="4" bgcolor="#FFFFFF">   
        <textarea name="textfield21" rows="4" cols="50" class="input"></textarea>
      </td>
      <td height="201" bgcolor="#FFFFFF" rowspan="3"> 
        <table width="150" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td width="211" height="117"><font color="#FF0000">说明:<br>
                 身份证栏(无身份证的可以填写其它证件号,但必须是数字)和姓名栏请认真填写并记住您所填写的内容,它将是您查看自己预订情况的必要条件!<br>
              <br>
                 尽可能的把您的资料填写祥细、完整。其中红色项目为必须填写内容!</font></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td height="80" width="80" bgcolor="#EFEFEF"> 备注:</td>
      <td height="80" colspan="4" bgcolor="#FFFFFF">   
        <textarea name="textfield22" rows="4" cols="50" class="input"></textarea>
      </td>
    </tr>
    <tr> 
      <td height="80" width="80" bgcolor="#EFEFEF"> 补充:</td>
      <td height="80" colspan="4" bgcolor="#FFFFFF">   
        <textarea name="textfield23" rows="4" cols="50" class="input"></textarea>
      </td>
    </tr>
    <tr align="center"> 
      <td height="24" colspan="6" bgcolor="#EFEFEF"> 
        <input type="button" name="go" value="确定预订" class="button">
           
        <input type="reset" name="Submit2" value="清除所有" class="button">
      </td>
    </tr>
  </table>
</form>
<br>
<%
rs.close
conn.close
%>
<!--#include file="includefile/weibu.asp" -->
</body>
</html>

⌨️ 快捷键说明

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