联系官方销售客服
1835022288
028-61286886
插件 | 建站系统 V3.17 |
应用作者 | 迅睿官方团队 |
发布时间 | 2022-03-01 15:30:06 |
更新时间 | 2024-12-19 10:00:07 |
调用了用户全部发布文章排行,怎么调用当月发布文章排行?
<?php $sql = urlencode('SELECT COUNT(*) as ct,uid FROM `'.\Phpcmf\Service::M()->dbprefix(SITE_ID.'_works').'` GROUP by uid ORDER BY `ct` DESC limit 10'); ?> {sql sql='$sql' cache=100} {php $tx = dr_avatar($t.uid);$user=dr_member_info($t.uid);} {if $user.name} <li> <span {if $key==0}class="num1" {else if $key==1} class="num2" {else if $key==2} class="num3" {else} class="num" {/if}>{if $key>=3} {$key+1} {else} {/if}</span> <a href="{php $ci->init_file('hy'); echo dr_hy_url($t.uid);}" target="_blank"> <img src="{dr_avatar($t.uid)}" /> <span>{$user.name}</span> </a> <p>{$t.ct}篇</p> </li> {/if} {/sql}