<!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}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>
</head>
<body>
<!--{template inc/top}-->

<div id="container">
<!--{template inc/header}-->
  <div id="nav_son">
  	<span><a href="{PHP_SELF}?m=member" class="cxdd">查询我的订单状态</a></span>免费预订，酒店前台付款，保证价格比酒店前台价格低，预订成功即给您保留房间！
  </div> 

	<div style="margin-bottom:5px;">{show:common ShowAd('index_top_1')}</div>
  
  <div id="mainContent">
    <div id="imain"><form id="form_hotel" name="form_hotel" method="post" action="{PHP_SELF}?m=hotellist" onSubmit="return checkindex();">
    	<div id="search">
        <h2><span>$hotelcount</span>家酒店 <a href="{PHP_SELF}?m=comment" target="_blank"><span>$comment_count</span>条客人真实评价</a> 客人满意度：<span>98.0%</span></h2>

        <div id="search1" class="srh_base">
          <ul>
            <li class="srh_li1"><input name="cityid" id="cityid" type="hidden" value="$uncityinfo[0]" />
              <label for="cityName">选择城市(必填*)</label>
                <input name="txtCity" id="txtCity" onClick="suggestH.display(this,'',event);" autocomplete="off"  class="srh_txt1" type="text" value="$uncityinfo[1]" readonly="readonly">
            </li>
            <li class="srh_li2">
              <label for="key">附近标志性地标</label>

               <input name="key" id="key" type="text" class="srh_txt" value="" />
            </li>
            <li class="srh_li3">
              <label for="tm1">入住时间(必填*)</label>
              <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="srh_txt1" onBlur="javascript:this.value=this.value.replace(/[^\d\-]/g,'');" id="tm1" value="" name="tm1" />
            </li>
            <li class="srh_li4">
              <label for="tm2">离店时间(必填*)</label>

              <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="srh_txt1" id="tm2" value="" name="tm2">
            </li>
          </ul>
        </div>
        <div id="search2">
          <h5>
          <!--{loop $uncityinfo_array $k $v}-->
			<a href="javascript:loadWord($v[cityid],'$v[cityname]');"><!--{if $k==0}--><B>$v[cityname]</B><!--{else}-->$v[cityname]<!--{/if}--></a>　
          <!--{/loop}-->
          </h5>
          <ul>
		  <!--{model:index citylable($uncityinfo[0],12) return=city_lable_array}-->
          $city_lable_array[nofind]
          <!--{loop $city_lable_array[rs] $v}-->
          <li><a href='{PHP_SELF}?m=hotellist&cityid=$v[cityid]&rank=0&key=${echo urlencode($v[key])}' title='$v[key]' target="_blank">$v[key]</a></li>
          <!--{/loop}-->
        </ul>

        </div>
        <div id="search3" class="srh_base">
          <ul>
          	<li class="srh_li5"><label for="minprice">价格范围</label>
            <input name="minprice" type="text" class="srh_txt2" id="minprice" value="" /> 至 <input name="maxprice" type="text" class="srh_txt2" id="maxprice" value=""  />
          	</li>
            <li class="srh_li6"><label for="hn">酒店名称</label>

              <input class="srh_txt" id="hn" type="text" name="hn" title="可以输入如家、快捷、7天、锦江之星、前门店"/>
            </li>
            <li class="srh_li7">
                   <input name="button" type="submit" class="bth_srh" id="button" value="  " />
            </li>
                        
           <li class="srh_li8"><a href="{PHP_SELF}?m=map" target="_blank">在地图上找酒店→</a></li>
          
          </ul>
        </div>

     
      </div></form>
    	<div class="info_box" id="ajaxbox">
    	  <div class="box_tit"><strong>推荐酒店</strong>
    	    <ul>
            <!--{loop $uncityinfo_array $k $v}-->
              <li<!--{if $k==0}-->  id="bt_current"<!--{/if}--> onClick="loadcs($v[cityid],'$v[cityname]')"><span>$v[cityname]</span></li>
            <!--{/loop}-->
  	      	</ul>
    	  </div>
          <div id="ajaxboxinfo"> 
    	  <div class="tuijian_con">
          <div class="tj_pic">
            <ul>
            <!--{model:common getCityHotHotel($uncityinfo[0], 5, 'px_index') return=city_hot_hotel}-->
            <!--{loop $city_hot_hotel $v}-->
             <li><a href='{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]' title='$v[hotelname]&#10;最低价格：$v[min_price]元起订 &#10;商圈：$v[cbd_name]' target="_blank"><img src='{$picurl}{$v[picture]}' width='120' height='90'/>${echo Functions::cut_str($v[hotelname], 9);}</a></li>
            <!--{/loop}-->
            </ul>
          </div>
           <div class="tj_box" id="economy">
             <h3><a href="{PHP_SELF}?m=liansuohotel&cityid=$uncityinfo[0]" target="_blank">$uncityinfo[1]经济型连锁酒店推荐</a></h3>             
             <ul>
             <!--{model:index getIndexHotelArray($uncityinfo[0], 'liansuo') return=liansuo_array}-->
             <!--{loop $liansuo_array $v}-->
             	<li><span class="pr">￥$v[min_price]</span><span class="area">品牌:<a href="{PHP_SELF}?m=hotellist&cityid=$v[cityid]&chain_id=$v[chain_id]" title="{$uncityinfo[1]}{$v[chain_name]}" target="_blank">$v[chain_name]</a></span><a href='{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]' title='$v[hotelname]&#10;最低价格：$v[min_price]元起订 &#10;商圈：$v[cbd_name]' target="_blank">$v[hotelname]</a></li>
			 <!--{/loop}-->
             </ul>
           </div>
           <div class="tj_box" id="inexpensive">
             <h3><a href="{PHP_SELF}?m=hotellist&cityid=$uncityinfo[0]&px=2" target="_blank">$uncityinfo[1]最低价酒店</a></h3>
             
             <ul>
             <!--{model:index getIndexHotelArray($uncityinfo[0], 'min_price') return=min_price_array}-->             
             <!--{loop $min_price_array $v}-->
              <li><span class="pr">￥$v[min_price]</span><span class="area">位于:<a href="{PHP_SELF}?m=hotellist&cityid=$v[cityid]&cbd_id=$v[cbd_id]" title="$v[cbd_name]" target="_blank">$v[cbd_name]</a></span><a href='{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]' title='$v[hotelname]&#10;最低价格：$v[min_price]元起订 &#10;商圈：$v[cbd_name]' target="_blank">$v[hotelname]</a></li>
             <!--{/loop}-->
             </ul>
           </div>
           <div class="tj_box" id="expensive">
             <h3><a href="{PHP_SELF}?m=hotellist&cityid=$uncityinfo[0]&px=3" target="_blank">$uncityinfo[1]豪华酒店推荐</a></h3>
             
             <ul>
             <!--{model:index getIndexHotelArray($uncityinfo[0], 'haohua') return=haohua_array}-->                          
             <!--{loop $haohua_array $v}-->
	           <li><span class="pr">￥$v[min_price]</span><span class="area">位于:<a href="{PHP_SELF}?m=hotellist&cityid=$v[cityid]&cbd_id=$v[cbd_id]" title="$v[cbd_name]" target="_blank">$v[cbd_name]</a></span><a href='{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]' title='$v[hotelname]&#10;最低价格：$v[min_price]元起订 &#10;商圈：$v[cbd_name]' target="_blank">$v[hotelname]</a></li>
             <!--{/loop}-->
             </ul>
           </div>
        </div>
        </div>
  	  </div>
    	<div class="info_box rollchain">
    	  <div class="box_tit"><strong><a href="{PHP_SELF}?m=liansuo" target="_blank">品牌酒店</a></strong>
    	    <ul>

    	      <li id="bt_current" onClick="return rollchain(0);"><span>经济连锁酒店</span></li>
    	      <li onClick="return rollchain(1);"><span>品牌连锁酒店</span></li>
  	      </ul>
  	    </div>
<div class="pp_list">
<ul>
<!--{model:liansuo getchain(0, 16) return=chain_array}-->
<!--{loop $chain_array $v}-->
<li><a href='{PHP_SELF}?m=liansuohotel&chain_id=$v[chain_id]' title='$v[chain_name]' target="_blank"><img src='{$ZNpicurl}{$v[picture]}' width='50' height='40' alt="$v[chain_name]" />$v[chain_name]</a></li>
<!--{/loop}-->
</ul>

<ul style="display:none;">
<!--{model:liansuo getchain(0, 16, 1) return=start_chain_array}-->
<!--{loop $start_chain_array $v}-->
<li><a href='{PHP_SELF}?m=liansuohotel&chain_id=$v[chain_id]' title='$v[chain_name]' target="_blank"><img src='{$ZNpicurl}{$v[picture]}' width='50' height='40' alt="$v[chain_name]" />$v[chain_name]</a></li>
<!--{/loop}-->
</ul>
</div>
      </div>
    	<div class="info_box" id="index_com">
    	  <h2><span><a href="{PHP_SELF}?m=comment&cityid=$uncityinfo[0]" target="_blank">更多</a></span>最新酒店点评</h2>

    	  <div class="ib_con">
			<div id="comment_index_body"><img align="absmiddle" src="{$BASE}js/loading.gif"/>最新酒店点评正在努力加载中...</div>          		  
          </div>
  	  </div>
    	<div class="info_box" id="index_ask">
    	  <h2><span><a href="{PHP_SELF}?m=question&cityid=$uncityinfo[0]" target="_blank">更多</a></span>最新酒店问答</h2>
    	  <div class="ib_con">
	          <div id="question_index_body"><img align="absmiddle" src="{$BASE}js/loading.gif"/>最新酒店问答正在努力加载中...</div>
       	  </div>
  	  </div>
    </div>
    <div id="iside">
<div class="side_special index_side" style="position:relative;width: 220px; height: auto;overflow:hidden;">
<ul id="Slider">
    <li>{show:common ShowAd('index_right_1')}</li>
    <li>{show:common ShowAd('index_right_2')}</li>
</ul>
</div>
<div class="side_zx index_side" style="width:218px">
      	<h4><span><a href="{PHP_SELF}?m=news">更多</a></span>热门出行资讯</h4>

        <ul>
        <!--{model:hotelLeft getNewsView() return=article_side_rs}-->
        <!--{loop $article_side_rs $v}-->
	        <li><a href="{PHP_SELF}?m=newsinfo&aid=$v[aid]" target="_blank" title="$v[title]">${echo Functions::cut_str($v[title], 16);}</a></li>
        <!--{/loop}-->
        </ul>
      </div>

      
      <div class="sidebox index_side">
        <h4><span><a href="{PHP_SELF}?m=allcitylable">更多</a></span>热门地标分类</h4>
        <div class="sbox_con1">
            <ul>
              <li class="db_list1"><a href="{PHP_SELF}?m=lable&classid=166" target="_blank">火车站附近酒店</a></li>
              <li class="db_list2"><a href="{PHP_SELF}?m=lable&classid=135" target="_blank">机场周边酒店</a></li>
              <li class="db_list3"><a href="{PHP_SELF}?m=lable&classid=163" target="_blank">汽车站附近酒店</a></li>
              <li class="db_list4"><a href="{PHP_SELF}?m=lable&classid=83" target="_blank">大学附近酒店</a></li>
              <li class="db_list5"><a href="{PHP_SELF}?m=lable&classid=82" target="_blank">中学附近酒店</a></li>
              <li class="db_list6"><a href="{PHP_SELF}?m=lable&classid=65" target="_blank">景点附近酒店</a></li>
              <li class="db_list7"><a href="{PHP_SELF}?m=lable&classid=26" target="_blank">商务大厦周边酒店</a></li>
              <li class="db_list8"><a href="{PHP_SELF}?m=lable&classid=44" target="_blank">体育场附近酒店</a></li>
              <li class="db_list9"><a href="{PHP_SELF}?m=lable&classid=119" target="_blank">医院周边酒店</a></li>
              <li class="db_list10"><a href="{PHP_SELF}?m=lable&classid=170" target="_blank">地铁站附近酒店</a></li>
            </ul>
        </div>
      </div>

      <div class="sidebox index_side">
        <h4><span><a href="{PHP_SELF}?m=lable&cityid=$uncityinfo[0]" target="_blank">更多</a></span>著名地标附近酒店</h4>
        
        <div class="sbox_con">
          <ul>
          <!--{model:hotelLeft point_info_list($uncityinfo[0], 17, 1) return=lable_ary_index}-->          
          <!--{loop $lable_ary_index $v}-->
				<li><a href='{PHP_SELF}?m=lable&cityid=$v[cityid]&classid=$v[classid]' target='_blank'><span>[{$v[classname]}]</span></a><a href='{PHP_SELF}?m=hotellist&cityid=$v[cityid]&key=$v[key_urlencode]' title='$v[key]地标附近酒店' target="_blank"">$v[key]地标附近酒店</a></li>
          <!--{/loop}-->
          </ul>
        </div>                
      </div>
    </div>
    <div class="clearfloat"></div>
  </div>
  <div class="sidebox">
    <h4><span><a href="{PHP_SELF}?m=friendlink" target="_blank">更多链接</a></span>友情链接</h4>

    <div class="friend_link">
      <ul>
        <!--{model:index getFlink() return=flink_img_array}-->                
		<!--{loop $flink_img_array $v}-->
		 <li><a href="$v[flink_link]" target="_blank" title="$v[flink_title]"><img width="88" height="31" src="$v[img]" border="0" alt="$v[flink_title]" /></a></li>
        <!--{/loop}-->
      </ul>
      <ul>
        <!--{model:index getFlink('text',40) return=flink_text_array}-->                      
		<!--{loop $flink_text_array $v}-->
		 <li><a href="$v[flink_link]" target="_blank" title="$v[flink_title]">$v[flink_title]</a></li>		
		<!--{/loop}-->
      </ul>
    </div>
  </div>
<!--{template inc/footer}-->
</div>  
</body>
</html>

<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","{$BASE}js/zhuna-js/mapbar31.2.js");
j.includecss("{$BASE}js/calendar/city_menu.css","{$BASE}js/zhuna-js/nyroModal.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)));
$("#index_com .ib_con dl dd,#index_ask .ib_con dl dd").each(function(){$(this).simpletooltip({br:true});});
setkeya();

});
function rollchain(val){
	var box=$(".info_box.rollchain");
	box.find(".box_tit ul").each(function(){$(this).find("li").eq(''+val+'').attr("id","bt_current").siblings().removeAttr("id");});
	box.find(".pp_list ul").eq(''+val+'').show().siblings().hide();
}
function loadcs(id,cityname,a){//v1(obj);
if(($(".box_tit ul li#bt_current span").html()==cityname)&&(!a))return;
$(".box_tit ul li").each(function(){
if(cityname==$(this).find("span").html()){$(this).attr("id","bt_current")}else{$(this).removeAttr("id");}});
$.ajax({url : "{PHP_SELF}?m=ajkeyword.tuijian",type : 'POST',data: ({cid:id,cname:escape(cityname),tjnum:5}),dataType: "html",beforeSend : function(data){$(this).loading({div:"#ajaxbox",mini:true})},
success : function(data){$(".loading").each(function(){$(this).remove()});
	var dataObj=eval('('+ data +')'); 
	var hot = dataObj.hot;
	var economy = dataObj.economy;
	var inexpensive = dataObj.inexpensive;
	var expensive = dataObj.expensive;
	
	var hothtml = "" ;
	var economyhtml = "" ;
	var inexpensivehtml = "" ;
	var expensivehtml = "" ;
	$(".tj_pic ul").empty();
	$.each( hot,function(idx, items){
	    var hotelname = String(items.hotelname).substring(0,10);
		hothtml = "<li>"
		              +"<a href=\"{PHP_SELF}?m=hotelinfo&hotel_id="+items.hotel_id+"\"  target=\"_blank\"><IMG src=\"{$ZNpicurl}"+items.picture+"\" width=\"110\" height=\"81\" >"+hotelname+"<\/a><\/li>";
	        		$(".tj_pic ul").append(hothtml);
	});

	$("#economy ul").empty();
	$.each( economy,function(idx, items){
		economyhtml = "<li><span class=\"pr\">￥"+items.min_price+"起<\/span>"
		              +"<a href=\"{PHP_SELF}?m=hotelinfo&hotel_id="+items.hotel_id+"\"  target=\"_blank\">"+items.hotelname+"<\/a><\/li>";
	        		$("#economy ul").append(economyhtml);
	});	
	$("#economy h3").html("<a target=\"_blank\" href=\"{PHP_SELF}?m=liansuohotel&cityid="+id+"\">"+cityname+"经济型连锁酒店推荐</a>");   
	
	$("#inexpensive ul").empty();
	$.each( inexpensive,function(idx, items){
		inexpensivehtml = "<li><span class=\"pr\">￥"+items.min_price+"起<\/span>"
		              +"<a href=\"{PHP_SELF}?m=hotelinfo&hotel_id="+items.hotel_id+"\"  target=\"_blank\">"+items.hotelname+"<\/a><\/li>";
	        		$("#inexpensive ul").append(inexpensivehtml);
	});	
	$("#inexpensive h3").html("<a target=\"_blank\" href=\"{PHP_SELF}?m=hotelist&cityid="+id+"&px=2\">"+cityname+"最低价酒店推荐</a>");  
	
	$("#expensive ul").empty();
	$.each( expensive,function(idx, items){
		expensivehtml = "<li><span class=\"pr\">￥"+items.min_price+"起<\/span>"
		              +"<a href=\"{PHP_SELF}?m=hotelinfo&hotel_id="+items.hotel_id+"\"  target=\"_blank\">"+items.hotelname+"<\/a><\/li>";
	        		$("#expensive ul").append(expensivehtml);
	});		
	$("#expensive h3").html("<a target=\"_blank\" href=\"{PHP_SELF}?m=hotellist&cityid="+id+"&px=3\">"+cityname+"豪华酒店推荐</a>"); 
 		
;}
,timeout:5000,error: function () {$(".loading").each(function(){$(this).remove()});$("<div style=\"-moz-border-radius:3px 3px 3px 3px;color:red;background-color:#FFDDDD;border:1px solid #CCCCCC;margin:0.8em 0 1.2em;padding:5px;text-align:center;\">对不起，请求超时，请您<a href=\"javascript:void(0);\" onClick=\"return loadcs("+id+",'"+cityname+"',1);\">重新查询！</a></div>").insertBefore(".tuijian_con")}});}

function loadWord(aid,c){
	if(c){	$(':input#cityid').val(aid);	$(':input#txtCity').val(c);setColor('#txtCity',3,'#CDEDF8',160);}	
	$('#key').val('');
	$.ajax({url : "{PHP_SELF}?m=ajkeyword&id="+aid,type : 'get',dataType: "html",beforeSend : function(data){$(this).loading({div:"#search",mini:true});},success : function(data){$("#search").css({position:""});$(".loading").each(function(){$(this).remove()});$("#search2").html(data);setkeya();},timeout: 5000,error: function(){$("#search").css({position:""});$(".loading").each(function(){$(this).remove()});$("#search2").html("<div style=\"-moz-border-radius:3px 3px 3px 3px;color:red;background-color:#FFDDDD;border:1px solid #CCCCCC;margin:0.8em 0 1.2em;padding:5px;\">对不起，请求超时，请您<a href=\"javascript:void(0);\" onClick=\"return loadWord("+aid+",'"+c+"');\">重新查询！</a></div>")}
	});	
};
function setkeya(){$("#search2 ul li a").each(function(){$(this).click(function(e){setColor('#key',3,'#CDEDF8',160);$("#key").val($(this).html());e.preventDefault(); });});}
</script>
<script language="javascript">
$(function(){
	getQuestionLimitIndex();	
	getCommentLimitIndex(4);	
});

function getQuestionLimitIndex(){
	var string = '';
	$.post("{PHP_SELF}?m=index.getQuestionLimitIndex",
		function(data){
			var obj=eval("("+data+")");//转换为json对象
			var nofind = obj.nofind;
			var rs = obj.rs;
			$.each(rs,function(j, n){
				var hotel_id = n.hotel_id;
				var hotelname = n.hotelname;
				var question = n.question;
				var answer = n.answer;				
				string += '<dl><dt><a href="{PHP_SELF}?m=hotelinfo&hotel_id='+hotel_id+'" target="_blank">'+hotelname+'</a></dt><dd class="info_ask_row" title="'+question+'<br/>">'+question+'<br/></dd><dd title="'+answer+'">'+answer+'</dd></dl>';
			});
			string += nofind;	
			$('#question_index_body').html(string);
	});	
}

function getCommentLimitIndex(limit){
	var string = '';
	$.post("{PHP_SELF}?m=index.getCommentLimitIndex",{limit:limit},
		function(data){
			var obj=eval("("+data+")");//转换为json对象
			var nofind = obj.nofind;
			var rs = obj.rs;
			$.each(rs,function(j, n){
				var hotel_id = n.hotel_id;
				var hotelname = n.hotelname;
				var yonghu = n.yonghu;
				var addtime = n.addtime;
				var content = n.content;
				var content_s = n.content_s;									
				string += '<dl><dt><a href="{PHP_SELF}?m=hotelinfo&hotel_id='+hotel_id+'" title="'+hotelname+'" target="_blank">'+hotelname+'</a></dt><dd>'+content+'</dd></dl>';
			});
			string += nofind;	
			$('#comment_index_body').html(string);
	});	
}
</script>