代码:
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
{dede:sql sql="Select id,bookname,author,pubdate,body,litpic From dede_story_books order by id desc limit 0,10"}
<td><a href="/book/[field:id function='DedeID2Dir(***@me)'/]/[field:bookname function='GetPinyin(***@me)'/]-[field:id/].html"><img src="[field:litpic/]" border="0" width="75" height="100" /></a><br /><a href="/book/[field:id function='DedeID2Dir(***@me)'/]/[field:bookname function='GetPinyin(***@me)'/]-[field:id/].html">[field:bookname function="cn_substr('***@me',12)"/]</a>
</td>
{/dede:sql}
</tr>
</table>
功能:最新连载内容调用,含栏目名称、书名、章节名、发布时间。
代码:
<table width="688" border="0" cellpadding="0" cellspacing="0">
{dede:bookcontentlist row='10' booktype='0' orderby='lastpost' author='' keyword=''}
<tr>
<td align="left" width="30"></td>
<td width="300" align="left">[field:cataloglink/] [field:booklink/]</td>
<td width="318" align="left">[field:contentlink/]</td>
<td width="40" align="right">[field:lastpost function="GetDateMk(***@me)"/]</td>
</tr>
{/dede:bookcontentlist}
</table>
功能:热门图书调用
代码:
{dede:booklist row='5' booktype='0' titlelen='10' imgwidth='80' imgheight='100' orderby=''}[field:imglink /]{/dede:booklist}
功能:推荐图书调用
代码:
{dede:booklist row='5' booktype='0' titlelen='10' imgwidth='80' imgheight='100' orderby='commend'}[field:imglink /]{/dede:booklist}
分类信息
功能:调用地区与类型
代码:
DEDECMS首页调用代码大全 来自淘豆网www.taodocs.com转载请标明出处.