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

if ($kind == "recv" || $kind == "save") {
	$strt	= "보낸사람";
	$sname	= "$nick($memo[me_send_mb_id])";
}elseif($kind == "send"){
	$strt	= "받는사람";
	$sname	= "$nick($mb[mb_id])";
}
?>
<link rel="stylesheet" href="<?=$member_skin_path?>/zm.style.css" type="text/css">
<section id="wrap">

<? include_once("zm.memo_top.skin.php"); ?>
<div id="memo_body_menu"><? include_once("zm.memo_left.skin.php"); ?></div>
<div id="memo_view_box">
<div style="padding:4px 0 4px 0;">
	<div style="float:left; width:30%;">&nbsp;<?=$strt?></div>
	<div style="width:70%;"><?=$sname?></div>
</div>
<div style="clear:both; padding:4px 0 4px 0;">
	<div style="float:left; width:30%;">&nbsp;보낸시간</div>
    <div style="float:left; width:70%;"><?=$memo[me_send_datetime]?></div>
</div>
<div style="clear:both; text-align:right;">
<?	if($kind == "recv") :?> 
		<div class="txtsmall"><span id="notify_police"><?=zm_police($g4[memo_table], $me_id, "memo");?>신고</span> <span id="refusal"><img src="<?=$member_skin_path?>/img/icon_refusal.gif" align="absmiddle"><a href="javascript:id_refusal('<?=$memo[me_send_mb_id]?>')">차단</a></span></div>
<?	endif; ?>
</div>

<div id="memoview"><?=conv_content($memo[me_memo], 0)?></div>

<div style="clear:both; text-align:center; margin-top:10px;">
	<a href="<?=$prev_link?>" style="margin-right:150px;"><img src='<?=$member_skin_path?>/img/btn_memo_prev.gif' border='0'></a>
    <a href="<?=$next_link?>"><img src='<?=$member_skin_path?>/img/btn_memo_next.gif' border='0'></a>
</div>

<div style="clear:both; text-align:center; margin-top:10px;">
	<a href="./memo.php?kind=<?=$kind?>"><img src="<?=$member_skin_path?>/img/btn_list_view.gif" width="62" height="20" border="0"></a>
<?	if ($kind == "recv") : ?>
	<a href='./memo_form.php?me_recv_mb_id=<?=$mb[mb_id]?>&me_id=<?=$memo[me_id]?>'><img src='<?=$member_skin_path?>/img/btn_memo_reply.gif' border='0'></a>&nbsp;
	<a href='./memo.php?kind=<?=$kind?>&me_id=<?=$me_id?>&mode=save'><img src='<?=$member_skin_path?>/img/btn_memo_save.gif' border='0'></a>&nbsp;
<?	endif; ?>
</div>
</div> <!-- main end -->

</section>
<!-- ↓fixed -->
<script language="javascript">
function id_refusal(id) {
	var myid	= "<?=$member[mb_id]?>";

	if(!id) { alert("차단 할 아이디가 없습니다."); return false; }
	if(id == myid) { alert("본인을 차단 할 수 없습니다."); return false; }

	if(confirm("차단 될 회원 : "+id+" \n차단 된 회원이 발송 한 쪽지는 무시 됩니다.")) zm_gourl("./zm.memo_update.php?mode=refusal&id="+id+"&kind=<?=$kind?>");
}

function open_report(){
	window.open("./zm.police.php?r=<?=$memo[me_id]?>&report=memo", "police", "width=600, height=500, toolbar=0, scrollbars=0");
}
</script>

<?=zm_bottom("zm.basic")?>