<!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>
<script type="text/javascript" src="{$Order_api}room.utf8.js"></script>
<link href="{$Order_api}/room.utf8.css" rel="stylesheet" type="text/css" />
</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>当前位置：<a href="/">首页</a> &gt;&nbsp;<a href="{PHP_SELF}?m=allcity">全国酒店</a> &gt; <a href="{PHP_SELF}?m=city&cityid=$info[CityID]">北京酒店</a> &gt;&nbsp;<a href="{PHP_SELF}?m=hotellist&cityid=$info[CityID]&rank=${common::hotelranknamenum($info[star])}">{$info[CityName]}${common::hotelrankname($info[star])}酒店</a>&gt;&nbsp;$info[HotelName]</div>

<div id="mainContent">
  <div id="main">
      <!--{template inc/hotel_baseinfo}--> 
      
    <div class="info_box">
        <div class="list_tab">
          <ul>

                <li><a href="{PHP_SELF}?m=hotelinfo&hotel_id=$info[hotel_id]">酒店介绍</a></li>
                <li><a href="{PHP_SELF}?m=hotelpicture&hotel_id=$info[hotel_id]">酒店图片</a></li>
                <li><a href="{PHP_SELF}?m=hotelcomment&hotel_id=$info[hotel_id]">客人点评</a></li>
                <li><a href="{PHP_SELF}?m=hotelmap&hotel_id=$info[hotel_id]">交通地图</a></li>
                <li><a id="info_current">酒店问答</a></li>
                <li><a href="{PHP_SELF}?m=hotelnearby&hotel_id=$info[hotel_id]">周边酒店</a></li>

          </ul>
        </div>
        <div class="ib_con">
        	<div id="question_limit_body">
            <img align="absmiddle" src="{$BASE}js/loading.gif"/>"{$info[HotelName]}"酒店问答正在努力加载中...
            </div>
        </div>
      </div>  
      
<div class="info_box">
        <h2>我要向{$info[HotelName]}提问：</h2>
        <div class="info_pic showbox">
          <table border="0" cellspacing="0" cellpadding="4" width="100%">
            <form id="form1" name="form1" method="post" action="http://union.zhuna.cn/api/gbk/QuestionSave.asp" target="_top">
              <tr>

                <td style="color:#999">例如：这家酒店大床房有窗户吗？ 押金是多少？</td>
              </tr>
              <tr>
                <td width="464" valign="top"><textarea name="Content" id="Content" style="width:98%;height:120px;"></textarea></td>
              </tr>
              <tr>
                <td style="color:#666;">正常工作日9:00－18:00，您的提问会得到及时回答；其它时段可能需等待较长时间</td>

              </tr>
              <tr>
                <input name="HotelName" type="hidden" value="$info[HotelName]" />
                <input name="hotelid" type="hidden" value="$info[hotel_id]" />
                <input name="agent_id" type="hidden" value="$agent_id" />
                <input name="agent_md" type="hidden" value="$agent_md" />
                <td><input name="button" id="button" type="submit" class="btn05" value="提交问题" /></td>
              </tr>
            </form>

          </table>
        </div>
      </div>          
  
    </div>        
  </div>
  
  <div id="side">
    <!--{template inc/search}-->
    <!--{template inc/cbd}-->
    <!--{template inc/lable}-->        
    <!--{template inc/lable_class}-->       
	<!--{template inc/hotel_cookes}-->        
  </div>
  <div class="clearfloat"></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="$sk_array[tm1]" />
  <input name="tm2" type="hidden" value="$sk_array[tm2]" />
</form>
</body>
</html>
<script  language="javascript" >loadPrice('$info[hotel_id]','$sk_array[tm1]','$sk_array[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","{$BASE}js/zhuna-js/mapbar31.2.js");
j.includecss("{$BASE}js/calendar/city_menu.css","{$BASE}js/zhuna-js/nyroModal.css");
$(function(){
var len  = $("#numeric > li").length;var index = 0;
var interval = setInterval(function(){rotatorimg(index);index++;if(index==len){index=0;}},5000);
$("#numeric li").mouseover(function(){index= $("#numeric li").index(this);rotatorimg(index);});	
//alert(ZNDate.getDateTip(ZNDate.format(ZNDate.plus(ZNDate.today(),3))));
	$('html').animate({scrollTop:$(".info_box").offset().top}, 'fast');
    $('body').animate({scrollTop:$(".info_box").offset().top}, 'fast');
});
$("#info_top_con ul").find("li:eq(1) span").each(function(){if(!!$(this).html())$(this).addClass("yx").css({"background-color":""+("#"+rancolor())+""}).mouseover(function(){$(this).css({"background-color":"#1F78D0"})}).mouseout(function(){$(this).css({"background-color":"#"+rancolor()})})})

$(function(){
	getQuestionLimit($info[hotel_id], 10);
});

function getQuestionLimit(hotel_id,limit){
	var string = '';
	var url = "hotel_id="+hotel_id+"&limit="+limit;
	$.post("{PHP_SELF}?m=hotelinfo.getQuestionLimit&"+url,
		function(data){
			var obj=eval("("+data+")");//转换为json对象
			var nofind = obj.nofind;
			var rs = obj.rs;
			$.each(rs,function(j, n){
				var yonghu = n.yonghu;
				var addtime = n.addtime;
				var question = n.question;
				var answer = n.answer;				
				string += '<dl><dt>'+yonghu+' 于 '+addtime+' 提问说：</dt><dd class="info_ask_row">'+question+'</dd><dd>回答：'+answer+'</dd></dl>';
			});
			string += nofind;	
			$('#question_limit_body').html(string);
	});	
}
</script>