<!--#include file="Connection.asp"-->
<!--#include file="admin/system/WebConfig.asp"-->
<!--#include file="admin/system/Check_SI.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
<title><%=webname%>--机票详细信息</title>
</head>
<script language="JavaScript" src="admin/system/indexdatejs.js"></script>
<TABLE width="770" border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD width="35%" height="81" align=left 
                  bgColor=#ffffff ><div align="center"><img src="<%=weblogo%>"></div></TD>
      <TD width="65%" align=middle vAlign=center  
                bgColor=#ffffff ><div align="center"><img src="<%=webbanner%>"></div></TD>
    </TR>
    <TR vAlign=middle bgcolor="#0F77B1">
      <TD height=27 
                colSpan=2 align=left ><TABLE width="100%" height="100%" border=0 
                  align=center cellPadding=0 cellSpacing=0 >
          <TBODY>
            <TR>
              <TD align=left vAlign=middle background="images/top_bar.gif" >
                <div align="center"><FONT color=#ffffff><a href="default.htm"><FONT color=#ffffff>首页</Font></a> | <a href="News.asp"><FONT color=#ffffff>新闻动态</Font></a> | <a href="xl.html"><FONT color=#ffffff>度假产品</FONT></a> | <a href="hotel.html"><FONT color=#ffffff>酒店预定</FONT></a> |<a href="ticket.asp"><font color="#FFFFFF"> 机票预定</font></a> | <a href="guide.asp"><font color="#FFFFFF">导游推荐</font></a> | <a href="pic.asp"><font color="#FFFFFF">美图欣赏</font></a> | <a href="Gbook.asp"><font color="#FFFFFF">留下意见</font></a> | <a href="userInfo/userInfo.asp"><font color="#FFFFFF">会员中心</font></a> | <a href="Help.asp"><font color="#FFFFFF">在线帮助</font></a></FONT> <img src="images/b_start.gif" width=122 height=16 border=0 align="absmiddle"></div></TD>
            </TR>
          </TBODY>
      </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width="770" border=0  align=center cellPadding=0 cellSpacing=0 background="images/top_nav_menu.gif">
  <TBODY>
    <TR bgColor=#ffffff>
      <TD colSpan=3 height=2></TD>
    </TR>
    <TR>
      <TD width="44" height=25 align=right><img src="images/arrow3.gif" width="29" height="11"></TD>
      <TD width="715"><FONT color=#333333>&nbsp;您的位置：&nbsp;</FONT><a href="default.htm">网站的首页</a> &gt;&gt; 新闻动态</TD>
      <TD width="11">&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="177" height="461" valign="top" bgcolor="#f6f6f6" style="BORDER-left: #d8d8d8 1px solid"><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
      <TBODY>
        <TR>
          <TD height="40">
            <TABLE cellSpacing=0 cellPadding=0 width="183" border=0>
              <TBODY>
                <TR>
                  <TD width="183" height=40 background="Images/t-1.gif">&nbsp;</TD>
                </TR>
              </TBODY>
          </TABLE></TD>
        </TR>
        <TR>
          <TD height=117 valign="top">
            <%sql="select top 8 id,c_name from Hotelb order by id desc"
Set rs=Server.CreateObject("ADODB.RecordSet") 
rs.open sql,conn,1,1

if rs.eof then
response.write "暂时还没有任何信息!"
Else
do while not rs.eof%>
            <table width="93%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="18"> <font color="#666666"><a href="Hotel/Hotel_<%=rs("id")%>.html">
                  <%if len(rs("c_name"))>13 then%>
                  <%=left(rs("c_name"),13)%>...
                  <%else%>
                  <%=rs("c_name")%>
                  <%end if%>
                </a></font></td>
              </tr>
            </table>
            <%
rs.movenext                                                 
loop
end if
rs.close%></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD background=Img/homedhbg.gif><TABLE cellSpacing=0 cellPadding=0 width="183" border=0>
              <TBODY>
                <TR>
                  <TD width="183" height=40 background="Images/t-2.gif">&nbsp;</TD>
                </TR>
              </TBODY>
          </TABLE></TD>
        </TR>
        <TR>
          <TD height="117" vAlign=top>
            <%sql="select top 8 id,x_name from xianlu order by id desc"
Set rs=Server.CreateObject("ADODB.RecordSet") 
rs.open sql,conn,1,1

if rs.eof then
response.write "暂时还没有任何信息!"
Else
do while not rs.eof%>
            <table width="93%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="18"> <font color="#666666"><a href="xl/xl_<%=rs("id")%>.html">
                  <%if len(rs("x_name"))>13 then%>
                  <%=left(rs("x_name"),13)%>...
                  <%else%>
                  <%=rs("x_name")%>
                  <%end if%>
                </a> </font></td>
              </tr>
            </table>
            <%
rs.movenext                                                 
loop
end if
rs.close%></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD background=Img/homedhbg.gif>
            <TABLE cellSpacing=0 cellPadding=0 width="183" border=0>
              <TBODY>
                <TR>
                  <TD width="183" height=40 background="Images/t-3.gif">&nbsp;</TD>
                </TR>
              </TBODY>
          </TABLE></TD>
        </TR>
        <TR>
          <TD height="117" vAlign=top><!--#include file="toupiaoinfo.asp" --></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD height="7"></TD>
        </TR>
      </TBODY>
    </TABLE></td>
    <td width="593" valign="top" style="BORDER-left: #d8d8d8 1px solid;BORDER-right: #d8d8d8 1px solid"><div align="center">
      </div>      
      <br><br>
<%
dim action
action=trim(request("action"))
select case action
case ""
Ticketinfo()
case "Giveme"
Giveme()
case "Giveme_ok"
Giveme_ok()
case else
response.write("<script>alert('错误的传递参数！');history.back(1);</script>")
end select
sub Ticketinfo()%>
<table width="350" border=1 align="center" cellPadding=0 cellSpacing=0 bordercolor="#CCCCCC" borderColorDark=#ffffff bgcolor="#F9F9F9">
<%
dim id
id=request("id")
if id="" then
response.write"<script>alert(""非法访问!"");location.href=""Ticket.asp"";</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from dingbiao where id="&id&" ",conn,1,1
if err.number<>0 then
response.write "数据库中无数据！"
end if
%>
<form name="form1" method="post" action="?action=Giveme&id=<%=id%>">
<tr>
          <td height="30" colspan="2" background="Images/topBar_bg.gif"><div align="center"><font color="#ff0000"><b>查看机票信息</b></font></div></td>
        </tr>
        <tr>
          <td width="100" height="25" bgcolor="#ebebeb"><div align="right">航空公司：</div></td>
          <td width="244"><%=rs("hankonggongsi")%></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#ebebeb"><div align="right">航班类型：</div></td>
          <td><% if rs("cctype")="1" then 
response.write "国内航班"
else
response.write "国际航班"
end if
%></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#ebebeb"><div align="right">航段：</div></td>
          <td><%=rs("chufachenshi")%>-<%=rs("mudichenshi")%></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#ebebeb"><div align="right">单程/往返：</div></td>
          <td><%=rs("type")%></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#ebebeb"><div align="right">航段类型：</div></td>
          <td><%=rs("hdtype")%></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#ebebeb"><div align="right">价格：</div></td>
          <td><font color="#FF0000">＄<%=rs("shichanjia")%></font></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#ebebeb"><div align="right">有效日期：</div></td>
          <td><%=rs("date")%></td>
        </tr>
        <tr>
          <td height="100" bgcolor="#ebebeb"><div align="right">备注：</div></td>
          <td><%=rs("bz")%></td>
        </tr>
        <tr>
          <td height="35" colspan="2"><div align="center">
            <input type="submit" name="Submit" value=" 预 定 ">
          </div></td>
        </tr>

</form>
<%
rs.close
set rs=nothing
%>
</table>

<% End Sub
Sub Giveme()
%>
<script language="javascript">
function checkform(){
if(form2.name.value==''){
alert("请输入你的姓名！");
form2.name.focus();
return false;
}
if(form2.textfield.value=='点击选择日期'){
alert("请选择入住日期！");
form2.textfield.focus();
return false;
}
if(form2.textfield.value=='点击选择日期'){
alert("请选择退房日期！");
form2.textfield.focus();
return false;
}
if(form2.tel.value==''){
alert("请输入你的电话！");
form2.tel.focus();
return false;
}
if(form2.email.value==''){
alert("请输入你的E-mail！");
form2.email.focus();
return false;
}
if(form2.add.value==''){
alert("请输入联系地址！");
form2.add.focus();
return false;
}
}
</script>
<table width="350" border=1 align="center" cellPadding=0 cellSpacing=0 bordercolor="#CCCCCC" borderColorDark=#ffffff bgcolor="#F9F9F9">
<form name="form2" method="post" action="?action=Giveme_ok" onSubmit="return checkform();">
<%
dim id
id=request("id")
if id="" then
response.write"<script>alert(""非法访问!"");location.href=""Ticket.asp"";</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from dingbiao where id="&id&" ",conn,1,1
if err.number<>0 then
response.write "数据库中无数据！"
end if
%>
  <tr>
    <td height="30" colspan="3" background="Images/topBar_bg.gif"><div align="center"><font color="#ff0000"><b>预定机票</b></font></div></td>
  </tr>
  <tr>
    <td width="100" height="25" bgcolor="#ebebeb"><div align="right">航空公司：</div></td>
    <td colspan="2"><%=rs("hankonggongsi")%></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">航班类型：</div></td>
    <td colspan="2"><% if rs("cctype")="1" then 
response.write "国内航班"
else
response.write "国际航班"
end if
%></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">航段：</div></td>
    <td colspan="2"><%=rs("chufachenshi")%>-<%=rs("mudichenshi")%></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">单程/往返：</div></td>
    <td colspan="2"><%=rs("type")%></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">航段类型：</div></td>
    <td colspan="2"><%=rs("hdtype")%></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">价格：</div></td>
    <td colspan="2"><font color="#FF0000">＄<%=rs("shichanjia")%></font></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">有效日期：</div></td>
    <td colspan="2"><%=rs("date")%></td>
  </tr>
  <tr>
    <td height="100" bgcolor="#ebebeb"><div align="right">备注：</div></td>
    <td colspan="2"><%=rs("bz")%></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">联系人：</div></td>
    <td colspan="2"><input name="name" type="text" id="name" size="15">
      <input name="hdname" type="hidden" id="hdname" value="<%=rs("chufachenshi")%>-<%=rs("mudichenshi")%>">
      <input name="hdid" type="hidden" id="hdid" value="<%=rs("id")%>">
      <input name="m_yudingtime" type="hidden" id="m_yudingtime" value="<%=date()%>"></td>
    </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">票数：</div></td>
    <td width="40" height="5"><select name="piao" id="piao">
      <option value="1" selected>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>
    </select></td>
    <td width="202"><select name="piaotype" id="piaotype">
      <option value="儿童">儿童</option>
      <option value="成人" selected>成人</option>
      <option value="老年人">老年人</option>
    </select></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">乘舱类型：</div></td>
    <td colspan="2"><select name="cctype" id="cctype">
      <option value="经济舱" selected>经济舱</option>
      <option value="公务舱">公务舱</option>
      <option value="头等舱">头等舱</option>
    </select></td>
    </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">登机日期：</div></td>
    <td colspan="2"><input name="textfield" type="text" size="16" onfocus="javascript:setday(this)" value="点击选择日期"></td>
  </tr> 
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">返程日期：</div></td>
    <td colspan="2"><input name="textfield2" type="text" size="16" onfocus="javascript:setday(this)" value="点击选择日期"></td>
  </tr>    
<tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">联系电话：</div></td>
    <td colspan="2"><input name="tel" type="text" id="tel" size="20"></td>
  </tr>  
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">电子邮件：</div></td>
    <td colspan="2"><input name="email" type="text" id="email" size="20"></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#ebebeb"><div align="right">联系地址：</div></td>
    <td colspan="2"><input name="add" type="text" id="add" size="30"></td>
  </tr>
<tr>
    <td height="35" colspan="3"><div align="center">
      <input type="submit" name="Submit2" value=" 预 定 ">
    </div></td>
  </tr>
  <%
rs.close
set rs=nothing
%>
</form>
</table>
<br>
<%
End Sub
Sub Giveme_ok()
dim name1,hdname,hdid,piao,piaotype,cctype,textfield,textfield2,tel,email,add
name1=request("name")
hdname=request("hdname")
m_yudingtime=request("m_yudingtime")
hdid=request("hdid")
piao=request("piao")
piaotype=request("piaotype")
cctype=request("cctype")
textfield=request("textfield")
textfield2=request("textfield2")
tel=request("tel")
email=request("email")
add=request("add")
set rs=server.createobject("adodb.recordset")
sql="select * From Givemejipiao"
rs.open sql,conn,3,3
rs.addnew
rs("name")=name1
rs("hdname")=hdname
rs("m_yudingtime")=m_yudingtime
rs("hdid")=hdid
rs("piao")=piao
rs("piaotype")=piaotype
rs("cctype")=cctype
rs("textfield")=textfield
rs("textfield2")=textfield2
rs("tel")=tel
rs("email")=email
rs("add")=add
rs.update
rs.close
response.Write "<script language='javascript'>alert('感谢你对本站的支持,本次预定成功！');window.location.href='Ticket.asp';</script>"
response.End
End Sub
%>
</td>
  </tr>
</table>
<TABLE width="770" border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD width="1" rowspan="2" align=middle vAlign=bottom bgcolor="#CCCCCC"></TD>
      <TD 
height=25 align=middle background=images/foot_patt01.gif><a href=Default.htm>网站首页</a> | <a href=about.asp?action=about >关于我们</a> | <a href=about.asp?action=lxwm >业务联系</a> | <a href=help.asp?action=shiyongfalv >版权声明</a> | <a href=help.asp?action=fukuan >付款方式</a> | <a href=gbook.asp >留言/建议/投诉</a></TD>
      <TD width="1" rowspan="2" align=middle vAlign=bottom bgcolor="#CCCCCC"></TD>
    </TR>
    <TR>
      <TD height=60><div align="center">
          <%dim endtime
endtime=timer()
response.Write "　公司地址："&dizhi&"　邮政编码："&youbian&"<br>"
response.Write "　客服邮箱：<a href=mailto:"&webemail&">"&webemail&"</a>　客服电话："&dianhua&"<br>　"
response.Write "  <font color=#000000><b>"&weburl&"</b></font> &copy; <font color=red> "&copyright&" </font>"
response.Write "　页面执行时间："&FormatNumber((endtime-startime)*1000,3)&" 毫秒"
%>
      </div></TD>
    </TR>
  </TBODY>
</TABLE>
