This commit is contained in:
shim
2023-04-17 11:06:08 +09:00
parent d0b393aa97
commit 76264e09ad
4686 changed files with 552713 additions and 0 deletions

View File

@@ -0,0 +1,92 @@
<?php
$ufilesArray = getArrayString($POP['upload']);
$_IMG = getDbData($table['s_upload'], 'uid='.$ufilesArray['data'][0], '*');
$popupImg_URL = $_IMG['url'].$_IMG['folder'].'/'.$_IMG['tmpname'];
?>
<style>
<?php if ($POP['position']=='manual'): ?>
.modal,
.modal-dialog,
.modal-content {
position: absolute;
}
body,
.modal {
padding-right: 0 !important
}
<?php endif; ?>
<?php if ($POP['draggable']): ?>
.modal.rb-popup .modal-content {
cursor: move;
}
<?php endif; ?>
</style>
<!-- 팝업 모달-->
<div class="modal fade rb-popup" tabindex="-1" role="dialog" id="popup-<?php echo $POP['uid']?>"
style="<?php if ($POP['position']=='manual'): ?><?php if ($POP['center']): ?>left: 50%;top: 50%;<?php endif; ?>width:<?php echo $POP['width']?>px; <?php echo $POP['center']?'margin-top':'top'?>: <?php echo $POP['ptop']?>px; <?php echo $POP['center']?'margin-left':'left'?> : <?php echo $POP['pleft']?>px<?php endif; ?>">
<div class="modal-dialog <?php if ($POP['position']=='vcenter'): ?>modal-dialog-centered<?php endif; ?>" role="document">
<div class="modal-content" style="width:<?php echo $POP['width']?>px;">
<div class="modal-body" style="max-height: 500px;overflow-y:auto;background-color: <?php echo $POP['bgcolor'] ?>">
<?php if ($POP['type']=='code'): ?>
<div class="p-2">
<?php echo getContents($POP['content'],$POP['html'])?>
</div>
<?php else: ?>
<a href="<?php echo $_IMG['linkurl'] ?>" target="_blank">
<img src="<?php echo $popupImg_URL?>" alt="" class="img-fluid">
</a>
<?php endif; ?>
</div>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-light btn-sm" id="popCheck_<?php echo $POP['uid']?>">오늘하루 열지않기</button>
<button type="button" class="btn btn-light btn-sm" data-dismiss="modal">닫기</button>
</div>
</div>
</div>
</div>
<?php if ($POP['draggable']): ?>
<?php getImport('jquery-ui','jquery-ui-custom.min','1.12.1','js')?>
<?php endif; ?>
<script type="text/javascript">
$(function () {
$('#popup-<?php echo $POP['uid']?>').modal({
<?php if ($POP['position']=='manual'): ?>
backdrop: false
<?php else: ?>
backdrop: 'static'
<?php endif; ?>
});
// 오늘 하루 그만 보기 체크
$("#popCheck_<?php echo $POP['uid']?>").click(function(){
var nowcookie = getCookie('popview');
setCookie('popview', '[<?php echo $POP['uid']?>]' + nowcookie , 1);
$('#popup-<?php echo $POP['uid']?>').modal('hide');
});
<?php if ($POP['position']=='manual'): ?>
$('body').removeClass('modal-open')
<?php endif; ?>
<?php if ($POP['draggable']): ?>
// draggable modal
$(".rb-popup").draggable({
handle: ".modal-content"
});
<?php endif; ?>
})
</script>

View File

@@ -0,0 +1 @@
데스크탑 모달형

View File

@@ -0,0 +1,53 @@
<?php
$ufilesArray = getArrayString($POP['upload']);
$_IMG = getDbData($table['s_upload'], 'uid='.$ufilesArray['data'][0], '*');
$popupImg_URL = $_IMG['url'].$_IMG['folder'].'/'.$_IMG['tmpname'];
?>
<!-- 팝업 Modal -->
<div class="modal" id="popup-<?php echo $POP['uid']?>">
<nav class="bar bar-standard bar-footer bg-white">
<div class="row">
<div class="col-xs-6">
<button type="button" class="btn btn-secondary btn-block" id="popCheck_<?php echo $POP['uid']?>">오늘 열지않기</button>
</div>
<div class="col-xs-6 p-l-0">
<button type="button" class="btn btn-secondary btn-block" data-history="back">닫기</button>
</div>
</div>
</nav>
<div class="content"<?php if ($POP['bgcolor']): ?> style="background-color: <?php echo $POP['bgcolor'] ?>"<?php endif; ?>>
<?php if ($POP['type']=='code'): ?>
<div class="content-padded">
<?php echo getContents($POP['content'],$POP['html'])?>
</div>
<?php else: ?>
<a href="<?php echo $_IMG['linkurl'] ?>" target="_blank">
<img src="<?php echo $popupImg_URL?>" alt="<?php echo $POP['name'] ?>" class="img-fluid">
</a>
<?php endif; ?>
</div>
</div>
<script type="text/javascript">
$(function () {
setTimeout(function(){
$('#popup-<?php echo $POP['uid']?>').modal()
}, 500);
// 오늘 하루 그만 보기 체크
$("#popCheck_<?php echo $POP['uid']?>").tap(function(){
var nowcookie = getCookie('popview');
window.history.back();
setCookie('popview', '[<?php echo $POP['uid']?>]' + nowcookie , 1);
});
})
</script>

View File

@@ -0,0 +1 @@
모바일 모달형 풀화면

View File

@@ -0,0 +1,62 @@
<?php
$ufilesArray = getArrayString($POP['upload']);
$_IMG = getDbData($table['s_upload'], 'uid='.$ufilesArray['data'][0], '*');
$popupImg_URL = $_IMG['url'].$_IMG['folder'].'/'.$_IMG['tmpname'];
?>
<!-- 팝업 popup -->
<div class="popup zoom" id="popup-<?php echo $POP['uid']?>">
<div class="popup-content">
<nav class="bar bar-standard bar-footer bg-white">
<div class="row">
<div class="col-xs-6">
<button type="button" class="btn btn-secondary btn-block" id="popCheck_<?php echo $POP['uid']?>">오늘 열지않기</button>
</div>
<div class="col-xs-6 p-l-0">
<button type="button" class="btn btn-secondary btn-block" data-history="back">
닫기
<?php echo $popup_test ?>
</button>
</div>
</div>
</nav>
<div class="content"<?php if ($POP['bgcolor']): ?> style="background-color: <?php echo $POP['bgcolor'] ?>"<?php endif; ?>>
<?php if ($POP['type']=='code'): ?>
<div class="content-padded">
<?php echo getContents($POP['content'],$POP['html'])?>
</div>
<?php else: ?>
<a href="<?php echo $_IMG['linkurl'] ?>" target="_blank">
<img src="<?php echo $popupImg_URL?>" alt="<?php echo $POP['name'] ?>" class="img-fluid">
</a>
<?php endif; ?>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
setTimeout(function(){
$('#popup-<?php echo $POP['uid']?>').popup({
show:true,
backdrop: 'static'
});
}, 500);
// 오늘 하루 그만 보기 체크
$("#popCheck_<?php echo $POP['uid']?>").tap(function(){
var nowcookie = getCookie('popview');
window.history.back();
setCookie('popview', '[<?php echo $POP['uid']?>]' + nowcookie , 1);
});
})
</script>

View File

@@ -0,0 +1 @@
모바일 팝업형