diff --git a/adm/admin.menu100.php b/adm/admin.menu100.php
index 822c068fd..4d657b4c1 100644
--- a/adm/admin.menu100.php
+++ b/adm/admin.menu100.php
@@ -4,6 +4,7 @@ $menu['menu100'] = array (
array('', '기본환경설정', G5_ADMIN_URL.'/config_form.php', 'cf_basic'),
array('', '관리권한설정', G5_ADMIN_URL.'/auth_list.php', 'cf_auth'),
array('100300', '메일 테스트', G5_ADMIN_URL.'/sendmail_test.php', 'cf_mailtest'),
+ array('100310', '팝업레이어관리', G5_ADMIN_URL.'/newwinlist.php', 'scf_poplayer', 1),
//array('100400', '버전정보', G5_ADMIN_URL.'/version.php', 'cf_version'),
array('100800', '세션파일 일괄삭제',G5_ADMIN_URL.'/session_file_delete.php', 'cf_session', 1),
array('100900', '캐시파일 일괄삭제',G5_ADMIN_URL.'/cache_file_delete.php', 'cf_cache', 1),
diff --git a/adm/newwinform.php b/adm/newwinform.php
new file mode 100644
index 000000000..9af03c821
--- /dev/null
+++ b/adm/newwinform.php
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
diff --git a/adm/newwinformupdate.php b/adm/newwinformupdate.php
new file mode 100644
index 000000000..a7286ad2f
--- /dev/null
+++ b/adm/newwinformupdate.php
@@ -0,0 +1,51 @@
+
diff --git a/adm/newwinlist.php b/adm/newwinlist.php
new file mode 100644
index 000000000..4f51abe70
--- /dev/null
+++ b/adm/newwinlist.php
@@ -0,0 +1,118 @@
+/data/dbconfig.php 파일에 $g5[\'new_win_table\'] = G5_TABLE_PREFIX.\'new_win\'; 를 추가해 주세요.');
+}
+//내용(컨텐츠)정보 테이블이 있는지 검사한다.
+if(!sql_query(" DESCRIBE {$g5['new_win_table']} ", false)) {
+ if(sql_query(" DESCRIBE {$g5['g5_shop_new_win_table']} ", false)) {
+ sql_query(" ALTER TABLE {$g5['g5_shop_new_win_table']} RENAME TO `{$g5['new_win_table']}` ;", false);
+ } else {
+ $query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['new_win_table']}` (
+ `nw_id` int(11) NOT NULL AUTO_INCREMENT,
+ `nw_device` varchar(10) NOT NULL DEFAULT 'both',
+ `nw_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `nw_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `nw_disable_hours` int(11) NOT NULL DEFAULT '0',
+ `nw_left` int(11) NOT NULL DEFAULT '0',
+ `nw_top` int(11) NOT NULL DEFAULT '0',
+ `nw_height` int(11) NOT NULL DEFAULT '0',
+ `nw_width` int(11) NOT NULL DEFAULT '0',
+ `nw_subject` text NOT NULL,
+ `nw_content` text NOT NULL,
+ `nw_content_html` tinyint(4) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`nw_id`)
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
+ }
+}
+
+$g5['title'] = '팝업레이어 관리';
+include_once (G5_ADMIN_PATH.'/admin.head.php');
+
+$sql_common = " from {$g5['new_win_table']} ";
+
+// 테이블의 전체 레코드수만 얻음
+$sql = " select count(*) as cnt " . $sql_common;
+$row = sql_fetch($sql);
+$total_count = $row['cnt'];
+
+$sql = "select * $sql_common order by nw_id desc ";
+$result = sql_query($sql);
+?>
+
+전체 건
+
+
+
+
+
+ 목록
+
+
+ | 번호 |
+ 제목 |
+ 접속기기 |
+ 시작일시 |
+ 종료일시 |
+ 시간 |
+ Left |
+ Top |
+ Width |
+ Height |
+ 관리 |
+
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+ 시간 |
+ px |
+ px |
+ px |
+ px |
+
+ 수정
+ 삭제
+ |
+
+ 자료가 한건도 없습니다. | ';
+ }
+ ?>
+
+
+
+
+
+
diff --git a/bbs/newwin.inc.php b/bbs/newwin.inc.php
new file mode 100644
index 000000000..98775d024
--- /dev/null
+++ b/bbs/newwin.inc.php
@@ -0,0 +1,48 @@
+
+
+
+
+팝업레이어 알림이 없습니다.';
+?>
+
+
+
\ No newline at end of file
diff --git a/css/default.css b/css/default.css
index e6194f0b8..6966da198 100644
--- a/css/default.css
+++ b/css/default.css
@@ -28,6 +28,13 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
#hd_wrapper {position:relative;margin:0 auto;padding:26px 0;width:970px;zoom:1}
#hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""}
+#hd_pop {z-index:1000;position:relative;margin:0 auto;width:1000px;height:0}
+#hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
+.hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff}
+.hd_pops_con {margin:0 0 30px}
+.hd_pops_footer {position:absolute;bottom:0;left:0;padding:10px 0;width:100%;background:#000;color:#fff;text-align:right}
+.hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff}
+
#logo {float:left;padding:5px 0 0}
/* 전체 검색 */
diff --git a/head.php b/head.php
index 3e1e9e58f..547fd00ec 100644
--- a/head.php
+++ b/head.php
@@ -29,6 +29,13 @@ if (G5_IS_MOBILE) {
+
+
+
팝업레이어 알림
+
+
+
+
diff --git a/install/gnuboard5.sql b/install/gnuboard5.sql
index ea1d8a5f6..e246d27ce 100644
--- a/install/gnuboard5.sql
+++ b/install/gnuboard5.sql
@@ -835,3 +835,26 @@ CREATE TABLE IF NOT EXISTS `g5_faq_master` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
+
+--
+-- Table structure for table `g5_new_win`
+--
+
+DROP TABLE IF EXISTS `g5_new_win`;
+CREATE TABLE IF NOT EXISTS `g5_new_win` (
+ `nw_id` int(11) NOT NULL AUTO_INCREMENT,
+ `nw_device` varchar(10) NOT NULL DEFAULT 'both',
+ `nw_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `nw_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `nw_disable_hours` int(11) NOT NULL DEFAULT '0',
+ `nw_left` int(11) NOT NULL DEFAULT '0',
+ `nw_top` int(11) NOT NULL DEFAULT '0',
+ `nw_height` int(11) NOT NULL DEFAULT '0',
+ `nw_width` int(11) NOT NULL DEFAULT '0',
+ `nw_subject` text NOT NULL,
+ `nw_content` text NOT NULL,
+ `nw_content_html` tinyint(4) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`nw_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
diff --git a/install/install_db.php b/install/install_db.php
index bb95fd13b..b830c29e8 100644
--- a/install/install_db.php
+++ b/install/install_db.php
@@ -196,6 +196,8 @@ $dir_arr = array (
$data_path.'/log',
$data_path.'/member',
$data_path.'/session',
+ $data_path.'/content',
+ $data_path.'/faq',
$data_path.'/tmp'
);
@@ -251,6 +253,7 @@ fwrite($f, "\$g5['qa_content_table'] = G5_TABLE_PREFIX.'qa_content'; // 1:1문
fwrite($f, "\$g5['content_table'] = G5_TABLE_PREFIX.'content'; // 내용(컨텐츠)정보 테이블\n");
fwrite($f, "\$g5['faq_table'] = G5_TABLE_PREFIX.'faq'; // 자주하시는 질문 테이블\n");
fwrite($f, "\$g5['faq_master_table'] = G5_TABLE_PREFIX.'faq_master'; // 자주하시는 질문 마스터 테이블\n");
+fwrite($f, "\$g5['new_win_table'] = G5_SHOP_TABLE_PREFIX.'new_win'; // 새창 테이블\n");
fwrite($f, "?>");
fclose($f);