<!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>
</head>
<body>
<!--{template inc/top}-->
<div id="container">
    <!--{template inc/header}-->
    <div class="nav_son"> <span> <a class="cxdd" href="{PHP_SELF}?m=member">查询我的订单状态</a> </span> 免费预订，酒店前台付款，保证价格比酒店前台价格低，预订成功即给您保留房间！ </div>
    <!--{template inc/topad}-->
    <div id="miancont">
        <div id="mian_left">
            <div class="serch">
                <h1>酒店搜索</h1>
                <form id="form_hotel" name="form_hotel" method="post" action="{PHP_SELF}?m=hotellist" onSubmit="return checkindex();">
                    <div id="srh_con">
                        <ul>
                            <li>
                                <label for="txtCity"><span class="f_f00">*</span>选择城市：</label>
                                <div class="qcbox">
                                    <input name="cityid" id="cityid" type="hidden" value=" value="$cityinfo[cityid]"" />
                                    <input name="txtCity" id="txtCity" onClick="suggestH.display(this,'',event);" autocomplete="off"  class="input" type="text"  value="$cityinfo[cityname]" readonly="readonly" value="中文/拼音">
                                </div>
                            </li>
                            <li>
                                <label for="tm1"><span class="f_f00">*</span>入住日期：</label>
                                <div class="qcbox">
                                    <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" value="" name="tm1" />
                                </div>
                            </li>
                            <li>
                                <label for="tm2"><span class="f_f00">*</span>退房日期：</label>
                                <div class="qcbox">
                                    <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="" name="tm2">
                                </div>
                            </li>
                            <li>
                                <label for="position">酒店位置：</label>
                                <div class="qcbox">
                                    <input name="key" type="text" class="input_2" id="position" />
                                </div>
                            </li>
                            <li>
                                <label for="minprice">价格范围：</label>
                                <div class="qcbox">
                                    <input name="minprice" type="text" class="srh_txt2" id="minprice"  />
                                    至
                                    <input name="maxprice" type="text" class="srh_txt2" id="maxprice" />
                                </div>
                            </li>
                            <li>
                                <label for="hn">酒店关键词：</label>
                                <div class="qcbox">
                                    <input name="hn" type="text" class="input_2" id="hn" />
                                </div>
                            </li>
                            <li class="p_left">
                                <input type="submit" value="  " id="hotelso" class="anniu" name="button3">
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="side_1">
                <div class="dianp_tit"><img src="{$BASE_V}images/icon_29.jpg">
                    <h2>最新酒店点评</h2>
                </div>
                <div class="side_nr002" id="new_comment">
                    <div id="question_index_body"><img align="absmiddle" src="{$BASE}js/loading.gif"/>最新酒店点评正在努力加载中...</div>
                </div>
            </div>
            <div style="margin:0px;" class="side_1">
                <div class="dianp_tit"><img src="{$BASE_V}images/icon_29.jpg">
                    <h2>最新酒店问答</h2>
                </div>
                <div class="side_nr" id="new_question">
                    <div id="question_index_body"><img align="absmiddle" src="{$BASE}js/loading.gif"/>最新酒店问答正在努力加载中...</div>
                </div>
            </div>
        </div>
        <div id="mian_right">
            <div class="right-top">
                <div class="banner"> <img src="{$BASE_V}images/440x224_1.jpg" width="440" height="224" /> </div>
                <div class="baoz"></div>
            </div>
            <div class="index_tj">
                <div class="mianr_tit"> <img src="{$BASE_V}images/icon_36.jpg" width="18" height="19" />
                    <h2>推荐酒店</h2>
                   <ul id="citylist" total="${echo count($uncityinfo_array);}">
                        <!--{loop $uncityinfo_array $k $v}-->
                        <li
                        <!--{if $k==0}-->
                        id="bt_current"
                        <!--{/if}-->
                        onClick="loadcs($k,$v[cityid],'$v[cityname]')"><a 
                        <!--{if $k==0}-->
                        class="mr"
                        <!--{/if}-->
                        id="citytabs$k"
                        href="javascript:void(0)">$v[cityname]</a>
                        </li>
                        <!--{/loop}-->
                    </ul>
                </div>
                <div id="ajaxbox">
                    <div class="tuijianhot">
                        <!--{model:common getCityHotHotel($uncityinfo[0], 3) return=city_hot_hotel}-->
                        <!--{loop $city_hot_hotel $v}-->
                        <DL>
                            <DT><A href="{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]"><img src='{$picurl}{$v[picture]}' width='110' height='81'/></A></DT>
                            <DD>
                                <ul>
                                    <li><A href="{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]"><strong>${echo Functions::cut_str($v[hotelname], 9);}</strong></a></li>
                                    <li class="tui_manyi">满意度：<span>${echo hotellist::manyidu($v[haoping])}%</span></li>
                                    <li class="tui_zudi">最低<span><strong>$v[min_price]元</strong></span>起</li>
                                    <li><a class=viewmap href="{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]#hotelmap">查看地图</a><img src="{$BASE_V}images/index01_42.jpg" width="16" height="16" align="baseline" /></li>
                                </ul>
                            </dd>
                        </DL>
                        <!--{/loop}-->
                    </div>
                </div>
                <div  class="tj_box">
                    <h3><a target="_blank" href="liansuo-cityid-53.html">$cityinfo[cityname]经济型连锁酒店推荐</a></h3>
                    <ul>
                        <!--{model:index getIndexHotelArray($cityinfo[cityid], 'liansuo') return=liansuo_array}-->
                        <!--{loop $liansuo_array $v}-->
                        <li><span class="pr">￥$v[min_price]起</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="area_list">
                    <dl>
                        <dt>$cityinfo[cityname]热门商圈</dt>
                        <dd>
                            <!--{model:hotelLeft point_info_list($cityinfo[cityid], 69) return=lable_ary_index}-->
                            <!--{loop $lable_ary_index $v}-->
                            <a title="$v[key]" href="{PHP_SELF}?m=hotellist&cityid=$v[cityid]&key=$v[key_urlencode]">$v[key]</a>
                            <!--{/loop}-->
                            <a href="{PHP_SELF}?m=lable">更多</a></dd>
                    </dl>
                </div>
            </div>
            <div class="index_ls">
                <div class="box_tit"> <img src="{$BASE_V}images/icon_36.jpg" width="18" height="19" />
                    <h2>品牌酒店</h2>
                    <ul>
                        <li id="bt_current"><a class="mr" style="cursor:pointer" onClick="return rollchain(0);" >经济连锁酒店</a></li>
                        <li ><a style="cursor:pointer" onClick="return rollchain(1);">品牌连锁酒店</a></li>
                    </ul>
                </div>
                <div class="index_box">
                      <ul>
                        <!--{model:liansuo getchain(0, 12) 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, 12, 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="zixun">
                <div class="mianr_tit"><img src="{$BASE_V}images/icon_19.jpg" width="24" height="23" />
                    <h2>热门出行资讯</h2>
                </div>
                <div style="_padding-top:2px;" class="zixun_nr">
                    <!--{model:hotelLeft getNewsView(0,'',1,3) return=article_side_rs}-->
                    <!--{loop $article_side_rs $k $v}-->
                    <dl>
                        <dt><a href="{PHP_SELF}?m=newsinfo&aid=$v[aid]" target="_blank" title="$v[title]" broder="0"><img src="$v[img]" width="92" height="60" /></a></dt>
                        <dd>
                            <ul>
                                <li><a href="{PHP_SELF}?m=newsinfo&aid=$v[aid]" target="_blank" title="$v[title]">${echo Functions::cut_str($v[title], 10);}</a></li>
                                <li>${echo  Functions::cut_str(strip_tags($v[content]),15);}</li>
                            </ul>
                        </dd>
                    </dl>
                    <!--{/loop}-->
                </div>
                <div class="zixun_list">
                    <ul>
                        <!--{model:hotelLeft getNewsView(0,'',4,3) return=article_side_rs}-->
                        <!--{loop $article_side_rs $k $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>
        </div>
    </div>
    <div class="sidebox">
        <h3>快速查找目的地附近酒店</h3>
        <div class="box_nr"> <a href="{PHP_SELF}?m=lable&classid=166"><img src="{$BASE_V}images/1_75.jpg" width="42" height="42" />火车站附近</a> <a href="{PHP_SELF}?m=lable&classid=135"><img src="{$BASE_V}images/2_75.jpg" width="42" height="42" />机场附近</a> <a href="{PHP_SELF}?m=lable&classid=163"><img src="{$BASE_V}images/3_75.jpg" width="42" height="42" />汽车站附近</a> <a href="{PHP_SELF}?m=lable&classid=83"><img src="{$BASE_V}images/4_75.jpg" width="42" height="42" />大学附近</a> <a href="{PHP_SELF}?m=lable&classid=44"><img src="{$BASE_V}images/5_75.jpg" width="42" height="42" />体育场附近</a> <a href="{PHP_SELF}?m=lable&classid=65"><img src="{$BASE_V}images/6_75.jpg" width="42" height="42" />景点附近</a> <a href="{PHP_SELF}?m=lable&classid=26"><img src="{$BASE_V}images/7_75.jpg" width="42" height="42" />商务大厦附近</a> <a href="{PHP_SELF}?m=lable&classid=16"><img src="{$BASE_V}images/movie.jpg" width="42" height="42" />电影院附近</a> <a href="{PHP_SELF}?m=lable&classid=119"><img src="{$BASE_V}images/9_75.jpg" width="42" height="42" />医院附近</a> <a href="{PHP_SELF}?m=lable&classid=170"><img src="{$BASE_V}images/10_75.jpg" width="42" height="42" />地铁站附近</a> </div>
    </div>
    <div class="firden">
        <h3>友情链接</h3>
        <!--<p><a style="color:#1d7402;" href="#">更多链接>></a></p>-->
    </div>
    <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>
    <!--{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=$(".index_ls");
	box.find(".box_tit ul").each(function(){$(this).find("li").eq(''+val+'').attr("id","bt_current").siblings().removeAttr("id");});
	box.find(".index_box ul").eq(''+val+'').show().siblings().hide();
}

function loadcs(current,id,cityname){//v1(obj);
	$(".tuijianhot").empty(""); 
	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:3}),
	dataType: "html",
	beforeSend : function(data){$("#ajaxbox").html("<div align=\"center\"><img align=\"absmiddle\" src=\"{$BASE_V}images/loadprice.gif\"/><\/div>");},
	success : 
	function(data){

	    var allcityNum = $("#citylist").attr("total");
	    var currentcity = current;
	    for(i = 0; i <= allcityNum; i++){
	        
	        if(i == current){
	            $('#citytabs'+i+'').attr('class',"mr");
	        }else {
	            $('#citytabs'+i+'').attr('class',"");
	        }
	    }    
	    
	    $("#ajaxbox").html("<div class=\"tuijianhot\"><\/div>");
	    var dataObj=eval('('+ data +')'); 
	    var hot = dataObj.hot;
	    var inexpensive = dataObj.inexpensive;
	    var hothtml = "" ;
	    var inexpensivehtml = "" ;
	    $.each( hot,function(idx, items){
	        hothtml = '<DL>'
	            +"<DT><A href=\"{PHP_SELF}?m=hotelinfo&hotel_id="+items.hotel_id+"\"><IMG src=\"{$ZNpicurl}"+items.picture+"\" width=\"110\" height=\"81\" ><\/A><\/dt>"
	            +"<DD>"
	            +"<ul>"
	            +"<li><A href=\"{PHP_SELF}?m=hotelinfo&hotel_id="+items.hotel_id+"\" target=\"_blank\"><strong>"+items.hotelname+"<\/strong><\/a><\/li>"
	            +"<li class=\"tui_manyi\">满意度：<span>99%<\/span><\/li>"
	            +"<li class=\"tui_zudi\">最低<span><strong>"+items.min_price+"元<\/strong><\/span>起<\/li>"
	            +"<li><a class=viewmap href=\"{PHP_SELF}?m=hotelinfo&hotel_id="+items.hotel_id+"#hotelmap\">查看地图<\/a><img src=\"{$BASE_V}images\/index01_42.jpg\" width=\"16\" height=\"16\" align=\"baseline\" \/><\/li>"
	            +"<\/ul>"
	            +"<\/dd>"
	            +"<DL>" ;
	            $(".tuijianhot").append(hothtml);   
	    });
	    $(".tj_box 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>";
	                    $(".tj_box ul").append(inexpensivehtml);
	    }); 
	    $(".tj_box h3").html("<a target=\"_blank\" href=\"{PHP_SELF}?m=liansuohotel&cityid="+id+"\">"+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(); });});}
$(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 += '<div class="side_wd"><ul><li class="wn_jd"><a href="{PHP_SELF}?m=hotelinfo&hotel_id='+hotel_id+'" target="_blank">'+hotelname+'</a></li><li class="wn_qus" title="'+question+'<br/>">'+question+'<br/></li><li class="wn_ans" title="'+answer+'">'+answer+'</li></ul></div>';
            });
            string += nofind;   
            $('#new_question').html(string);
    }); 
}

function getCommentLimitIndex(limit){
    var string = '';
    $.post("{PHP_SELF}?m=index.getCommentLimitIndex&limit="+limit+"&pic=1",
        function(data){
            var obj=eval("("+data+")");//转换为json对象
            var nofind = obj.nofind;
            var rs = obj.rs;
            var pic = obj.pic;
            $.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.substr(0,24);  
                var picurl = "{$picurl}"+pic[hotel_id];
                     
                string += '<dl><dt><a href="{PHP_SELF}?m=hotelinfo&hotel_id='+hotel_id+'" title="'+hotelname+'" target="_blank"><img src="'+picurl+'" width="83" height="55" alt="'+hotelname+'" /></a></dt><dd><ul><li><a href="{PHP_SELF}?m=hotelinfo&hotel_id='+hotel_id+'" title="'+hotelname+'" target="_blank">'+hotelname+'</a></li><li>'+content+'</li></ul></dd></dl>';
            });
            string += nofind;   
            $('#new_comment').html(string);
    }); 
}
</script>
