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

//===========================================================================
// 스타일과 스크립트 : 한번만 부름 
//===========================================================================
if(!defined('_POPUP_SKIN_')){
	defined('_POPUP_SKIN_');
?>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<link type="text/css" href="<?php echo $skin_url?>/css/popup.skin.css" rel="stylesheet" />

<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo $skin_url?>/js/popup.skin.js"></script>
<?php
}


//===========================================================================
// 이하는 HTML
//===========================================================================
?>
<div class="popup" id="<?php echo $id?>" style="width:<?php echo $row["bp_width"]?>px;height:<?php echo (int)$row['bp_height']+22?>px;">
	<div style="popup_wrapper">
	<?php if($row['bp_show_subject']){?>
		<div class="popup_title">
			<h4><?php echo $row["bp_subject"]?></h4>
			<span class="popup_close" onclick="closePopup('popup_<?php echo $row["bp_idx"]?>');">닫기</span>
		</div>
	<?php }?>
		<div class="popup_content"><?php echo $content?></div>
		<div class="popup_footer">
	<?php if($row['bp_show_closeopt']){?>
			<span onclick="closePopup('<?php echo $id?>', '<?php echo $cookie_name?>', '<?php echo $cookie_value?>', <?php echo $row["bp_close_hour"]?>);" style="cursor: pointer;"><?php echo $close_hour?> 동안 보이지 않게 하기</span> | 
	<?php }?>
			<span>[<a href="javascript:closePopup('<?php echo $id?>');">닫기</a>]</span>&nbsp;&nbsp;
		</div>
	</div>
</div>