标签参数介绍:
{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)
上一篇:求和/累计运算标签
下一篇:默认分页样式css样式
有站啦CMS®万能建站系统基于 CodeIgniter4 高性能的开发框架,支持接入Laravel、ThinkPHP三种内核可选,基于MIT开源许可协议,免费且不限制商业使用。 提供PC + 手机 + 微信 + 小程序 + APP API + 多终端一体化网站技术解决方案。