<!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 id="mainContent">
<div id="main">     
	<div class="info_box">
        <h2>$cityinfo[cityname]酒店点评</h2>
        <div class="ib_con" id="comment_body">
        <div class="infscr-loading"><div style=" text-align:center;">&nbsp;<img align="absmiddle" src="{$BASE}js/loading.gif"/>评论正在努力加载中...</div></div></div>
      </div>

      <div id="wea_city" class="info_box">
        <div class="box_tit"><strong>全国酒店点评</strong>
          <ul>
          <!--{model:question getCityABCD() return=abcd_info}-->                              
		  <!--{loop $abcd_info $k $v}-->
           <li{if $k == 0} id="bt_current"{/if}><span>$v[ABCD]</span></li>
          <!--{/loop}-->
          </ul>
        </div>

<!--{model:question getCityAll() return=city_array}-->
<!--{loop $city_array $k $v}-->
<div class="ib_con weathercity" style="display: {if $k=='A'}block{else}none{/if};">
	<!--{loop $v $kk $vv}-->
<a href="{PHP_SELF}?m=comment&cityid=$vv[cityid]">$vv[cityname]</a>  
	<!--{/loop}-->
</div>
<!--{/loop}-->
      </div>
      <div class="info_box">

        <h2><span><a href="{PHP_SELF}?m=hotellist&cityid=$cityinfo[cityid]&rank=5">$cityinfo[cityname]五星级酒店</a>　<a href="{PHP_SELF}?m=hotellist&cityid=$cityinfo[cityid]&rank=4">$cityinfo[cityname]四星级酒店</a>　<a href="{PHP_SELF}?m=hotellist&cityid=$cityinfo[cityid]&rank=3">$cityinfo[cityname]三星级酒店</a>　<a href="{PHP_SELF}?m=hotellist&cityid=$cityinfo[cityid]&rank=2">$cityinfo[cityname]经济型酒店</a></span>推荐$cityinfo[cityname]热门酒店</h2>

    	  <div class="tuijian_con">
          <div class="tj_pic">
            <ul>
<!--{model:common getCityHotHotel($cityinfo[cityid], 5) return=city_hot_hotel}-->            
            <!--{loop $city_hot_hotel $k $v}-->
 <li><a title="$v[hotelname]

最低价格：$v[min_price]元起订 
商圈：$v[cbd_name]" href="{PHP_SELF}?m=hotelinfo&hotel_id=$v[hotel_id]"><img width="120" height="90" src="{$picurl}{$v[picture]}">${echo Functions::cut_str($v[hotelname], 9);}</a></li>
			<!--{/loop}-->
            </ul>
          </div>

          
<!--{model:common getCityHotHotel_ary($cityinfo[cityid], 5) return=city_hot_hotel_ary}-->                      
<!--{loop $city_hot_hotel_ary $k $v}-->
           <div class="tj_box">

<h3><a href="{PHP_SELF}?m=hotellist&cityid=$cityinfo[cityid]&cbd_id=$v[cbd_id]">$v[cbd_name]酒店预订</a></h3>

             <ul>
	{loop $v[hotel_ary] $kk $vv}
<li><span class="pr">￥$vv[min_price]</span>{if $v[rand] == 1}<span class="area">位于:<a target="_blank" title="$vv[cbd_name]" href="{PHP_SELF}?m=hotellist&cityid=$vv[cityid]&cbd_id=$vv[cbd_id]">$vv[cbd_name]</a></span>{/if}{if $v[rand] == 2}<span class="area">品牌:<a target="_blank" title="$vv[chain_name]" href="{PHP_SELF}?m=hotellist&cityid=$vv[cityid]&chain_id=$vv[chain_id]">$vv[chain_name]</a></span>{/if}<a title="$vv[hotelname]
最低价格：$vv[min_price]元起订 
商圈：$vv[cbd_name]" href="{PHP_SELF}?m=hotelinfo&hotel_id=$vv[hotel_id]">$vv[hotelname]</a>{if $v[rand] == 3}(<a title="$vv[cbd_name]" href="{PHP_SELF}?m=hotellist&cityid=$vv[cityid]&cbd_id=$vv[cbd_id]">$vv[cbd_name]</a>){/if}</li>
    <!--{/loop}-->
             </ul>
           </div>
<!--{/loop}-->
           

           
        </div>
  	  </div>
    </div>    
  </div>
  <div id="side">
    <!--{template inc/search}-->
    <!--{template inc/cbd}-->
    <!--{template inc/hotel_city}-->     
    <!--{template inc/hotel_welcome}-->        
    <!--{template inc/lable_class_b}-->        
    <!--{template inc/side_news}-->        
	<!--{template inc/side_help}-->
	<!--{template inc/hotel_cookes}-->        
  </div>
  <div class="clearfloat"></div>
<!--{template inc/footer}-->    
</div>
</body>
</html>
<script type="text/javascript">
$(function(){
$(".box_tit ul li").each(function(i){$(this).mouseover(function(){
	$(this).attr("id","bt_current").siblings().removeAttr("id");
	$(".ib_con.weathercity").hide();$(".ib_con.weathercity").eq(i).show();});
	});	
	getComment({$cityinfo[cityid]},0);	
});


function getComment(cityid,pg){
	var string = '';
	if(pg!=0){
		var url = "cityid="+cityid+"&page="+pg;
	} else {
		var url = "cityid="+cityid;
	}
	$.post("{PHP_SELF}?m=comment.ajaxGetComment&"+url,
		function(data){
			var obj=eval("("+data+")");//转换为json对象
			var page = obj.page;
			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;
				string += '<dl><dt><a href="{PHP_SELF}?m=hotelinfo&hotel_id='+hotel_id+'" title="'+hotelname+'" target="_blank">'+hotelname+'</a></dt><dd>'+yonghu+' 于 '+addtime+' 评价说：</dd><dd>"'+content+'</dd></dl>';
			});
			string += nofind;
			string += page;		
			$('#comment_body').html(string);
	});	
}

function comment(cityid,pg){
	$('html').animate({scrollTop:$("#main").offset().top}, 'slow');
    $('body').animate({scrollTop:$("#main").offset().top}, 'slow');	
	getComment(cityid,pg);
}
</script>