{fzw:for:sql="select *,(select count(id) from sl_bbsshow where quanzibianhao={fzw:url:quanzibianhao/} and laiyuanbianhao=0) as tiezishu,(select count(id) from sl_bbsshow where quanzibianhao={fzw:url:quanzibianhao/} and laiyuanbianhao<>0) as huitieshu,(select count(id) from sl_history where leixing='加入圈子' and laiyuanbianhao={fzw:url:quanzibianhao/}) as chengyuanshu from sl_bbs where id={fzw:url:quanzibianhao/}" id="p1"}
回复({fzw:sql="select count(id) as huifushu from sl_bbsshow where laiyuanbianhao={fzw:url:id/}" id="p1"}{fzw:p1:huifushu/}{/fzw:sql})
{fzw:for:sql="select *,(select count(id) from sl_history as h where h.laiyuanbianhao=bbs.id and leixing='点赞') as dianzanshu,(select count(id) from sl_bbsshow as bbs2 where bbs2.laiyuanbianhao=bbs.id) as huifushu,u.id as userid from sl_bbsshow as bbs,sl_user as u where bbs.yonghuming=u.yonghuming and bbs.laiyuanbianhao={fzw:url:id/} order by bbs.id desc" id="p1"}
{fzw:for:sql="select *,u.id as userid from sl_bbsshow as bbs,sl_user as u where bbs.yonghuming=u.yonghuming and bbs.laiyuanbianhao={fzw:p1:id/}" id="p2"}
{fzw:sql="select top 5 * ,(select count(id) from sl_bbsshow as bs where bs.yonghuming=u.yonghuming and laiyuanbianhao<>0) as huidashu from sl_user as u order by huidashu desc" id="p1"}