<!-- 调用数据库查询集news_S_count,该查询机返回news表中纪录的总行数-->
<SQLLINK Id="news_S_count" />
<!-- 设置变量 -->
<SetVar Name="_root.itemperpage" Value="18" />
<!-- 设置变量 -->
<SetVar Name="_root.totalcount" Value="[_SQL._this.news_S_count.0.count]" />
<!-- 设置变量 -->
<SetVar Name="_this.maxpage" Value="[_root.totalcount]/[_root.itemperpage]" />
<!-- 设置变量 -->
<SetVar Name="_this.pointaction" Value="'newsedit_input'" />
<!-- 显示字符资源list_allnews -->
<Echo ContentLinkId="list_allnews" />
<!-- 条件判断语句-->
<If EX="[_root.maxpage]>1">
<!-- 显示字符资源page_list -->
<Echo ContentLinkId="page_list" />
</If>