<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{-:@NOTIFY-} - {-:$_SITE['name']-}</title>
{-import: file="c,m" type="css" baseurl="(__THEME__)/home/css/" basepath="(THEME_PATH)/home/css/"-}
<meta name="keywords" content="{-:$_SITE['keywords']-}" />
<meta name="description" content="{-:$_SITE['description']-}" />
</head>

<body>
{-include:header-}
<div class="m w_960">
	<div class="w_240 f_l">
		<dl class="adl">
			<dt><strong>{-:@NOTIFY-}</strong></dt>
			<dd><ul class="aul_5">
				<li><i class="ai ai_16 ai_16_layer"></i> <a href="{-url:home@member/list_notify-}">{-:@ALL-}</a></li>
				<li><i class="ai ai_16 ai_16_mail"></i> <a href="{-url:home@member/list_notify?mn_status=u-}">{-:@UNREAD-}</a></li>
				<li><i class="ai ai_16 ai_16_mail_read"></i> <a href="{-url:home@member/list_notify?mn_status=r-}">{-:@HAVE_READ-}</a></li>
			</ul></dd>
		</dl>
	</div><!--/.w_240-->
	<div class="w_10 h_10 o_h f_l">&nbsp;</div>
	<div class="w_710 f_l">
		<dl class="atab_1 adiv">
			<dt><strong {-if:!ARequest::get('mn_status')-}class="on"{-:/if-}><a href="{-url:home@member/list_notify-}">{-:@NOTIFY-}</a></strong><strong {-if:'u'==ARequest::get('mn_status')-}class="on"{-:/if-}><a href="{-url:home@member/list_notify?mn_status=u-}">{-:@UNREAD-}</a></strong><strong {-if:'r'==ARequest::get('mn_status')-}class="on"{-:/if-}><a href="{-url:home@member/list_notify?mn_status=r-}">{-:@HAVE_READ-}</a></strong></dt>
			<dd class="p_10">
				<table class="listTable">
					<tr>
						<th scope="col">{-:@TITLE-}</th>
						<th scope="col">{-:@TIME-}</th>
						<th scope="col">{-:@STATUS-}</th>
						<th scope="col">{-:@MANAGE-}</th>
					</tr>
					{-foreach:$_MNL,$mn-}
					<tr>
						<td><span class="td_u a" onclick="get_notify('{-:$mn['member_notify_id']-}')">{-:$mn['mn_title']-}</span></td>
						<td>{-:$mn['mn_send_time']|date~'Y-m-d H:i:s',@me-}</td>
						<td id="notify_status_{-:$mn['member_notify_id']-}">
						{-if:-1!=$mn['mn_m_id']-}
							{-if:0==$mn['mn_status']-}
							<span class="fc_g">{-:@UNREAD-}</span>
							{-elseif:1==$mn['mn_status']-}
							<span class="fc_gry">{-:@HAVE_READ-}</span>
							{-:/if-}
						{-:/if-}
						</td>
						<td id="notify_status_{-:$mn['member_notify_id']-}">
						{-if:-1!=$mn['mn_m_id']-}
							<a href="{-url:home@member/delete_notify_do?member_notify_id={$mn['member_notify_id']}-}">{-:@DELETE-}</a>
						{-:/if-}
						</td>
					</tr>
					<tr id="notify_{-:$mn['member_notify_id']-}" style="display:none">
						<td colspan="4" class="bg_gry_l"><div>
						{-:$mn['mn_content']-}
						</div></td>
					</tr>
					{-:/foreach-}
				</table>
				<div id="page_list">{-:$PAGE_LIST-}</div>
			</dd>
		</dl>
	</div><!--/.w_710-->
	<div class="c"></div>
</div>
{-include:footer-}
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/jquery.js"></script>
<script type="text/javascript">
function get_notify(notify_id)
{
	if('fc_g' == $('#notify_status_' + notify_id + ' span').attr('class')){
		$.get('{-url:home@member/read_notify-}', {member_notify_id : notify_id}, function(data){
			$('#notify_status_' + notify_id).html('<span class="fc_gry">{-:@HAVE_READ-}</span>');
		});
	}
	$('#notify_' + notify_id).toggle();
}

document.write('<script type="text/javascript" src="{-url:home@common/get_member_info-}&refresh='+Math.random()+'.js"></sc'+'ript>');
document.write('<script type="text/javascript" src="{-url:home@common/task?task={$TASK}-}&refresh='+Math.random()+'.js"></sc'+'ript>');
</script>
{-import:file="c,m" type="js" baseurl="(__THEME__)/home/js/" basepath="(THEME_PATH)/home/js/"-}
{-:$_SITE['stat_code']-}
</body>
</html>
