<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"]$_" />
	<h1 class="subtitle">$news[0]["title"]$<span>[$news[0]["inputdate"]$]</span></h1>
	<div class="subcontent">$news[0]["content"]$</div>
	<div class="back"><a href="$url("default.aspx?classid=$request("classid")$&id=$request("id")$")$">[返回列表]</a></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>		