<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>
<link rel="stylesheet" href="<?=$member_skin_path?>/zm.style.css" type="text/css">
<style type="text/css">
#memo_body_top		{ padding:5px; height:30px; }
#memo_body_left		{ float:left; width:150px; }
#memo_body_right	{ float:left; width:700px; }

#refusal_box		{ color:#A2A2A2; width:600px; height:300px; overflow-y:scroll; border:1px solid #AAAAAA; padding:2px; }

.list				{ padding:0 10px 0 0; }
.recv_condition		{ border:1px solid #E3E3E3; background-color:#F4F4F4; width:600px; margin:0 auto; color:#606060; font-size:11px; padding:5px; }
</style>

<div id="memo_body_top"><? include_once("zm.memo_top.skin.php"); ?></div>
<div id="memo_body_left"><? include_once("zm.memo_left.skin.php"); ?></div>
<div id="memo_body_right">
	<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr><td><img src="<?=$member_skin_path?>/img/icon_arrow_right.gif" align="absmiddle">차단목록</td></tr>
	<tr>
		<td>
		<div id="refusal_box">
<?	for($i=0; $i<count($refusallist); $i++) :
		$t = explode(".", $refusallist[$i][ip]);
		$refusallist[$i][ip] = $t[0] . "." . $t[1] . ".***." . $t[3];
?>
			<div><span class="list"><?=$refusallist[$i][nick]?> (<?=$refusallist[$i][refusal_id]?>)</span><span class="list"><?=$refusallist[$i][email]?></span><span class="list"><?=$refusallist[$i][ip]?></span><span class="list"><?=$refusallist[$i][date]?></span><a href="javascript:if(confirm('차단 해제 할까요?')) zm_gourl('./zm.memo_update.php?mode=refusalcancel&refusalid=<?=$refusallist[$i][refusal_id]?>');"><span class="list" style="font-size:11px;">차단해제<img src="<?=$member_skin_path?>/img/icon_arrow_right.gif" align="absmiddle"></span></a></div>
<?	endfor; ?>
		</div>
		</td>
    </tr>
	<tr>
		<td>
			<form name="refusal" method="post" action="./zm.memo_update.php" onSubmit="return alert('차단 후에 F5(새로고침)로 다시 읽어 오시기 바랍니다.')">
			<input type="hidden" name="mode" value="refusal">
			아이디 : <input name="id" itemname="아이디" cols=50 required>
			<input type="submit" value="차단등록">
			</form>
		</td>
	</tr>
	</table>
	<p />
	<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr><td><img src="<?=$member_skin_path?>/img/icon_arrow_right.gif" align="absmiddle">수신관리</td></tr>
	<tr>
		<td>
		<div class="recv_condition">
		<form name="recv_condi" method="post" action="./zm.memo_update.php">
		<input type="hidden" name="mode" value="recv_condition">
		<input type="radio" name="memo_recv_condition" value="1" <?=($zm_member[memo_recv_condition]=="1" || !$zm_member[memo_recv_condition])?"checked":""?>>모두 받기 <input type="radio" name="memo_recv_condition" value="2" <?=($zm_member[memo_recv_condition]=="2")?"checked":""?>>친구에게만 받기
		<input type="submit" value="적용">
		</form>
		</div>
		<td>
	</tr>
	</table>
</div> <!-- main end -->



<script type="text/javascript">
</script>
