diff --git a/common/js/common.js b/common/js/common.js index 3eaba799b..307fdb088 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -737,6 +737,23 @@ function zbxe_folder_close(id) { jQuery("#folder_"+id).hide(); } +/** + * 팝업창 대신 전체 화면 iframe을 띄우는 함수 + */ +function openFullScreenIframe(url, target) { + const iframe = document.createElement('iframe'); + const iframe_sequence = String(Date.now()) + Math.round(Math.random() * 1000000); + iframe.setAttribute('id', '_rx_iframe_' + iframe_sequence); + iframe.setAttribute('name', target || ('_rx_iframe_' + iframe_sequence)) + iframe.setAttribute('src', url + '&iframe_sequence=' + iframe_sequence); + iframe.setAttribute('width', '100%'); + iframe.setAttribute('height', '100%'); + iframe.setAttribute('frameborder', '0'); + iframe.setAttribute('scrolling', 'no'); + iframe.setAttribute('style', 'position:fixed; top:0; left:0; width:100%; height:100%; z-index:999999999; background-color: #fff; overflow-y:auto'); + $(document.body).append(iframe); +} + /** * @brief 팝업의 경우 내용에 맞춰 현 윈도우의 크기를 조절해줌 * 팝업의 내용에 맞게 크기를 늘리는 것은... 쉽게 되지는 않음.. ㅡ.ㅜ diff --git a/common/tpl/popup_layout.html b/common/tpl/popup_layout.html index 3d1a8ff77..c6be2e6b4 100644 --- a/common/tpl/popup_layout.html +++ b/common/tpl/popup_layout.html @@ -1,12 +1,33 @@ @version(2) @load('../../modules/admin/tpl/css/admin.bootstrap.css') @load('../../modules/admin/tpl/css/admin.css') +