<style type="text/css">
#namecard_body	{ clear:both; margin:0; border:1px solid #C3C3C3; background:#F9F9F9; }
#white_line		{ padding:5px; text-align:left; border:1px solid #fff; }
.mb_info		{ padding:3px 0 3px 0; color:#202020; }
.mb_intro		{ padding:3px 0 3px 0; color:#616161; font-size:11px; }
ul#info_list	{ margin:0; padding:0; font-weight:normal; }
ul#info_list li	{ display:inline-block; padding:5px 0 0 0; color:#929292; font-family:Dotum; letter-spacing:-1px; }
ul#info_list li.info_d	{ padding:10px; font-size:9px; color:#C3C3C3; }
div#info_etc	{ border-top:1px solid #E4E4E4; padding:5px 0 5px 0; }
input.btn_info	{ padding:4px 10px 2px 10px; border:1px solid #D0CFD1; background:#EFEFEF; font-size:11px; font-family:Dotum; letter-spacing:-1px; cursor:pointer; color:#3E3E3E; }
input.btn_info:hover { background:#B3B3B3; color:#fff; border:1px solid #838383; }

.mb_info span.nick	{ font:normal 13px 나눔고딕; color:#4E86FE; }
.mb_info span.levelname	{ font:normal 12px 나눔고딕; color:#656565; }
</style>

<div id="namecard_body">
<div id="white_line">
<!-- 로그인 됐을 때 보여질 화면 -->
<? if($is_member) : ?>
<table width="100%" cellspacing=0 cellpadding=0>
<tr>
	<td width="120"><img src="<?=$writer_info[profile_pic]?>"></td>
	<td valign="top">
	<div class="mb_info"><span class="nick"><?=$writer_info[mb_nick]?></span> <span class="levelname">( Lv. <?=$writer_info[mb_levelname]?> )</span> </div>
	<div class="mb_intro"><?=$writer_info[mb_signature]?></div>
	<ul id="info_list">
		<li>소속 : </li><li><?=$writer_info[mb_belong]?></li><li class="info_d">|</li>
		<li>homepage : </li><li><?=$writer_info[mb_homepage]?></li>
	</ul>
	<div id="info_etc">
		<input type="button" value="친구신청" class="btn_info" onclick="window.open('<?=$g4[path]?>/bbs/profile.php?mb_id=<?=$member[mb_id]?>&pcode=adm&friend_id=<?=$write[mb_id]?>', '', 'toolbar=0, width=900, height=600, scrollbars=0')">
		<input type="button" value="쪽지 보내기" class="btn_info" onclick="window.open('<?=$g4[path]?>/bbs/memo_form.php?me_recv_mb_id=<?=$view[mb_id]?>', '', 'toolbar=0, width=900, height=600, scrollbars=0')">
		<input type="button" value="메일 보내기" class="btn_info" onclick="window.open('<?=$g4[path]?>/bbs/formmail.php?mb_id=<?=$view[mb_id]?>&name=<?=$view[wr_name]?>&email=<?=base64_encode($view[wr_email])?>', '', 'toolbar=0, width=900, height=600, scrollbars=0')">
	</div>
	</td>
</tr>
</table>
<? else : ?>
<!-- 비회원, 로그인 되지 않았을 때 화면 -->
<table width="100%" cellspacing=0 cellpadding=0>
<tr>
	<td width="120"><img src="<?=$writer_info[profile_pic]?>"></td>
	<td valign="top">
	<div class="mb_info"><span><?=$writer_info[mb_nick]?></span> <span>(<?=$writer_info[mb_levelname]?>)</span></div>
	<div class="mb_intro"><?=$writer_info[mb_signature]?> (회원에게만 공개 됩니다.)</div>
	</td>
</tr>
</table>
<? endif; ?>
</div>
</div>