<tourex:pagecode name="HotelQuestions"/>
<%
Dim CategoryPic As String = WebCache.Category.Read("HotelCategory").Select("t_id=" & Dr("H_CategoryId"))(0)("t_pic")
%>
<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>{$Dr("H_Name")$}问答咨询 - {$Dr("H_Name")$}预订 - {$WebSet.Name$}</title>
<meta name="keywords" content="{$Dr("H_Name")$},{$Dr("H_Name")$}咨询,{$Dr("H_Name")$}预订">
<meta name="description" content="您可以在{$WebSet.Name$}获取{$Dr("H_Name")$}相关咨询的答案,您也可以向{$WebSet.Name$}提交自己相关问题咨询,我们的工作人员会在第一时间回答您的提问咨询,帮助您了解{$Dr("H_Name")$}的详细信息。">
<link  type="text/css" rel="Stylesheet" href="{$WebPath$}Css/Style.css"/>
<link  type="text/css" rel="Stylesheet" href="{$WebPath$}Css/Hotel.css"/>
<script type="text/javascript" src="{$WebPath$}Sys/Js/jquery.js"></script>
<script type="text/javascript" src="{$WebPath$}Sys/Js/AlertWindow.js"></script>
<script type="text/javascript" src="{$WebPath$}Sys/Js/Date.js"></script>
<script type="text/javascript" src="{$WebPath$}Sys/Js/jquery.validate.js"></script>
<script type="text/javascript" src="{$WebPath$}Sys/Js/jquery.validate.check.js"></script>
<script type="text/javascript" src="{$WebPath$}Sys/Js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="{$WebPath$}js/Hotel.js"></script>
<tourex:mytag name="default_head"/>
<script language="javascript">
document.getElementById('index').className='sk2';
document.getElementById('hotel').className='sk1';
</script>
<tourex:mytag name="default_hotel_subnav"/>
<ul class="path"><li>当前位置</li><li><a href="{$WebPath$}">首页</a></li><li><a href="{$WebPath$}Hotel/">{$WebSet.LocalName$}酒店</a></li><li><tourex:category type="本级" name="city" id="{$Dr("H_CityId")$}" ><a href="{$WebPath$}Hotel/List.aspx?cid={${@t_id@}$}">{${@t_name@}$}酒店</a></tourex:category></li><li class="none">{$Dr("H_Name")$}问答咨询</li></ul>
<div class="box" style="margin-top:10px;">
	<tourex:mytag name="default_hotel_left"/>
	<div class="hotel_right_750">
	    <tourex:mytag name="default_hotel_description"/>
		<ul class="hotelShNav">
			<li class="sk2"><span><a href="{$WebPath$}Hotel/Show.aspx?id={$Dr("H_id")$}">概括及房价</a></span></li>
			<li class="sk2"><span><a href="{$WebPath$}Hotel/Pic.aspx?id={$Dr("H_id")$}">酒店图片</a></span></li>
            <li class="sk2"><span><a href="{$WebPath$}Hotel/Video.aspx?id={$Dr("H_id")$}">酒店视频</a></span></li>
			<li class="sk2"><span><a href="{$WebPath$}Hotel/Map.aspx?id={$Dr("H_id")$}">交通地图</a></span></li>
			<li class="sk2"><span><a href="{$WebPath$}Hotel/Reviews.aspx?id={$Dr("H_id")$}">客人点评</a></span></li>
			<li class="sk1"><span>酒店咨询</span></li>
		</ul>
		<div class="hotelTextSk3" style="padding-top:20px;">
		<%
		If RecordCount>0 Then
			While Dr1.Read
			%>
			<ul class="questions">
				<li class="questionsW"><span>{$CDate(Dr1("Q_QDate")).ToString("yyyy年MM月dd日")$}</span><b>{$Dr1("U_Name")$}</b> {$Dr1("Q_Questions")$}</li>
				<li class="questionsD"><span class="up"></span>本站客服：<br />{$iif(Dr1("Q_Answers").ToString="","<p>请等待回复！</p>",Dr1("Q_Answers").ToString)$}</li>
			</ul>
			<%
			End While
			Dr1.Close()
		Else
			TourExStr.AppendLine("<div style=""padding:0 0 20px 10px;"">暂无</div>")
		End If
		%>
		<form action="{$WebPath$}Hotel/Questions.aspx?id={$thisid$}&act=save" method="post" id="TourExForm" name="TourExForm">
			<ul class="questionsSub">
				<li>您的问题？告诉我们您的疑惑，我们会在第一时间为您解答。<span id="LoginTips"><a href="{$WebPath$}UserCenter/Login.aspx?PageUrl={$Server.UrlEncode(Request.Url.ToString())$}">登录</a> | <a href="{$WebPath$}UserCenter/Reg.aspx?PageUrl={$Server.UrlEncode(Request.Url.ToString())$}">注册</a></span></li>
				<li><textarea name="Questions" id="Questions" cols="60" rows="6" class="formTextarea"></textarea></li>
				<li><input name="Proof" type="text" class="formTitle" id="Proof" onFocus="this.onfocus='';get_Code('{$WebPath$}');" size="10"/> 
				<span id="imgid" style="color:red">点击获取验证码</span></li>
				<li><input name="submit1" id="submit1" type="submit" class="formInput01" value="提交咨询" disabled="disabled"></li>
			</ul>
		</form>
		</div>
		<tourex:mytag name="page"/>
    </div>
	<div class="clearit"></div>
</div>
<%
Dr = NoThing
%>
<script language="javascript">
	if({$Val(GetSession("UserID"))$}>0){$('#LoginTips').hide();$('#submit1').removeAttr('disabled');}
	$(function(){
		$("#TourExForm").validate({
			rules:{
				Questions:{required:true,rangelength:[10,200]},
				Proof:{required:function(){if($('#Proof').val()=='请输入验证码')$('#Proof').val('');return true;},
					remote:{url:'{$WebPath$}Sys/Ajax/Check.aspx',type:'get',dataType:'json',data:{'checktext':function(){return $('#Proof').val();}},cache:false}}
			},
			messages: {
				Questions:{required:'请填写密码'},

				Proof:{required:'请填写验证码!',remote:function(){get_Code('{$WebPath$}');return '验证码错误!'}}
			}
		}); 
	});
</script>
<tourex:mytag name="default_foot"/>