代码如下:
{pc:get dbsource="jp" sql="SELECT `html_id`,`html_type`,`html_title` FROM `htmlfile` WHERE `html_type` = '8' ORDER BY `html_id` DESC" rows="8" }
{loop $data $r}
<li><a href="{$r[html_id]}.html" target="_blank">{str_cut($r[html_title], 28,'')}</a></li>
{\loop}
{/pc}