<ad:set name="classid" value="$word(request("id"),"id")$" />
<ad:if test="$isnotempty(request("showid"))$">
	<ad:set name="news" value="$dataview("c_news","id=$request("showid")$")$" />
	<ad:set name="nav" value="&gt; $news[0]["title"]$" />
	<ad:set name="pagetitle" value="$news[0]["title"]$_" />
	<ad:set name="keywords" value="$news[0]["keywords"]$" />
	<ad:set name="description" value="$news[0]["description"]$" />
	<h1 class="subtitle">$news[0]["title"]$</h1>
	<div class="subcontent">$news[0]["content"]$</div>
	<div class="back">
		<a href="$url("default.aspx?classid=$request("classid")$&id=$request("id")$")$">[返回列表]</a>
		发表时间：$news[0]["inputdate"].ToString("yyyy-MM-dd")$&nbsp;&nbsp;&nbsp;&nbsp;浏览次数：<script type="text/javascript" src="$sitepath$files/common/common.aspx?action=newscount&id=$news[0]["id"]$"></script>	
	</div>
<ad:else />
	<ad:set name="nav" value="" />
	<ad:set name="pagetitle" value="" />
	<div class="list">
		<ul>
			<ad:set name="test" value="$page("c_news", "20","classid=$classid$","istop, inputdate desc, id desc")$" />
			<ad:foreach collection="$test$" var="it" index="i">
			<ad:set name="url" value="default.aspx?classid=$request("classid")$&id=$request("id")$&showid=$it["id"]$" />
			<li><span>$cdate(it["inputdate"]).ToString("yyyy-MM-dd")$</span><em></em><a href="$url(url)$" title="$it["title"]$">$it["title"]$</a></li>
			</ad:foreach>
		</ul>
	</div>
	<div class="page"><span>$page["PageNumAll"]$</span>总记录：$Page["RecordCount"]$&nbsp;&nbsp;总分页：$Page["PageCount"]$&nbsp;&nbsp;当前页：$Page["PageNum"]$</div>
</ad:if>		