<!--#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"></a></FONT></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" 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">
      <table width="577"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="577" height="192" background="Images/piao.jpg">&nbsp;</td>
        </tr>
        <tr>
          <td height="5"></td>
        </tr>
      </table>
</div>      
      <table width="578" border=1 align="center" cellPadding=0 cellSpacing=0 bordercolor="#CCCCCC" borderColorDark=#ffffff bgcolor="#F9F9F9">
      <tr>
          <td height="30" colspan="3" background="Images/topBar_bg.gif">&nbsp;<img src="Images/ring01.gif" width="9" height="9"> 查询</td>
        </tr>
        <tr>
          <td height="125" colspan="3">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<form action="Searchticket.asp" method="post" name="form1" target="_blank">
<tr>
              <td width="14%" height="30">航空公司：</td>
              <td width="21%"><select name="hankonggongsi" id="hankonggongsi">
<option value="" selected>不限</option>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select DISTINCT hankonggongsi from dingbiao",conn,1,1
do while not rs.eof %> 
<option value="<%=rs("hankonggongsi")%>"><%=rs("hankonggongsi")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
              </select></td>
              <td width="16%"> &nbsp;航段类型： </td>
              <td width="16%"><select name="hdtype" id="hdtype">
                <option value="直达" selected>直达</option>
                <option value="">所有</option>
                                                  </select></td>
              <td width="15%">&nbsp;出发日期： </td>
              <td width="18%"><input name="textfield" type="text" size="16" onfocus="javascript:setday(this)" value="点击选择日期"></td>
            </tr>
            <tr>
              <td height="30">出发城市：</td>
              <td><select name="chufachenshi" id="chufachenshi">
<%
set rs=server.createobject("adodb.recordset")
rs.open "select DISTINCT chufachenshi from dingbiao",conn,1,1
do while not rs.eof %> 
<option value="<%=rs("chufachenshi")%>"><%=rs("chufachenshi")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
</select>              <font color="red"> *</font></td>
              <td> 单程/往返： </td>
              <td><select name="type" id="type">
                <option value="单程" selected>单程</option>
                <option value="往返">往返</option>
                <option value="联程">联程</option>
              </select></td>
              <td>&nbsp;反程日期： </td>
              <td><input name="textfield2" type="text" size="16" onfocus="javascript:setday(this)" value="点击选择日期">                </td>
            </tr>
            <tr>
              <td height="30">到达城市：</td>
              <td><select name="mudichenshi" id="mudichenshi">
<%
set rs=server.createobject("adodb.recordset")
rs.open "select DISTINCT mudichenshi from dingbiao",conn,1,1
do while not rs.eof %> 
<option value="<%=rs("mudichenshi")%>"><%=rs("mudichenshi")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
              </select>              <font color="red"> *</font></td>
              <td> &nbsp;乘舱类型： </td>
              <td><select name="cctype2" id="cctype2">
                <option value="1" selected>经济舱</option>
                <option value="2">公务舱</option>
                <option value="3">头等舱</option>
              </select></td>
              <td colspan="2"> <div align="center"><font color="red"> 单程航班无需选择反程日期</font></div></td>
            </tr>
            <tr>
              <td height="30">航班类型：</td>
              <td colspan="2">国内航班
                <input name="hbtype" type="radio" value="1" checked>
                国际航班
                <input name="hbtype" type="radio" value="2"></td>
              <td colspan="3"><div align="center">
    <input type="submit" name="Submit" value="提交查询">
&nbsp;&nbsp;
    <input type="reset" name="Submit2" value="重置">
              </div></td>
            </tr>
          </form>
</table>
</td>
        </tr>
        <tr>
          <td width="50%" height="30" background="Images/topBar_bg.gif"><table width="97%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;<img src="Images/ring01.gif" width="9" height="9"> 国内推荐航班信息 </td>
                <td><div align="right"><a href="ticket_1.asp"><font color="#0000FF">更多国内航班</font></a></div></td>
              </tr>
            </table></td>
          <td width="2%" rowspan="2">&nbsp;</td>
          <td width="48%" background="Images/topBar_bg.gif"><table width="97%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;<img src="Images/ring01.gif" width="9" height="9"> 国际推荐航班信息 </td>
              <td><div align="right"><a href="ticket_2.asp"><font color="#0000FF">更多国际航班</font></a></div></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="135" valign="top"><%set rs=server.createobject("adodb.recordset")
rs.open "select top 8 id,hbtype,chufachenshi,mudichenshi,type,shichanjia,tuijiang from dingbiao where tuijiang=1 and hbtype=1",conn
if err.number<>0 then
response.write "数据库中无数据！"
end if
do while not rs.eof
%>
            <table width="99%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="2%">&nbsp;</td>
                <td width="35%"><%=rs("chufachenshi")%>-<%=rs("mudichenshi")%></td>
                <td width="25%"><%=rs("type")%></td>
                <td width="24%"><font color="#FF0000">＄<%=rs("shichanjia")%></font></td>
                <td width="14%"><a href="Ticketinfo.asp?id=<%=rs("id")%>">预定</a></td>
              </tr>
            </table>
            <%
rs.movenext
loop
rs.close
set rs=nothing
%></td>
          <td height="135" valign="top"><%set rs=server.createobject("adodb.recordset")
rs.open "select top 8 id,hbtype,chufachenshi,mudichenshi,type,shichanjia,tuijiang from dingbiao where tuijiang=1 and hbtype=2",conn
if err.number<>0 then
response.write "数据库中无数据！"
end if
do while not rs.eof
%>
            <table width="99%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="2%">&nbsp;</td>
                <td width="35%"><%=rs("chufachenshi")%>-<%=rs("mudichenshi")%></td>
                <td width="25%"><%=rs("type")%></td>
                <td width="24%"><font color="#FF0000">＄<%=rs("shichanjia")%></font></td>
                <td width="14%"><a href="Ticketinfo.asp?id=<%=rs("id")%>">预定</a></td>
              </tr>
            </table>
            <%
rs.movenext
loop
rs.close
set rs=nothing
%></td>
        </tr>
        <tr>
          <td height="30" colspan="3" background="Images/topBar_bg.gif">&nbsp;<img src="Images/ring01.gif" width="9" height="9"> 最新航班信息</td>
        </tr>
        <tr>
          <td height="340" colspan="3" valign="top">
            <table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ebebeb">
              <tr>
                <td width="22%"> &nbsp;航空公司</td>
                <td width="17%"> &nbsp;航段</td>
                <td width="12%">航段类型</td>
                <td width="14%">单程/往返</td>
                <td width="14%">航班类型</td>
                <td width="11%">价格</td>
                <td width="10%">预定</td>
              </tr>
              <tr bgcolor="#CCCCCC">
                <td height="1" colspan="8"></td>
              </tr>
            </table>
            <%set rs=server.createobject("adodb.recordset")
rs.open "select top 20 * from dingbiao",conn,1,1
if err.number<>0 then
response.write "数据库中无数据！"
end if
do while not rs.eof
%>
  <table width="99%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="22%"><%=rs("hankonggongsi")%></td>
      <td width="17%"><%=rs("chufachenshi")%>-<%=rs("mudichenshi")%></td>
      <td width="12%"><%=rs("hdtype")%></td>
      <td width="14%"><%=rs("type")%></td>
      <td width="14%"><% if rs("hbtype")="1" then 
response.write "国内航班"
else
response.write "国际航班"
end if
%></td>
      <td width="11%"><font color="#FF0000">＄<%=rs("shichanjia")%></font></td>
      <td width="10%"><a href="Ticketinfo.asp?id=<%=rs("id")%>">预定</a></td>
    </tr>
    <tr bgcolor="#CCCCCC">
      <td height="1" colspan="8"></td>
      </tr>
  </table>
  <%
rs.movenext
loop
rs.close
set rs=nothing
%></td>
        </tr>
    </table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"></td>
        </tr>
      </table></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 trim(rs("gongzuoshijian"))
response.Write "  <font color=#000000><b>"&weburl&"</b></font> &copy; <font color=red> "&copyright&" </font>"
response.Write "　页面执行时间："&FormatNumber((endtime-startime)*1000,3)&" 毫秒"
rs.close
set rs=nothing%>
      </div></TD>
    </TR>
  </TBODY>
</TABLE>
