标签参数介绍:

{list app=comment action=index table=module|from|mform module=模块目录 form=表单名称 id=主题id号}


用法举例:

1、调用news模块的id=10的评论主题信息

{list app=comment action=index table=module module=news id=10}
评论数:{$t.comments}
支持数:{$t.support}
反对数:{$t.oppose}
平均数:{$t.avgsort}
平均分保留一位小数:{number_format($t.avgsort, 1)}
平均分星星图标:{dr_star_level($t.avgsort, $t.config.review.score == 10)}

---------点评
{loop $t.config.review.option $i $name}
选项名称:{$name}
评分值:{number_format($t['sort'.$i], 1)}
平均分星星图标:{dr_star_level($t['sort'.$i], $t.config.review.score == 10)}
{/loop}



{/list} {$debug}


2、调用news模块表单test的id=10的评论主题信息

{list app=comment action=index table=mform module=news form=test id=10}

其他参数同(1)


3、调用网站表单test的id=10的评论主题信息

{list app=comment action=index table=form form=test id=10}

其他参数同(1)


文档最后更新时间:2021-05-18 14:29:26
我来修改此文档(1) 不会操作怎么办?