{dede:channelartlist typeid = 3 } {dede:global name = itemindex runphp = yes } $ a = liclass=frist ; $ b = liclass=clear ; if(@ me ==1){@ me =$a;} else{@ me =$b;} {/dede:global} / li {/dede:channelartlist}...
获取文章id后,赋值到SQL中查找,最后显示10条 {dede:list pagesize=10} [field:aid runphp=yes] $sql=SELECT top 10 * FROM dede_addonarticle where aid @me order by aid desc; $dsql-Execute(me,$sql); $result = ; while($row= $dsql-GetArray())...
1、内容页调用评论数: small{dede:field.id runphp=yes}$dsql = new dedesql(false);$dsql - SetQuery(Select count(id) as c from dede_feedback where aid=.@me);$row = $dsql - getone();@me=$row[c];{/dede:field.id}/small个评论 2、内容页调用收...