KesionCMS-利用SQL标签教打造信息分行列表
来自站长百科
导航:返回上一页
实现方法:
- 询语句 select id,title,adddate from KS_Article where tid in({$CurrClassChildID}) order by id desc
可用字段
自动编号ID(Url) 标题 添加/更新时间
循 环 体{$AutoID}
<table border="0" cellpadding="0" cellspacing="0" width="100%"> [loop=5] <tr> <td width="78%"> ·<a href='{$Field(id,GetInfoUrl,1,1)}' class="aaa" target='_blank'>{$Field(title,Text,0,...,0,)}</a> </td> <td width="22%" style="font-size:14px"> {$Field(adddate,Date,YYYY-MM-DD)}</td> <td style="font-size:14px"></td> </tr> [/loop] </table> <br /> <div style="border-bottom: 1px dashed #999999;overflow:hidden;height:2px"></div> <br /> <table border="0" cellpadding="0" cellspacing="0" width="100%"> [loop=5] <tr> <td width="78%">· <a href='{$Field(id,GetInfoUrl,1,1)}' class="aaa" target='_blank'>{$Field(title,Text,0,...,0,)}</a> </td> <td width="22%" style="font-size:14px"> {$Field(adddate,Date,YYYY-MM-DD)}</td> <td style="font-size:14px"></td> </tr> [/loop] </table> <br /> <div style="border-bottom:1px dashed #999999;overflow:hidden;height:2px"></div> <br /> <table border="0" cellpadding="0" cellspacing="0" width="100%"> [loop=5] <tr> <td width="78%">·<a href='{$Field(id,GetInfoUrl,1,1)}' class="aaa" target='_blank'>{$Field(title,Text,0,...,0,)}</a> </td> <td width="22%" style="font-size:14px">{$Field(adddate,Date,YYYY-MM-DD)}</td> <td style="font-size:14px"></td> </tr> [/loop] </table> <br /> <div style="border-bottom:1px dashed #999999;overflow:hidden;height:2px"></div> <br /> <table border="0" cellpadding="0" cellspacing="0" width="100%"> [loop=5] <tr> <td width="78%">·<a href='{$Field(id,GetInfoUrl,1,1)}' class="aaa" target='_blank'>{$Field(title,Text,0,...,0,)}</a> </td> <td width="22%" style="font-size:14px">{$Field(adddate,Date,YYYY-MM-DD)}</td> <td style="font-size:14px"></td> </tr> [/loop] </table> <br /> <div style="border-bottom:1px dashed #999999;overflow:hidden;height:2px"></div> <br /> <table border="0" cellpadding="0" cellspacing="0" width="100%"> [loop=5] <tr> <td width="78%">·<a href='{$Field(id,GetInfoUrl,1,1)}' class="aaa" target='_blank'>{$Field(title,Text,0,...,0,)}</a> </td> <td width="22%" style="font-size:14px">{$Field(adddate,Date,YYYY-MM-DD)}</td> <td style="font-size:14px"></td> </tr> [/loop] </table> <br /> <div style="border-bottom:1px dashed #999999;overflow:hidden;height:2px"></div> <br /> <table border="0" cellpadding="0" cellspacing="0" width="100%"> [loop=5] <tr> <td width="78%">·<a href='{$Field(id,GetInfoUrl,1,1)}' class="aaa" target='_blank'>{$Field(title,Text,0,...,0,)}</a> </td> <td width="22%" style="font-size:14px">{$Field(adddate,Date,YYYY-MM-DD)}</td> <td style="font-size:14px"></td> </tr> [/loop] </table>