<?php if(!defined('IN_SDCMS')) exit;?>
<div class="row bbs">
	<div class="bbs-left">
		{include file="include/bbs/left.php"}
	</div>
	<div class="bbs-right">
		<div class="tabs" data-href="1">
			<div class="tabs-header-nav">
				<ul class="tabs-nav">
					<li class="active"><a href="{U('bbs/mytopic','uid='.$uid.'')}">我的主题</a></li>
					<li><a href="{U('bbs/myreply','uid='.$uid.'')}">我的回复</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 and userid=$uid" order="ontop desc,bbs_id desc" key="bbs_id"}
			<div class="bbs-topic-item">
				<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="page page-center page-mid mt-20"><ul>{$showpage}</ul></div>{/if}
		</div>
		
	</div>
</div>