dedecms织梦文章页/列表页调用评论数、好评/差评数量的方法

1.dedecms列表页调用评论数
<a href="[field:cfg_basehost/]/plus/feedback.php?aid=[field:id/]"> 
[field:id runphp='yes'] 
$aid = @me; $row = $GLOBALS['dsql']->GetOne("Select count(id) as c from dede_feedback where aid=".@me); @me=$row['c'];
[/field:id]
条评论 
</a>
 
2.dedecms文章页调用评论数
<a href="{dede:field.cfg_basehost/}/plus/feedback.php?aid={dede:field.id/}"> 
{dede:field.id runphp='yes'} 
$aid = @me; $row = $GLOBALS['dsql']->GetOne("Select count(id) as c from dede_feedback where aid=".@me); @me=$row['c']; 
{/dede:field.id}条评论 
</a>
 
2.dedecms列表页好评与差评调用
<div class='good' title='好评' id="[field:id/]"><span id='good[field:id/]'>好评:[field:goodpost/]</span></div> 
<div class='bad' title='差评' id="[field:id/]"> <span id='bad[field:id/]'>差评:[field:badpost/]</span></div>
 
4.dedecms文章页好评调用
<div class='good' title='好评' id="{dede:field.id/}"> <span id='good{dede:field.id/}'>好评:{dede:field.goodpost/}</span> </div> 
<div class='bad' title='差评' id="{dede:field.id/}"> <span id='bad{dede:field.id/}'>差评:{dede:field.badpost/}</span> </div>