<%if not in_eycms then response.write("template load fail"):response.end() end if%>
<!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>{title}_{classname}{if page>1}_第{page}页{/if}_{eycms[webname]}</title> 
<meta name="Keywords" content="{seokey}">
<meta name="Description" content="{seodesc}">
<!--[if lt IE 9]><script type="text/javascript" src="{skins}/js/html5.js" ></script><![endif]-->
<link href="{skins}/css/style.css" rel="stylesheet">
<script src="{skins}/js/base.js"></script>
{eycms:include("../../eycms_top.asp")}
<!--[if lt IE 9]><script type="text/javascript" src="{skins}/js/respond.min.js" ></script><![endif]-->
</head>
<body>
{eycms:include("../../eycms_head.asp")}	

<!--大图开始-->
<div class="inside_banner" style="background: url({if catepic<>""}{catepic}{else}{eycms[my_innerbanner]}{/if}) no-repeat center;height:400px;"></div>
<!--大图结束-->
<div class="crumbs">
	<div class="wrap">
		<i class="icon"></i>当前位置：<a href="{webroot}">首页</a>{eycms.getpostion(parentid," > ")} > <span>{title}</span>
	</div>
</div>
<div class="news_info fix">
	<div class="news_box fl">
		<div class="news_title">
			<div class="news_page fr">
				{eycms:rs top="1" table="ey_content" where="classid=[classid] and id>[id] and isurl=0 and islock=1"}
				<a href="{$rs[link]}" class="prev btn"><</a>
				{/eycms:rs}
				{eycms:rs top="1" table="ey_content" where="classid=[classid] and id<[id] and isurl=0 and islock=1" order="id desc"}
				<a href="{$rs[link]}" class="next btn">></a>
				{/eycms:rs}
			</div>

			<h2>{title}</h2><p class="sign"><span class="mark">发表日期：{createdate}</span>{if comefrom<>""}<span class="mark">来源：{comefrom}</span>{/if}浏览次数：<span class="mark" id="hits">{hits}</span>      {if ubound(tags)<>-1}标签：{for i=0 to ubound(tags)}<a href='{webroot}plug/search.asp?classid={classid}&key={server.urlencode(tags(i))}'>{tags(i)}</a>　{/for}{/if}</p>
		</div>
		<div class="demo">
			<div class="editor" id="editor">{content}</div>
			<div class="notice">如没特殊注明，文章均为本站原创,转载请注明来自{contenturl}</div>
			<div class="page" style="line-height:2;">{get_content_page}</div>
		</div>
		<script type="text/javascript">
		    var resizeContentID = "editor";
		    var maxWidth = 838;
		    var images = document.getElementById(resizeContentID).getElementsByTagName("img");
		    for (var i = 0; i < images.length; i++) {
		        resizepic(images[i]);
		    }
		    function resizepic(thispic)
		    {
		        thispic.onload = function() {
		            if (thispic.width > maxWidth) {
		                thispic.style.height = thispic.height * maxWidth / thispic.width + "px";
		                thispic.style.width = maxWidth + "px";
		            }
		        }
		    }
		    document.oncontextmenu=function(e){return false;} 
		</script>
		<div class="page_list fix">
			<a href="{eycms.getcateurl(classid)}"  class="return">返回列表</a>
			<ul>
			{eycms:rs top="1" table="ey_content" where="classid=[classid] and id>[id] and isurl=0 and islock=1"}
			<li> 上一篇： <a href="{$rs[link]}" title="{$rs[title]}">{$rs[title]}</a></li>
			{/eycms:rs}
			{eycms:rs top="1" table="ey_content" where="classid=[classid] and id<[id] and isurl=0 and islock=1" order="id desc"}
			<li> 下一篇： <a href="{$rs[link]}" title="{$rs[title]}">{$rs[title]}</a></li>
			{/eycms:rs}
			</ul>
		</div>
		<div class="c-show">
			<div class="c-proBox">
				<div style="clear:both;margin-top:20px;"></div>
				{eycms:include("../../eycms_comment.asp")}
				<div style="clear:both;margin-top:20px;"></div>
			</div>
		</div>
	</div>

	<div class="news_menu fr">
		<dl><dt>相关新闻</dt>
		{eycms:rs top="6" table="ey_content" where="classid in([sonid]) and islock=1" order="rnd"}
			<dd ><h3><a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],26,1)}</a></h3><p class="text"><a href="{$rs[link]}"> {eycms.cutstr(eycms.nohtml($rs[intro]),70,1)}</a></p><p class="time">日期：{eycms.getdate($rs[createdate],"-",1)}  浏览次数：{$rs[hits]}</p></dd>
		{/eycms:rs}
		</dl>
	</div>
</div>

<div class="backg_new">
	<div class="news_tab">
		<ul class="fix">
	    {eycms:rp top="0" table="ey_category" where="followid=[rootid]" order="ordnum,cateid"}
	    	<li><a href="{$rp[link]}" title="{$rp[catename]}"><h2>{eycms.cutstr($rp[catename],18,1)}</h2><p class="eg">{Ucase($rp[catedir])}</p></a></li>
	    {/eycms:rp}
		</ul>
	</div>
</div>

<script>var infoid="{rsshow[cid]}";var contenturl="{contenturl}";</script>
<script src="{webroot}lib/js/eycms.hits.js"></script>
{if iscomment=1 and syscomment}
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
{/if}
{eycms:include("../../eycms_foot.asp")}
</body>
</html>