列表页调用好评的代码:
{dede:field name=’id’ runphp=’yes’}
global $dsql;
$tid=@me;
$sql=”select count(dede_archives.id) as count from dede_archives,dede_feedback where dede_feedback.aid=dede_archives.id and dede_archives.typeid=$tid and dede_feedback.ftype=’
good‘”;
$row=$dsql->getOne($sql);
@me=$row[“count”];
{/dede:field/}

列表页调用中立的代码:
{dede:field name=’id’ runphp=’yes’}
global $dsql;
$tid=@me;
$sql=”select count(dede_archives.id) as count from dede_archives,dede_feedback where dede_feedback.aid=dede_archives.id and dede_archives.typeid=$tid and dede_feedback.ftype=’
feedback‘”;
$row=$dsql->getOne($sql);
@me=$row[“count”];
{/dede:field/}

列表页调用差评的代码:
{dede:field name=’id’ runphp=’yes’}
global $dsql;
$tid=@me;
$sql=”select count(dede_archives.id) as count from dede_archives,dede_feedback where dede_feedback.aid=dede_archives.id and dede_archives.typeid=$tid and dede_feedback.ftype=’
bad‘”;
$row=$dsql->getOne($sql);
@me=$row[“count”];
{/dede:field/}

发表评论

电子邮件地址不会被公开。 必填项已用*标注