<?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><a href="{U('bbs/mytopic','uid='.$uid.'')}">我的主题</a></li>
					<li class="active"><a href="{U('bbs/myreply','uid='.$uid.'')}">我的回复</a></li>
				</ul>
			</div>
		</div>
		<ul class="media-list media-border mt-20">
			{sdcms:rs pagesize="15" table="sd_bbs_reply" join="left join sd_user on sd_bbs_reply.userid=sd_user.id" where="sd_bbs_reply.islock=1 and istopic=0 and userid=$uid" order="replyid desc" key="replyid"}
			<li class="media">
				<div class="media-img mr-20 radius">
					<img src="{if strlen($rs[uface])}{$rs[uface]}{else}{WEB_ROOT}upfile/noface.gif{/if}" alt="{$rs[uname]}" width="64" height="64" >
				</div>
				<div class="media-body">
					<div class="media-header row align-items-center">
						<div class="font-14">{$rs[uname]}<span class="pl text-gray">{formatTime($rs[createdate])}</span></div>
					</div>
					<div class="media-text">
						{$rs[content]}
						{if $rs[reply]<>''}<div class="line line-left"><span class="text-red">管理员回复：</span></div>{$rs[reply]}{/if}
					</div>
				</div>
			</li>
			{/sdcms:rs}
		</ul>
		{if $pg->totalpage>1}<div class="page page-center page-mid"><ul>{$showpage}</ul></div>{/if}
		
	</div>
</div>