<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>$keywords_array[k_title]</title>
<meta name="keywords" content="$keywords_array[k_keywords]" />
<meta name="description" content="$keywords_array[k_description]" />
<link href="{$BASE_V}css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">var webpath="{$BASE}";</script>
<script type="text/javascript" src="{$BASE}js/calendar/jquery.min.js"></script>
<link href="{$Order_api}room.utf8.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{$Order_api}room.utf8.js"></script>
</head>

<body>
<!--{template inc/top}-->
  <div id="container">
  <!--{template inc/header}-->
    
    <div class="nav_son">
    	<span><a href="{PHP_SELF}?m=order" class="cxdd">查询我的订单状态</a></span>当前位置：<a href="/">首页</a> &gt;&nbsp;<a href="{PHP_SELF}?m=allcity">全国酒店</a> &gt; <a href="{PHP_SELF}?m=city&cityid=$city[cityid]">$city[cityname]酒店</a> &gt;&nbsp;酒店宾馆预订
    </div>
    <!--{template inc/topad}-->
    <div id="miancont">
      <div class="list_tit">
        <h2>$city[cityname]酒店预订</h2>
      </div>
      <div style="padding-left:25px;" class="list_tit">
      <form id="form_hotel" name="form_hotel" method="post" action="{PHP_SELF}?m=hotellist" onsubmit="return checkindex();">
        <table width="920" border="0" cellspacing="5">
	  <tr>
	    <td width="65"><label for="txtCity">入住城市：</label></td>
	    <td width="176">
	     <input name="cityid" id="cityid" type="hidden" value="$sk_array[cityid]" />
	     <input name="txtCity" id="txtCity" onclick="suggestH.display(this,'',event);" value="$sk_array[cityname]" autocomplete="off"  class="input" type="text"  readonly="readonly" value="$sk_array[cityname]"></td>
	    <td width="65"><label for="tm1">入住时间：</label></td>
	    <td width="176"><input type="text" onClick="javascript:event.cancelBubble=true;showCalendar('tm1',false,'tm1','tm2','tm2',''+ZNDate.format(ZNDate.today())+'',''+ZNDate.format(ZNDate.plus(ZNDate.today(),60))+'','','','','SWeek','')" class="input_1" onBlur="javascript:this.value=this.value.replace(/[^\d\-]/g,'');" id="tm1"  name="tm1" readonly="readonly" value="$sk_array[tm1]"/></td>
	    <td width="65"><label for="tm2">离店时间：</label></td>
	    <td width="176"><input type="text" onClick="javascript:SelHotelCalMethod(event,'out','tm1','tm2',''+ZNDate.format(ZNDate.plus(ZNDate.today(),60))+'');" onBlur="javascript:this.value=this.value.replace(/[^\d\-]/g,'');" class="input_1" id="tm2" value="$sk_array[tm2]" name="tm2" readonly="readonly"></td>
        <td rowspan="96" valign="top" ><input type="submit" value="  " id="hotelso" class="list_ser" name="button3"></td>
	  </tr>
	  <tr>
	    <td width="65"><label for="minprice">价格范围：</label></td>
	    <td width="176"><input name="minprice" type="text" class="srh_txt2" id="minprice" value="$sk_array[minprice]"/> 至 <input name="maxprice" type="text" class="srh_txt2" id="maxprice" value="$sk_array[maxprice]"/></td>
	    <td width="65"><label for="hn">酒店名称：</label></td>
	    <td width="176"><input name="hn" type="text" class="input_2" id="hn"  value="$sk_array[hn]"/></td>
	    <td width="65"><label for="dibiao">附近地标：</label></td>
	    <td width="176"><input name="key" type="text" class="input_2"  value="$sk_array[key]" id="dibiao"/></td>
	    </tr>
	</table>
	</form>
      </div>
      <div id="mian_ileft">
        <div class="shaixuan">
          <div class="sx_tit">
            <h5>筛选条件</h5>
            <span><strong>$totalrecord</strong> 家酒店符合要求</span>
          </div>
           <div id="list_filter">
          <dl>
            <dt>价格范围</dt>
            <dd>          
	            <a {if empty($maxprice)}class="sx_curr"{/if} href="{$url_price}">全部</a>
	             <!--{loop $price_ary $k $v}-->
            	${$price_array = explode('-', $k);}
                 <a href="{$url_price}&minprice=$price_array[0]&maxprice=$price_array[1]"{if $minprice==$price_array[0] && $maxprice==$price_array[1]} class="sx_curr"{/if}>$v</a>
                 <!--{/loop}-->
            </dd>
          </dl>
          <!--{if empty($key)}-->
          <dl>
            <dt>著名商圈</dt>
            <dd>
            	<span><a class="more">更多</a></span>
            	<a {if empty($cbd_id)}class="sx_curr"{/if} href="{$url_cbd_id}">全部</a>
            	<!--{model:hotellist getSearchCbd($city[cityid], $cbd_id, 38) return=cbd_rs}-->
            	<!--{loop $cbd_rs $v}-->
                <a href="{$url_cbd_id}&cbd_id=$v[cbd_id]" title="$v[cbd_name]"{if $cbd_id == $v[cbd_id]} class="sx_curr"{/if}>$v[cbd_name]</a>
                <!--{/loop}-->
            </dd>
          </dl>
          <!--{/if}-->
          <!--{if $chain_id<1}-->
          <dl>
            <dt>星级档次</dt>
            <dd>
            	<a {if empty($rank)}class="sx_curr" {/if}href="{$url_rank}">全部</a>
	            <!--{loop $rank_ary $k $v}-->
	            <a href="{$url_rank}&rank=$k"{if $rank == $k} class="sx_curr"{/if}>$v</a>
	            <!--{/loop}-->
            </dd>
          </dl>
          <!--{/if}-->
          <dl>
            <dt>品牌连锁</dt>
            <dd>
              <span><a class="more">更多</a></span>
              <a href="{$url_chain_id}"{if empty($chain_id)} class="sx_curr"{/if}>全部</a>
              <!--{model:hotellist getSearchLiansuo($city[cityid], $chain_id, 25) return=chain_array}-->            
              <!--{loop $chain_array $v}-->
              <a href="{$url_chain_id}&chain_id=$v[chain_id]" title="$v[chain_name]"{if $v[chain_id] == $chain_id} class="sx_curr"{/if}>$v[chain_name]</a>
              <!--{/loop}-->

            </dd>
          </dl>
        </div>
        </div>
      <div class="MapNewCss" id="divmap" style="display:none;">
        <iframe width="700px;" height="340px;" frameborder="no" scrolling="no" name="ifrMapURL" id="ifrMapURL"></iframe>
      </div>        
        <div class="paixu">
          <span>排序：</span>
          <ul>
            <li><a ${hotellist::getpx_style($px,1)}href="{$url_px}1" {if $px == 1}class="bj" {/if}>网站推荐</a></li>
            <li><a ${hotellist::getpx_style($px,2)}href="{$url_px}2" {if $px == 2}class="bj" {/if}>价格排序</a></li>
            <li><a ${hotellist::getpx_style($px,3)}href="{$url_px}3" {if $px == 3}class="bj" {/if}>星级排序</a></li>
            <li><a ${hotellist::getpx_style($px,4)}href="{$url_px}4" {if $px == 4}class="bj" {/if}>人气排序</a></li>
            {if !empty($key)}
            <li><a ${hotellist::getpx_style($px,5)} href="{$url_px}5" {if $px == 5}class="bj" {/if}>距离排序</a></li>
            {/if}
            <span style="float:right;margin-right:5px;">
	            <input type="checkbox" name="mapon" id="mapon" />
	            <label for="mapon">显示地图</label>
            </span>
          </ul>
        </div>
        {if !empty($nofind)}
        $nofind
        {/if}
        {if !empty($ErrorMsg)}
        $ErrorMsg
        {/if}         
        <!--list begin-->
        <!--{loop $hotel_slist $k $v}-->
        <div class="listcon01">
          <div class="jd_pic">
            <dl>
              <dt><a href="{$picurl}{$v[picture]}"><img src="{$picurl}{$v[picture]}" width="116" height="97" /></a></dt>
              <dd><a href="{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]#hotelphoto">更多酒店图片</a></dd>
              <dd><a class="hotel_dp" href="{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]#hotelcomment">查看点评</a></dd>
              <dd><a class="hotel_dp" href="{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]#hotelmap">查看地图</a></dd>
            </dl>
          </div>
          <div class="jd_con">
            <div class="jd_con_top">
              <div class="top_left">
                <h2><a href="{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]" target="_blank">$v[hotelname]</a></h2>
                <ul>
                  {if $v[address] != ''}<li>酒店地址：<span>$v[address]</span></li>{/if}
                  {if $v[cbd_name] != ''}<li>所属区域：<a href="{PHP_SELF}?m=hotellist&cityid=$v[cityid]&cbd_id=$v[cbd_id]">$v[cbd_name]</a></li>{/if}
                  {if !empty($key)}
                  <li>当前距离：当前酒店距离<strong>"$key"</strong>$v[juli]公里</li>
                  {/if}
                </ul>
              </div>
              <div class="top_right">
                <ul>
                  <li style="color:#05a;"><span>${echo hotellist::manyidu($v[haoping])}%</span> 好评率</li>
                  <li>${$haoping_array = explode('$', $v[haoping]); echo array_sum($haoping_array);}条点评</li>
                  <!--  <li><a href="#">收藏该酒店</a></li>-->
                </ul>
              </div>
            </div>
            <div class="fang_news" id="h$v[hotel_id]">
				
				 <p style="text-align:center;"><img src="{$BASE_V}images/loadprice.gif" /></p>
               
   	          </div>
               
          </div>
        </div>
        <!--{/loop}-->
        <!--list end-->
        <div class="page">
          <div class="page_list">
            {$page}
          </div>
        </div>   
        <div class="index_tj">
          <div class="list_box1">
          <h4>$city[cityname]热点区域附近酒店</h4>
          <ul>
            <li>
                <!--{model:hotelLeft point_info_list($city[cityid], 20, 'lable_ary_bottom') return=lable_ary_bottom}-->
                <!--{loop $lable_ary_bottom $k $v}-->
            	<a href='{PHP_SELF}?m=hotellist&cityid=$v[cityid]&key={$v[key_urlencode]}' title='$v[key]附近酒店'>$v[key]</a>
            	<!--{/loop}-->
           </li>
          </ul>
        </div>
        
        </div>
      </div>
      <div id="mian_iright">
      <!--{template inc/hotel_safeguard}-->
      <!--{template inc/welcome}-->
      <!--{template inc/lable}-->
      <!--{template inc/hotel_train}-->
      <!--{template inc/hotel_school}-->
	  <!--{template inc/hotel_news}-->
	  <!--{template inc/cbd}-->
	  <!--{template inc/hotel_history}-->
      </div>
    </div>
    <!--{template inc/footer}-->
  </div>
  <form action="{PHP_SELF}" method="get" target="_blank" name="doBook" id="doBook">
  <input name="m" type="hidden" value="ebook"/>
  <input name="hid" type="hidden"/>
  <input name="rid" type="hidden" />
  <input name="pid" type="hidden" />
  <input name="tm1" type="hidden" value="$tm1" />
  <input name="tm2" type="hidden" value="$tm2" />
</form>
</body>
</html>
<script  language="javascript" >loadPrice('$hid','$tm1','$tm2');</script>
<script type="text/javascript">
j.include("{$BASE}js/calendar/Date.js","{$BASE}js/calendar/calendar.js","{$BASE}js/calendar/citys.js","{$BASE}js/calendar/city_menu.js");
j.includecss("{$BASE}js/calendar/city_menu.css");
$(function(){
if(!$("#tm1").val())$("#tm1").val(ZNDate.format(ZNDate.plus(ZNDate.today(),0)));
if(!$("#tm2").val())$("#tm2").val(ZNDate.format(ZNDate.plus(ZNDate.today(),3)));
//alert(ZNDate.getDateTip(ZNDate.format(ZNDate.plus(ZNDate.today(),3))));
tooltip();
$.get("{PHP_SELF}?m=ajkeyword.saveSearchCondition&cbd_id={$cbd_id}&rank={$rank}&chain_id={$chain_id}&px={$px}&key=$sk_array[key]&hn=$sk_array[hn]&maxprice=$maxprice&minprice=$minprice");
});
$("#list_filter dl dd a[class!='more'][class!='more1']").click(function(){$(this).loading({div:"#mainContent"})});
$("#list_filter dl dd span a").click(function(){
	var s=($(this).attr("class")=="more1")?"more":"more1";
	if(s=="more1"){
	$(this).parent().parent().attr("style","height:auto");}else{$(this).parent().parent().attr("style","height:25px");}
	$(this).attr("class",s);
});
function tooltip(){
$(".listcon01 .jd_pic dl dt img").each(function(){$(this).simpletooltip({html:'<img src="' + $(this).attr("src").replace(/160x120_/i,'500x375_') + '" width="318" height="238"/>',br:false});});
}
$("input[name='mapon']").click(function(){
	if(($("#divmap").css('display')=="none")&&($("input[name='mapon']").attr("checked")==true)){
		$("#divmap").css({"display":""});
		$("#ifrMapURL").attr("src","{PHP_SELF}?m=hotel_map&hotels={$hid}&h=340&w=720&juli=&cityid=$city[cityid]");
	}else{
	    $("#divmap").attr("style","display:none");
	}});
function map(n){
	if((($("input[name='mapon']:checked").length==0)||($("#divmap").css('display')=="none"))){
		$("input[name='mapon']").attr("checked",true);
		$("#divmap").css({"display":""});
		$("#ifrMapURL").attr("src","{PHP_SELF}?m=hotel_map&hotels={$hid}&h=340&w=720&juli=&cityid=$city[cityid]");
	}
	if($.browser.msie){
		if(typeof(window.frames.ifrMapURL.document.body.onload)!="function"){setTimeout("map("+n+")",500)}else{window.frames["ifrMapURL"].openMInfo(n)};
	}else{
		if(typeof(window.frames.ifrMapURL.onload)!="function"){setTimeout("map("+n+")",500)}else{window.frames.ifrMapURL.openMInfo(n)};
	}
}
function rollhotel(n){
	setColor(".list_con div.list_box.div"+n+"",5,"#CDEDF8",160);
	if($(".list_con div.list_box").length<2)return;
	$(".list_con div.list_box").each(function(){$(this).removeAttr("style")});
	var s=$(".list_con div.list_box.div"+n+"");
	s.remove();
	s.insertBefore(".list_con div.list_box:eq(0)");
	$('html').animate({scrollTop:$("#divmap").offset().top}, 'fast');
    $('body').animate({scrollTop:$("#divmap").offset().top}, 'fast');
	tooltip();
}
</script>