{fzw:inside src="顶部.html"/}
{fzw:sql="select * from sl_banner where classid=47 order by dtime desc" id="p1"}
{/fzw:sql}

学院论坛

{fzw:for:sql="select * ,(select count(id) from sl_bbsshow as bs where datediff(day, dtime ,getdate())=0 and bs.tiezileibie=p.id and laiyuanbianhao=0) as jinrishu from sl_Parameter as p where p.id=299 order by id desc" id="p1"} {fzw:for:sql="select top 1 *,(select count(id) from sl_bbsshow as bs where bs.laiyuanbianhao=0 and bs.tiezileibie={fzw:p1:id/}) as tiezizongshu,(select count(id) from sl_bbsshow as bs where bs.laiyuanbianhao<>0 and bs.tiezileibie={fzw:p1:id/}) as huitieshu from sl_bbsshow as bs,sl_user as u where tiezileibie={fzw:p1:id/} and u.yonghuming=bs.yonghuming" id="p2"} {/fzw:for:sql} {/fzw:for:sql} {fzw:for:sql="select * ,(select count(id) from sl_bbsshow as bs where datediff(day, dtime ,getdate())=0 and bs.tiezileibie=p.id and laiyuanbianhao=0 and bs.quanzibianhao=4) as jinrishu from sl_Parameter as p where p.id=298 order by id desc" id="p1"} {fzw:for:sql="select top 1 *,(select count(id) from sl_bbsshow as bs where bs.laiyuanbianhao=0 and bs.tiezileibie={fzw:p1:id/} and bs.quanzibianhao=4) as tiezizongshu,(select count(id) from sl_bbsshow as bs where bs.laiyuanbianhao<>0 and bs.tiezileibie={fzw:p1:id/}) as huitieshu from sl_bbsshow as bs,sl_user as u where tiezileibie={fzw:p1:id/} and u.yonghuming=bs.yonghuming and bs.quanzibianhao=4" id="p2"} {/fzw:for:sql} {/fzw:for:sql}
{fzw:p1:u1/}(今日发帖:{fzw:p1:jinrishu/}){fzw:p1:u2/}主贴:{fzw:p2:tiezizongshu/} / 回帖:{fzw:p2:huitieshu/} {fzw:p2:biaoti size="30"/}{fzw:p2:dtime string="shijian"/}    {if value1="{fzw:p2:nicheng/} value2="" bi="=="}{fzw:p2:yonghuming/}{else}{fzw:p2:nicheng/}{/if}
{fzw:p1:u1/}(今日发帖:{fzw:p1:jinrishu/}){fzw:p1:u2/}主贴:{fzw:p2:tiezizongshu/} / 回帖:{fzw:p2:huitieshu/} {fzw:p2:biaoti size="30"/}{fzw:p2:dtime string="shijian"/}    {if value1="{fzw:p2:nicheng/} value2="" bi="=="}{fzw:p2:yonghuming/}{else}{fzw:p2:nicheng/}{/if}

学院圈子热门圈子

{fzw:for:sql="select * ,(select count(id) from sl_bbs as bbs where bbs.quanzileibie=p.id) as quanzishu from sl_Parameter as p where p.classid=289 order by id desc" id="p1"} {fzw:for:sql="select top 2 *,(select count(id) from sl_bbsshow as bs where datediff(day, dtime ,getdate())=0 and bs.quanzibianhao=bbs.id and laiyuanbianhao=0) as jinrishu from sl_bbs as bbs where quanzileibie={fzw:p1:id/} order by jinrishu desc" id="p2"} {/fzw:for:sql} {/fzw:for:sql}
{fzw:p1:u1/}({fzw:p1:quanzishu/}个圈子){fzw:p1:u2/}{fzw:p2:quanziming/}(今日发帖:{fzw:p2:jinrishu/}){fzw:p2:jianjie/}

学院专区

{fzw:for:sql="select * ,(select count(id) from sl_bbsshow as bs where datediff(day, dtime ,getdate())=0 and bs.tiezileibie=p.id and laiyuanbianhao=0) as jinrishu from sl_Parameter as p where p.classid=288 order by id desc" id="p1"} {fzw:for:sql="select top 1 *,(select count(id) from sl_bbsshow as bs where bs.laiyuanbianhao=0 and bs.tiezileibie={fzw:p1:id/}) as tiezizongshu,(select count(id) from sl_bbsshow as bs where bs.laiyuanbianhao<>0 and bs.tiezileibie={fzw:p1:id/}) as huitieshu from sl_bbsshow as bs,sl_user as u where tiezileibie={fzw:p1:id/} and u.yonghuming=bs.yonghuming" id="p2"} {/fzw:for:sql} {/fzw:for:sql}
{fzw:p1:u1/}(今日发帖:{fzw:p1:jinrishu/}){fzw:p1:u2/}主贴:{fzw:p2:tiezizongshu/} / 回帖:{fzw:p2:huitieshu/} {fzw:p2:biaoti size="30"/}{fzw:p2:dtime string="shijian"/}    {if value1="{fzw:p2:nicheng/}" value2="" bi="=="}{fzw:p2:yonghuming/}{else}{fzw:p2:nicheng/}{/if}
我要发帖 {fzw:sql="select count(id) as jinrishu from sl_bbsshow where datediff(day, dtime ,getdate()) = 0" id="p1"} {/fzw:sql} {fzw:sql="select count(id) as benyueshu from sl_bbsshow where datediff(month, dtime ,getdate()) = 0" id="p1"} {/fzw:sql} {fzw:sql="select count(id) as tiezishu from sl_bbsshow where laiyuanbianhao=0" id="p1"} {/fzw:sql} {fzw:sql="select count(id) as huiyuanshu from sl_user" id="p1"} {/fzw:sql}
{fzw:p1:jinrishu/}论坛今日发帖{fzw:p1:benyueshu/}论坛今日发帖
{fzw:p1:tiezishu/}帖子{fzw:p1:huiyuanshu/}会员

精彩推荐

    {fzw:sql="select top 9 * from sl_bbsshow where shuxing like '%推荐%' order by paixu desc" id="p1"}
  1. {fzw:p1:biaoti/}
  2. {/fzw:sql}

回答雷锋榜

{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"} {/fzw:sql}
{if value1="{fzw:p1:nicheng/}" value2="" bi="=="}{fzw:p1:yonghuming/}{else}{fzw:p1:nicheng/}{/if}
{fzw:p1:leixing/}
{fzw:p1:huidashu/}回答
{fzw:inside src="底部.html"/} {fzw:inside src="右侧.html"/}