SQL语句
select top 10 ID,Tid,Title,Adddate from KS_Article order by Adddate desc
标签代码
<table>
<tr>[loop=2]
<td>{$Field(adddate,Date,YYYY-MM-DD)}</td>[/loop]</tr>
<tr>[loop=2]
<td>{$Field(adddate,Date,YYYY-MM-DD)}</td>[/loop]</tr></table>
这个样子的自定义SQL标签(终级分页标签)解析后是:
<td>2006-11-13</td> <td>2006-11-13</td> <td>2006-11-13</td> <td>2006-11-13</td><div align="right" height="25">共 11 篇 页次:<font color=red> 1</font>/3页 4 篇/页 首页 上一页 <a href="/Html/news/index_2.html">下一页</a> <a href= "/Html/news/index_3.html">尾页</a> 转到:<select name="page" size="1" onchange="javascript:window.location=this.options[this.selectedIndex].value;"><option value="/Html/news/index.html" selected>第1页</option><option value="/Html/news/index_2.html">第2页</option><option value="/Html/news/index_3.html">第3页</option></select></div>