<?php if(!defined('IN_SDCMS')) exit;?>
	<div class="bg-white p">
		<div class="tabs pl pr bg-white" data-href="1">
			<div class="tabs-header-nav">
				<ul class="tabs-nav">
					<li><a href="{U('bbs/mytopic','uid='.$uid.'')}" class="pl-15 pr-15">我的主题</a></li>
					<li class="active"><a href="{U('bbs/myreply','uid='.$uid.'')}" class="pl-15 pr-15">我的回复</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="40" height="40" >
				</div>
				<div class="media-body">
					<div class="media-header row align-items-center">
						<div class="col-8 font-14">{$rs[uname]}<span class="pl text-gray">{formatTime($rs[createdate])}</span></div>
						<div class="col-4 text-right font-13 text-gray">{switch ($i+15*($page-1))}{case 1}沙发{/case}{case 2}板凳{/case}{case 3}地板{/case}{default}{$i+15*($page-1)}楼{/switch}</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 class="pt-15"></div>
	</div>