| Server IP : 119.195.102.159 / Your IP : 216.73.217.134 Web Server : nginx/1.18.0 System : Linux picell 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 User : altablue ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/ |
Upload File : |
<? //echo 1;?>
<script type="text/javascript">
function setCookie( name, value, expirehours ) {
var todayDate = new Date();
todayDate.setHours( todayDate.getHours() + expirehours );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin(no) {
document.getElementById("layer_"+no).style.display = "none";
}
function todaycloseWin(no) {
var cookie_name = "layer_"+no;
setCookie( cookie_name, "done" , no );
//document.getElementById(no).style.display = "none";
$("#layer_"+no).css("display", "none");
}
</script>
<?
$today = date("Y-m-d");
$result = mysql_query("SELECT * FROM landing_popup WHERE '$today' BETWEEN start_date AND end_date AND type='layer' AND state = 'Y' AND p_no='$branch_office' ORDER BY start_date ASC, end_date ASC, no ASC");
while ($row = mysql_fetch_array($result)) {
?>
<div id="layer_<?=$row['no']?>" class="layerPop" style="left:<?=$row['position_width']?>px; top:<?=$row['position_height']?>px; width:<?=$row['width']?>px; z-index:<?=$row['zindex']?>">
<a href="<?=$row['link_url']?>" target="<?=$row['link_type']?>"><img src="/upload/program/landing_popup/<?=$row['img']?>" alt="<?=$row['title']?>"/></a>
<div class="btn-group">
<button onclick="todaycloseWin('<?=$row['no']?>');" class="hide-today">오늘 하루 열지 않기</button>
<button onclick="closeWin('<?=$row['no']?>');" class="popup-close" aria-label="팝업 닫기" title="팝업 닫기"></button>
</div>
</div>
<script type="text/javascript">
cookiedata = document.cookie;
if ( cookiedata.indexOf("layer_"+"<?=$row['no']?>") < 0 ){
document.getElementById("layer_<?=$row['no']?>").style.display = "block";
} else {
document.getElementById("layer_<?=$row['no']?>").style.display = "none";
}
</script>
<? } ?>