<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

//마일리지는 노출시키지 않음

?>

<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/profile.css">

<div id="at-profile">
	<div class="msg-box box-black">
		<i class="fa fa-user"></i> 회원프로필
	</div>

	<div class="clear"></div>

	<table>
	<tr>
	<th scope="row"><span class="mb-photo"><?php echo mb_photo($member['mb_id'], $mb['mb_id'], 60, 60); ?></span></th>
	<td>
		<strong><?php echo $mb_nick ?></strong> (<?php echo $info['grade']; ?>)

		<div class="mb-xp-level">
			<strong style="float:right;">XP <?php echo number_format($info['xp']); ?> (<?php echo $info['per']; ?>%)</strong>
			<strong>Lv <?php echo $info['level']; ?></strong>
			<div class="clear"></div>
		</div>
		<div class="mb-xp-bar" title="다음 레벨까지 <?php echo number_format($info['up']); ?>점(<?php echo (100 - $info['per']); ?>%) 남았습니다.">
			<div class="mb-xp-per" style="width:<?php echo round($info['per']); ?>%;">
				<span class="sound_only"><?php echo round($info['per']); ?>% 진행 중</span>
			</div>
		</div>
	</td>
	</tr>
	<?php if ($mb_homepage) { ?>
		<tr>
		<th scope="row">홈페이지</th>
		<td>
			<a href="<?php echo $mb_homepage ?>" target="_blank"><?php echo $mb_homepage ?></a>
		</td>
		</tr>
	<?php } ?>	
	<tr>
	<th scope="row">회원가입</th>
	<td><?php echo ($member['mb_level'] >= $mb['mb_level']) ?  substr($mb['mb_datetime'],0,10) ." (".number_format($mb_reg_after)." 일)" : "알 수 없음";  ?></td>
	</tr>
	<tr>
	<th scope="row">최종접속</th>
	<td><?php echo ($member['mb_level'] >= $mb['mb_level']) ? $mb['mb_today_login'] : "알 수 없음"; ?></td>
	</tr>
	<tr>
	<th scope="row">MP</th>
	<td>
		<?php echo number_format($info['mp']) ?> 포인트
	</td>
	</tr>
	<th scope="row">AP</th>
	<td>
		<?php echo number_format($info['ap']) ?> 포인트
	</td>
	</tr>
	<tr>
	<th scope="row">소개말</th>
	<td>
		<?php echo $mb_profile ?>
	</td>
	</tr>
	<tr>
	<th scope="row">글서명</th>
	<td>
		<?php echo $mb_signature; ?>
	</td>
	</tr>
	</table>

	<?php if(!$frame) { ?>
		<p align="center">
			 <span class="btn-ok"><a href="javascript:window.close();"><i class="fa fa-times-circle fa-lg"></i> 창닫기</a></span>
		</p>
	<?php } ?>
</div>
