<?php if(!defined('IN_SDCMS')) exit;?>{include file="top.php"}
<title>{if strlen($seotitle)>0}{$seotitle}_{/if}{sdcms[bbs_webname]}</title>
<meta name="keywords" content="{$seokey}">
<meta name="description" content="{$seodesc}">
</head>

<body>
	
    {include file="head.php"}
  
    <div class="pt20">
    	<div class="width ui-box">
        <!---->
        <div class="ui-row bbs">
            <div class="bbs-left">
                {include file="bbs/left.php"}
            </div>
            <div class="bbs-right">
                <div class="bbs-right-title">{if $fid==0}全部主题{else}{$bbsname}{/if}<a href="{N('bbsadd','','fid='.$fid.'')}">发表主题</a></div>
                <div class="ui-tabs ui-mt-20" data-href="1">
                    <div class="ui-tabs-header-nav">
                        <ul class="ui-tabs-nav">
                            <li{if $type==0} class="active"{/if}><a href="{N('bbs','','fid='.$fid.'&type=0')}">最新</a></li>
                            <li{if $type==1} class="active"{/if}><a href="{N('bbs','','fid='.$fid.'&type=1')}">热门</a></li>
                            <li{if $type==2} class="active"{/if}><a href="{N('bbs','','fid='.$fid.'&type=2')}">精华</a></li>
                        </ul>
                    </div>
                </div>
                <div class="bbs-topic">
                    {sdcms:rs pagesize="20" table="sd_bbs" join="left join sd_user on sd_bbs.userid=sd_user.id" where="sd_bbs.islock=1 $where" order="$order" key="bbs_id"}
                    <div class="bbs-topic-item ui-scrollspy" data-am="ui-am-slide-bottom" data-time="{$i*100}">
                        <div class="face"><img src="{if !isempty($rs[uface])}{$rs[uface]}{else}{WEB_ROOT}upfile/noface.gif{/if}" alt="{$rs[uname]}"></div>
                        <div class="body">
                            <div class="title text-hide"><a href="{N('bbsshow','','id='.$rs[bbs_id].'')}" title="{$rs[title]}">{$rs[title]}</a>{if $rs[ontop]==1}<em>顶</em>{/if}{if $rs[isnice]==1}<em>精</em>{/if}</div>
                            <div class="desc"><a href="{U('bbs/mytopic','uid='.$rs[userid].'')}">{$rs[uname]}</a>　{formatTime($rs[createdate])}</div>
                        </div>
                        <div class="other"><i class="ui-icon-eye"></i>{$rs[hits]}<br /><i class="ui-icon-comment"></i>{$rs[replynum]}</div>
                    </div>
                    {/sdcms:rs}
                    {if $pg->totalpage>1}<div class="ui-page ui-page-center ui-page-green ui-page-mid ui-mt-20"><ul>{$showpage}</ul></div>{/if}
                </div>
                
            </div>
        </div>
        <!---->
        </div>
    </div>
    
    {include file="foot.php"}
    <script>
	$(function(){
		$("#nav_bbs").addClass("hover");
	});
	</script>
   
</body>
</html>