<?
/*
pc.new.replay.skin.php : PC용 스킨

ziumsoft 2011. 11
$reply_info_list[$i][0]:게시판 이름, [1]:글번호, [2]:글쓴이, [3]:제목, [4]:답글-댓글-답댓글, [5]:날짜, [6]:링크
*/

?>
<style type="text/css">
#zmb_alimi_box	{ display:block; height:540px; position:absolute; text-align:center; overflow:hidden; border:1px solid #E3E3E3; border-bottom:2px solid #494949; background:#fff; z-index:100; }
#zmb_alimi_box #close_button { margin:0 auto; padding:5px 0 0 0; left:0; top:0; height:25px; width:240px; }
#zmb_alimi_box #close_button span { list-style:none; display:inline; margin:0; padding:0; }
#zmb_alimi_box #list_box	{ background:#F8F8F8; border:1px solid #E3E3E3; height:473px; margin:0 4px 0 4px; text-align:left; }
#list_box .alimi_subject	{ padding:3px; }
#list_box .alimi_reply		{ padding:2px; border-bottom:1px solid #E7E7E7; font-size:11px; }
#zmb_all_del	{ padding-top:5px; }
#zmb_all_del a.all_del_a	{ color:#616161; font-size:1em; }

#close_button span#alimi_txt	{ display:inline-block; width:75%; text-align:left; }
#close_button span#alimi_close	{ display:inline-block; width:20%; text-align:right; }

#list_box a.reply_href		{ font-size:11px; font-family:Dotum; letter-spacing:-1px; text-decoration:none; }
#list_box a.reply_href_read	{ color:#BBBBBB; }					/* 이미 읽은 댓글 정보 */
#list_box a.reply_href_noread	{ color:#494949; }				/* 새 댓글 정보 */

#list_box .writer		{ display:inline-block; color:#929292; cursor:default; font-family:Dotum; letter-spacing:-1px; width:94%; white-space:nowrap; text-overflow:ellipsis; }
#list_box .list_drop	{ display:inline-block; text-align:right; width:4%; }
</style>

<div id="zmb_alimi_box">
	<div id="close_button">
		<span id="alimi_txt">알리미</span>
		<span id="alimi_close"><img src="<?=$service_path?>/img/btn_x.gif" onClick="alimi_close();" valign="middle"></span>
	</div>
	<div id="list_box">
<?	for($i = 0; $i < count($reply_info_list); $i++) :
		//-- 새 캐쉬 만든 시간이 마지막 확인 시간보다 크다면 진하게
		if($latest_datetime >= $reply_info_list[$i][5]) $reply_color = "reply_href_read"; else $reply_color = "reply_href_noread";
?>
		<div class="alimi_subject"><a class="reply_href <?=$reply_color?>" href="<?=$reply_info_list[$i][6]?>"><?=$reply_info_list[$i][3]?>에</a></div>
		<div class="alimi_reply">
			<span class="writer" title="<?=$reply_info_list[$i][2]?>">
				<span style="color:#0066FF;"><?=cut_str($reply_info_list[$i][2], 12, "")?></span>님이 <b><?=$reply_info_list[$i][4]?></b>을 달았습니다. <?=date("m.d H:i", strtotime($reply_info_list[$i][5]))?></span>
			</span>
			<span class="list_drop"><a href="#" onClick="reply_del('<?=$i?>')"><img src="<?=$service_path?>/img/btn_x2.gif" valign="absolute"></a></span>
		</div>
<?	endfor; ?>
	</div>
	<div id="zmb_all_del"><a class="all_del_a" href="#" onClick="if(confirm('댓글 정보를 모두 삭제 합니다.')) reply_del('99')"><img src="<?=$service_path?>/img/btn_x2.gif" valign="absolute"> 목록 비우기</a></div>
</div>
<? //-- ↑ 스킨 수정은 <div id=zmb_alimi_box>...</div> 안에서만... ?>


<? //-- ↓ 수정시 불미스런 일 생길 수 있음 ?>
<script language="javascript">
//-- 알리미 창 위치 Fix
function zm_alimi_box() {
var apos = $("#zmb_addon_alimi").position();
var newleft	= "0px";
var newtop	= apos.top+27+"px";

$("#zmb_alimi_box").css("display", "block");
$("#zmb_alimi_box").css("top", newtop);
$("#zmb_alimi_box").css("left", newleft);
$("#zmb_alimi_box").css("width", "99%");
}
<? if($clickload) : ?> zm_alimi_box(); <? endif; ?>

//-- 창 닫기
function alimi_close() {
	$("#zmb_alimi_box").css("display", "none");
}
</script>
<? //-- ↑ 수정시 불미스런 일 생길 수 있음 ?>