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 @@ + + +
+ + + +
+

쇼핑몰 초기화면 접속 시 자동으로 뜰 팝업레이어를 설정합니다.

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + 시간 +
+ + " id="nw_begin_chk" onclick="if (this.checked == true) this.form.nw_begin_time.value=this.form.nw_begin_chk.value; else this.form.nw_begin_time.value = this.form.nw_begin_time.defaultValue;"> + +
+ + " id="nw_end_chk" onclick="if (this.checked == true) this.form.nw_end_time.value=this.form.nw_end_chk.value; else this.form.nw_end_time.value = this.form.nw_end_time.defaultValue;"> + +
+ px +
+ px +
+ px +
+ px +
+ +
내용
+
+ +
+ + 목록 +
+
+ + + + 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); +?> + +
전체
+ +
+ 새창관리추가 +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + ?> + +
목록
번호제목접속기기시작일시종료일시시간LeftTopWidthHeight관리
시간pxpxpxpx + 수정 + 삭제 +
자료가 한건도 없습니다.
+
+ + + 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) {
본문 바로가기
+ +
+

팝업레이어 알림

+ +
+ +