<%if not in_eycms then response.write(""):response.end() end if%>
{eycms:include("../../eycms_top.asp")}
<title>{eycms.iif(eycms.strlen(seotitle)>0,seotitle,classname)}{if page>1}_第{page}页{/if}_{eycms[webname]}</title>
<meta name="Keywords" content="{seokey}">
<meta name="Description" content="{seodesc}">
</head>
<body>
{eycms:include("../../eycms_head.asp")}

<section class="width100">
	<div class="news_info">
		<h1 class="f36">{title}</h1>
		<div class="spec f24"><span>发表日期：</span>{eycms.getdate(createdate,".",2)}      &nbsp;&nbsp;&nbsp;    <span>浏览次数：</span><span id="hits">{hits}</span></div>
		<div class="editor" id="editor">{content}</div>
	</div>
	<div class="ey-tac"><a id="eyTui" href="javascript:void(0)">返回上一页</a></div>
	{eycms:include("../../eycms_comment.asp")}
	<div class="c"></div>
</section>

{eycms:include("../../eycms_foot.asp")}
<script>var webroot="{webroot}";var infoid="{rsshow[cid]}";var contenturl="{contenturl}";</script>
<script src="{webroot}lib/js/eycms.hits.js"></script>

<!-- 评论 -->
<style>
.jquery_tips,.jquery_tips .tips_end,.jquery_tips .tips_ico_clear,.jquery_tips .tips_ico_error,.jquery_tips .tips_ico_ok,.jquery_tips .tips_ico_warn{color:#FFF;display:block;padding:0 20px;margin:0;font-weight:400;height:45px;line-height:45px}
.jquery_tips_wrap{position:fixed;top:0;z-index:9999;width:100%;text-align:center}
.jquery_tips{background:rgba(0,0,0,.8)}
.jquery_tips .tips_end,.jquery_tips .tips_ico_clear,.jquery_tips .tips_ico_error,.jquery_tips .tips_ico_loading,.jquery_tips .tips_ico_ok,.jquery_tips .tips_ico_warn{background:0 0}
</style>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script>
$(function() {
	$(".form_comment").validator({
		stopOnError: true,
		theme: 'yellow_top',
		ignore: ':hidden',
		valid: function(form) {
			$.fn.tips({
				type: 'loading',
				content: '数据提交中'
			});
			$.ajax({
				url: webroot + "plug/comment.asp?act=add&id=" + infoid,
				type: "post",
				data: $(form).serialize(),
				success: function(data) {
					data = jQuery.parseJSON(data);
					var type = "warn";
					if (data.status == "y") {
						type = "ok"
					}
					$.fn.tips({
						type: type,
						content: data.info
					});
					if (data.status == "y") {
						$(".form_comment")[0].reset();
						var act = data.info.substring(0, 1);
						var info = data.info.substring(1);
						$.fn.tips({
							type: "ok",
							content: info
						});
						if (act == 2) {
							setTimeout(function() {
								location.href = '' + contenturl + ''
							}, 1500)
						}
					}
				}
			})
		}
	})
});
</script>
<!-- 评论 -->
</body>
</html>