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

include_once("$g4[path]/lib/latest.lib.php");
?>

<!--  마이페이지 시작 -->

<style type="text/css">
.trs { height:26; }
.memo_form_title { background:#eeeeee; width:80; text-align:center;  }
.memo_form_content { text-align:left; }
.status_form_title { background:#eeeeee; width:13%; text-align:center;  }
.status_form_content { text-align:left; width:20%; background:#ffffff; }
</style>

<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
    <td align="center" valign="middle">

		<table width="100%" height="40" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td><b><?=$member[mb_nick]?></b>님의 마이페이지</td>
		</tr>
		</table>

		<table bgcolor="#dddddd" width='100%' cellpadding='1' cellspacing='1' border='0'>
		<tr class="trs">
		    <td class="status_form_title">이름</td>
			<td class="status_form_content">&nbsp;<?=$member[mb_name]?></td>
			<td class="status_form_title">아이디</td>
			<td class="status_form_content">&nbsp;<?=$member[mb_id]?></td>
			<td class="status_form_title">닉네임</td>
			<td class="status_form_content">&nbsp;<?=$member[mb_nick]?></td>
		</tr>

		<tr class="trs">
		    <td class="status_form_title">생년월일</td>
			<td class="status_form_content">&nbsp;<?=$member[mb_birth]?></td>
			<td class="status_form_title">핸드폰번호</td>
			<td class="status_form_content">&nbsp;<?=$member[mb_hp]?></td>
			<td class="status_form_title">전화번호</td>
			<td class="status_form_content">&nbsp;<?=$member[mb_tel]?></td>
		</tr>

		<tr class="trs">
		    <td class="status_form_title">이메일</td>
			<td class="status_form_content" colspan="5">&nbsp;<?=$member[mb_email]?></td>
		</tr>

		<tr class="trs">
		    <td class="status_form_title">주소</td>
			<td class="status_form_content" colspan="5">&nbsp;<?=$member[mb_addr1]?>&nbsp;<?=$member[mb_addr2]?></td>
		</tr>

		</table>



	</td>
</tr>
</table>


<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
    <td align="center" valign="middle">

		<table width="100%" height="10" border="0" cellspacing="0" cellpadding="0">
		<tr><td></td></tr></table>

		<table bgcolor="#dddddd" width='100%' cellpadding='1' cellspacing='1' border='0'>
		<tr class="trs">
		    <td class="status_form_title">보유포인트</td>
			<td class="status_form_content">&nbsp;<a href="javascript:win_point();"><?=$member[mb_point]?></a></td>
			<td class="status_form_title">스크랩</td>
			<td class="status_form_content">&nbsp;<a href="javascript:win_scrap();">스크랩</a></td>
			<td class="status_form_title">정보수정</td>
			<td class="status_form_content">&nbsp;<a href="<?=$g4['path']?>/bbs/member_confirm.php?url=register_form.php">정보수정</a></td>
		</tr>

		<tr class="trs">
		    <td class="status_form_title">쪽지관리</td>
			<td class="status_form_content">&nbsp;<a href="javascript:win_memo();">안읽은 쪽지 : <? 
    $sql = " select count(*) as cnt 
              from {$g4['memo_table']} 
              where me_recv_mb_id = '{$member['mb_id']}' 
                and me_read_datetime = '0000-00-00 00:00:00' "; 
    $row = sql_fetch($sql); 
    $memo_not_read = $row['cnt']; 
echo " $memo_not_read "; 
?>개</a></td>
			<td class="status_form_titlet">&nbsp;회원탈퇴</td>
			<td class="status_form_content">&nbsp;<a href="javascript:member_leave();">탈퇴하기</a></td>
			<td class="status_form_title">관리자쪽지</td>
			<td class="status_form_content">&nbsp;<a href="javascript:win_memo('../bbs/memo_form.php?me_recv_mb_id=admin');">쪽지보내기</a></td>
		</tr>
		</table>



	</td>
</tr>
</table>

<!-- 마이페이지 끝 -->
