xzhsemi 发表于 2012-8-31 13:46:36

人气排行

{loop $tags $i $t}
                  {if $i == 0}
                  

{dsubstr(strip_tags($t),12,'')}
类型:类型
人气:{$t}
                  {else}
                  {php $articleID=$db->get_one("select linkurl from ".$DT_PRE."article_21 WHERE author='".$t."'"." ORDER BY addtime DESC limit 1");}
                  {php $sellcount=$db->get_one("SELECT COUNT(*) AS num FROM ".$DT_PRE."sell WHERE status=3 and username='".$t."'");}
                  
                        
                        {dsubstr(strip_tags($t),12,'')}
                        {if $articleID }新闻{else}空间{/if}
                        [{$sellcount}]
                  
                  {/if}               
                  {/loop}

sonychan 发表于 2012-8-31 15:15:32


谢谢楼主分享。。
http://bbs.destoon.com/static/image/smiley/default/smile.gif

airiso_net 发表于 2012-9-2 09:02:25


http://bbs.destoon.com/static/image/smiley/default/loveliness.gif

http://bbs.destoon.com/static/image/smiley/default/loveliness.gif
页: [1]
查看完整版本: 人气排行