评价管理
我的评分
{fzw:sql="select avg(fen) as fen from sl_pinglun where yonghuming='{fzw:cookie:name="user_name"}'" id="p1"} {if value1="{fzw:p1:fen/}" value2="" bi="=="} {else} {/if} {/fzw:sql}
全部评价({fzw:sql="select count(id) as count_id from sl_pinglun where yonghuming='{fzw:cookie:name="user_name"}'" id="p1"}{fzw:p1:count_id/}{/fzw:sql})
五星({fzw:sql="select count(id) as count_id from sl_pinglun where yonghuming='{fzw:cookie:name="user_name"}' and fen=5" id="p1"}{fzw:p1:count_id/}{/fzw:sql})
四星({fzw:sql="select count(id) as count_id from sl_pinglun where yonghuming='{fzw:cookie:name="user_name"}' and fen=4" id="p1"}{fzw:p1:count_id/}{/fzw:sql})
三星({fzw:sql="select count(id) as count_id from sl_pinglun where yonghuming='{fzw:cookie:name="user_name"}' and fen=3" id="p1"}{fzw:p1:count_id/}{/fzw:sql})
二星({fzw:sql="select count(id) as count_id from sl_pinglun where yonghuming='{fzw:cookie:name="user_name"}' and fen=2" id="p1"}{fzw:p1:count_id/}{/fzw:sql})
一星({fzw:sql="select count(id) as count_id from sl_pinglun where yonghuming='{fzw:cookie:name="user_name"}' and fen=1" id="p1"}{fzw:p1:count_id/}{/fzw:sql})
{fzw:search table="sl_pinglun" sqlvalue="yonghuming='{fzw:cookie:name="user_name"}' and leixing='视频'" number="10" order="dtime" orderby="desc" id="p1"}
{fzw:sql="select * from sl_kecheng where id={fzw:p1:laiyuanbianhao/}" id="p2"}
课程名称:{fzw:p2:biaoti/}
{/fzw:sql}
{fzw:sql="select * from sl_user where yonghuming='{fzw:p1:yonghuming/}'" id="p2"}
{/fzw:sql}
{fzw:p1:neirong/}
时间:{fzw:p1:dtime datetime="yyyy-MM-dd hh:mm"/}
{fzw:sql="select count(id) as shu from sl_history where leixing='评论点赞' and laiyuanbianhao={fzw:p1:id/}" id="p2"} 有用({fzw:p2:shu/}) {/fzw:sql}