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

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0);
?>

<div id="profile" class="new_win">
    <h1 id="win_title"><?php echo $mb_nick ?>님의 프로필</h1>
	<ul>
		<li class="profile_name">
	        <span class="my_profile_img">
	            <?php echo $member_profile_img ?>
	        </span>
	        <?php echo $mb_nick ?>
		</li>
		<li>
            <span class="profile_cnt">회원권한<strong><?php echo $mb['mb_level'] ?></strong></span>
        	<span class="profile_cnt">포인트<strong><?php echo number_format($mb['mb_point']) ?></strong></span>
        </li>
        <li class="profile_connec">
            <span class="profile_cnt">회원가입일<strong><?php echo ($member['mb_level'] >= $mb['mb_level']) ?  substr($mb['mb_datetime'],0,10) ." (".number_format($mb_reg_after)."일)" : "알 수 없음"; ?></strong></span>
        	<span class="profile_cnt">최종접속일<strong><?php echo ($member['mb_level'] >= $mb['mb_level']) ? $mb['mb_today_login'] : "알 수 없음"; ?></strong></span>
        </li>
        <?php if ($mb_homepage) { ?>
		<li>
			<b>홈페이지</b>
		    <a href="<?php echo $mb_homepage ?>" target="_blank"><?php echo $mb_homepage ?></a></td>  
		</li>
		<?php } ?>
		<li class="greeting">
	        <h2>인사말</h2>
	        <p><?php echo $mb_profile ?></p>
	    </li>
    </ul>
	<div class="win_btn">
        <button type="button" onclick="window.close();" class="btn_close">창닫기</button>
    </div>
</div>
