From 989e5d6fdde35c62789440a288056f31c79fb635 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 14 Feb 2014 13:37:05 +0900 Subject: [PATCH] =?UTF-8?q?faq=20=EB=82=B4=EC=9A=A9=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=ED=8C=9D=EC=97=85=EA=B4=80=EB=A6=AC=20=EA=B7=B8=EB=88=84?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/admin.menu500.shop_2of2.php | 2 - adm/shop_admin/contentform.php | 159 ------------------------- adm/shop_admin/contentformupdate.php | 67 ----------- adm/shop_admin/contentlist.php | 72 ----------- adm/shop_admin/faqform.php | 99 --------------- adm/shop_admin/faqformupdate.php | 43 ------- adm/shop_admin/faqlist.php | 95 --------------- adm/shop_admin/faqmasterform.php | 133 --------------------- adm/shop_admin/faqmasterformupdate.php | 61 ---------- adm/shop_admin/faqmasterlist.php | 86 ------------- adm/shop_admin/newwinform.php | 147 ----------------------- adm/shop_admin/newwinformupdate.php | 51 -------- adm/shop_admin/newwinlist.php | 92 -------------- css/default.css | 4 +- head.php | 2 +- install/gnuboard5shop.sql | 74 ------------ install/install_db.php | 14 --- lib/common.lib.php | 8 ++ lib/shop.lib.php | 9 -- shop/content.php | 89 -------------- shop/faq.php | 91 -------------- shop/newwin.inc.php | 48 -------- shop/shop.head.php | 5 +- shop/shop.tail.php | 6 +- 24 files changed, 16 insertions(+), 1441 deletions(-) delete mode 100644 adm/shop_admin/contentform.php delete mode 100644 adm/shop_admin/contentformupdate.php delete mode 100644 adm/shop_admin/contentlist.php delete mode 100644 adm/shop_admin/faqform.php delete mode 100644 adm/shop_admin/faqformupdate.php delete mode 100644 adm/shop_admin/faqlist.php delete mode 100644 adm/shop_admin/faqmasterform.php delete mode 100644 adm/shop_admin/faqmasterformupdate.php delete mode 100644 adm/shop_admin/faqmasterlist.php delete mode 100644 adm/shop_admin/newwinform.php delete mode 100644 adm/shop_admin/newwinformupdate.php delete mode 100644 adm/shop_admin/newwinlist.php delete mode 100644 shop/content.php delete mode 100644 shop/faq.php delete mode 100644 shop/newwin.inc.php diff --git a/adm/admin.menu500.shop_2of2.php b/adm/admin.menu500.shop_2of2.php index 9a037f095..6c5f672b3 100644 --- a/adm/admin.menu500.shop_2of2.php +++ b/adm/admin.menu500.shop_2of2.php @@ -8,8 +8,6 @@ $menu['menu500'] = array ( array('500120', '주문내역출력', G5_ADMIN_URL.'/shop_admin/orderprint.php', 'sst_print_order', 1), array('500300', '이벤트관리', G5_ADMIN_URL.'/shop_admin/itemevent.php', 'scf_event'), array('500310', '이벤트일괄처리', G5_ADMIN_URL.'/shop_admin/itemeventlist.php', 'scf_event_mng'), - array('500400', '내용관리', G5_ADMIN_URL.'/shop_admin/contentlist.php', 'scf_contents', 1), - array('500410', 'FAQ관리', G5_ADMIN_URL.'/shop_admin/faqmasterlist.php', 'scf_faq', 1), array('500500', '배너관리', G5_ADMIN_URL.'/shop_admin/bannerlist.php', 'scf_banner', 1), array('500510', '팝업레이어관리', G5_ADMIN_URL.'/shop_admin/newwinlist.php', 'scf_poplayer', 1), array('500140', '보관함현황', G5_ADMIN_URL.'/shop_admin/wishlist.php', 'sst_wish'), diff --git a/adm/shop_admin/contentform.php b/adm/shop_admin/contentform.php deleted file mode 100644 index 03a6e3db0..000000000 --- a/adm/shop_admin/contentform.php +++ /dev/null @@ -1,159 +0,0 @@ - - -
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
목록
- - class="required frm_input" size="20" maxlength="20"> - 내용확인 -
내용
- - -
- - -
- - 750) - $width = 750; - else - $width = $size[0]; - - echo ' '; - $himg_str = ''; - } - if ($himg_str) { - echo ''; - } - ?> -
- - 750) - $width = 750; - else - $width = $size[0]; - - echo ' '; - $timg_str = ''; - } - if ($timg_str) { - echo ''; - } - ?> -
-
- -
- - 목록 -
- -
- - - - diff --git a/adm/shop_admin/contentformupdate.php b/adm/shop_admin/contentformupdate.php deleted file mode 100644 index 0b23d2ddf..000000000 --- a/adm/shop_admin/contentformupdate.php +++ /dev/null @@ -1,67 +0,0 @@ - diff --git a/adm/shop_admin/contentlist.php b/adm/shop_admin/contentlist.php deleted file mode 100644 index 08fa00968..000000000 --- a/adm/shop_admin/contentlist.php +++ /dev/null @@ -1,72 +0,0 @@ - - -
- 1) {?>처음으로 - 전체 내용 -
- -
- 내용 추가 -
- -
- - - - - - - - - - - - - - - - - '; - } - ?> - -
목록
ID제목관리
- 보기 - 수정 - 삭제 -
자료가 한건도 없습니다.
-
- - - - diff --git a/adm/shop_admin/faqform.php b/adm/shop_admin/faqform.php deleted file mode 100644 index eb613cba9..000000000 --- a/adm/shop_admin/faqform.php +++ /dev/null @@ -1,99 +0,0 @@ - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - -
- - - 내용보기 -
질문
답변
-
- -
- - 목록 -
- -
- - - - diff --git a/adm/shop_admin/faqformupdate.php b/adm/shop_admin/faqformupdate.php deleted file mode 100644 index 8c70da4f2..000000000 --- a/adm/shop_admin/faqformupdate.php +++ /dev/null @@ -1,43 +0,0 @@ - diff --git a/adm/shop_admin/faqlist.php b/adm/shop_admin/faqlist.php deleted file mode 100644 index 133cbb0fe..000000000 --- a/adm/shop_admin/faqlist.php +++ /dev/null @@ -1,95 +0,0 @@ - - -
- 등록된 FAQ 상세내용 건 -
- -
-
    -
  1. FAQ는 무제한으로 등록할 수 있습니다
  2. -
  3. FAQ 상세내용 추가를 눌러 자주하는 질문과 답변을 입력합니다.
  4. -
-
- -
- FAQ 상세내용 추가 -
- -
- - - - - - - - - - - - - - - - - - - - - '; - } - ?> - -
목록
번호제목순서관리
- 수정 - 삭제 -
자료가 없습니다.
- -
- -
- FAQ 관리 -
- - - diff --git a/adm/shop_admin/faqmasterform.php b/adm/shop_admin/faqmasterform.php deleted file mode 100644 index 2641b0f26..000000000 --- a/adm/shop_admin/faqmasterform.php +++ /dev/null @@ -1,133 +0,0 @@ - - -
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - 보기 - 상세보기 - -
- - 750) - $width = 750; - else - $width = $size[0]; - - echo ' '; - $himg_str = ''; - } - if ($himg_str) { - echo ''; - } - ?> -
- - 750) - $width = 750; - else - $width = $size[0]; - - echo ''; - $timg_str = ''; - } - if ($timg_str) { - echo ''; - } - ?> -
상단 내용 - -
하단 내용 - -
-
- -
- - 목록 -
- -
- - - - diff --git a/adm/shop_admin/faqmasterformupdate.php b/adm/shop_admin/faqmasterformupdate.php deleted file mode 100644 index ecaa1cc53..000000000 --- a/adm/shop_admin/faqmasterformupdate.php +++ /dev/null @@ -1,61 +0,0 @@ - diff --git a/adm/shop_admin/faqmasterlist.php b/adm/shop_admin/faqmasterlist.php deleted file mode 100644 index 660025de4..000000000 --- a/adm/shop_admin/faqmasterlist.php +++ /dev/null @@ -1,86 +0,0 @@ - - -
- 1) {?>처음으로 - 전체 FAQ -
- -
-
    -
  1. FAQ는 무제한으로 등록할 수 있습니다
  2. -
  3. FAQ추가를 눌러 FAQ Master를 생성합니다. (하나의 FAQ 타이틀 생성 : 자주하시는 질문, 이용안내..등 )
  4. -
  5. 생성한 FAQ Master 의 제목을 눌러 세부 내용을 관리할 수 있습니다.
  6. -
-
- -
- FAQ추가 -
- -
- - - - - - - - - - - - - - - - - - - '; - } - ?> - -
목록
ID제목FAQ수관리
- 보기 - 수정 - 삭제 -
자료가 한건도 없습니다.
-
- - - - diff --git a/adm/shop_admin/newwinform.php b/adm/shop_admin/newwinform.php deleted file mode 100644 index 745f3d0da..000000000 --- a/adm/shop_admin/newwinform.php +++ /dev/null @@ -1,147 +0,0 @@ - - -
- - - -
-

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

-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- - 시간 -
- - " 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/shop_admin/newwinformupdate.php b/adm/shop_admin/newwinformupdate.php deleted file mode 100644 index 63a0a8179..000000000 --- a/adm/shop_admin/newwinformupdate.php +++ /dev/null @@ -1,51 +0,0 @@ - diff --git a/adm/shop_admin/newwinlist.php b/adm/shop_admin/newwinlist.php deleted file mode 100644 index 85fbcda8b..000000000 --- a/adm/shop_admin/newwinlist.php +++ /dev/null @@ -1,92 +0,0 @@ - - -
전체
- -
- 새창관리추가 -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - ?> - -
목록
번호제목접속기기시작일시종료일시시간LeftTopWidthHeight관리
시간pxpxpxpx - 수정 - 삭제 -
자료가 한건도 없습니다.
-
- - - diff --git a/css/default.css b/css/default.css index 9a9b550ca..c5d527b7f 100644 --- a/css/default.css +++ b/css/default.css @@ -7,13 +7,13 @@ body {margin:0;padding:0;font-size:0.75em;font-family:dotum} html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0} h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:dotum} article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block} - + #hd ul, nav ul, #ft ul {margin:0;padding:0;list-style:none} legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden} label, input, button, select, img {vertical-align:middle} input, button {margin:0;padding:0;font-family:dotum;font-size:1em} button {cursor:pointer} - + textarea, select {font-family:dotum;font-size:1em} select {margin:0} p {margin:0;padding:0;word-break:break-all} diff --git a/head.php b/head.php index 1bb7a7cc2..d07adfecf 100644 --- a/head.php +++ b/head.php @@ -92,7 +92,7 @@ if (G5_IS_MOBILE) {
  • 회원가입
  • 로그인
  • - +
  • 1:1문의
  • 접속자
  • 새글
  • diff --git a/install/gnuboard5shop.sql b/install/gnuboard5shop.sql index eb2ca00ea..c3c4db78e 100644 --- a/install/gnuboard5shop.sql +++ b/install/gnuboard5shop.sql @@ -112,24 +112,6 @@ CREATE TABLE IF NOT EXISTS `g5_shop_category` ( -- -------------------------------------------------------- --- --- Table structure for table `g5_shop_content` --- - -DROP TABLE IF EXISTS `g5_shop_content`; -CREATE TABLE IF NOT EXISTS `g5_shop_content` ( - `co_id` varchar(20) NOT NULL DEFAULT '', - `co_html` tinyint(4) NOT NULL DEFAULT '0', - `co_subject` varchar(255) NOT NULL DEFAULT '', - `co_content` longtext NOT NULL, - `co_hit` int(11) NOT NULL DEFAULT '0', - `co_include_head` varchar(255) NOT NULL, - `co_include_tail` varchar(255) NOT NULL, - PRIMARY KEY (`co_id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - -- -- Table structure for table `g5_shop_coupon` -- @@ -363,39 +345,6 @@ CREATE TABLE IF NOT EXISTS `g5_shop_event_item` ( -- -------------------------------------------------------- --- --- Table structure for table `g5_shop_faq` --- - -DROP TABLE IF EXISTS `g5_shop_faq`; -CREATE TABLE IF NOT EXISTS `g5_shop_faq` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_id` int(11) NOT NULL DEFAULT '0', - `fa_subject` text NOT NULL, - `fa_content` text NOT NULL, - `fa_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fa_id`), - KEY `fm_id` (`fm_id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Table structure for table `g5_shop_faq_master` --- - -DROP TABLE IF EXISTS `g5_shop_faq_master`; -CREATE TABLE IF NOT EXISTS `g5_shop_faq_master` ( - `fm_id` int(11) NOT NULL AUTO_INCREMENT, - `fm_subject` varchar(255) NOT NULL DEFAULT '', - `fm_head_html` text NOT NULL, - `fm_tail_html` text NOT NULL, - `fm_order` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`fm_id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - -- -- Table structure for table `g5_shop_item` -- @@ -575,29 +524,6 @@ CREATE TABLE IF NOT EXISTS `g5_shop_item_relation` ( -- -------------------------------------------------------- --- --- Table structure for table `g5_shop_new_win` --- - -DROP TABLE IF EXISTS `g5_shop_new_win`; -CREATE TABLE IF NOT EXISTS `g5_shop_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; - --- -------------------------------------------------------- - -- -- Table structure for table `g5_shop_order` -- diff --git a/install/install_db.php b/install/install_db.php index 15ca8d773..e653e771c 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -204,14 +204,6 @@ if($g5_shop_install) { $mimg_width = 320; $mimg_height = 320; - // 내용관리 생성 - @mysql_query(" insert into `{$g5_shop_prefix}content` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '

    회사소개에 대한 내용을 입력하십시오.

    ' ") or die(mysql_error() . "

    " . $sql); - @mysql_query(" insert into `{$g5_shop_prefix}content` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 처리방침', co_content= '

    개인정보 처리방침에 대한 내용을 입력하십시오.

    ' ") or die(mysql_error() . "

    " . $sql); - @mysql_query(" insert into `{$g5_shop_prefix}content` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '

    서비스 이용약관에 대한 내용을 입력하십시오.

    ' ") or die(mysql_error() . "

    " . $sql); - - // FAQ Master - @mysql_query(" insert into `{$g5_shop_prefix}faq_master` set fm_id = '1', fm_subject = '자주하시는 질문' ") or die(mysql_error() . "

    " . $sql); - // default 설정 (쇼핑몰 설정) $sql = " insert into `{$g5_shop_prefix}default` set de_admin_company_name = '회사명', @@ -444,9 +436,7 @@ if($g5_shop_install) { $data_path.'/banner', $data_path.'/category', $data_path.'/common', - $data_path.'/content', $data_path.'/event', - $data_path.'/faq', $data_path.'/item' ); @@ -509,17 +499,13 @@ if($g5_shop_install) { fwrite($f, "\$g5['g5_shop_banner_table'] = G5_SHOP_TABLE_PREFIX.'banner'; // 배너 테이블\n"); fwrite($f, "\$g5['g5_shop_cart_table'] = G5_SHOP_TABLE_PREFIX.'cart'; // 장바구니 테이블\n"); fwrite($f, "\$g5['g5_shop_category_table'] = G5_SHOP_TABLE_PREFIX.'category'; // 상품분류 테이블\n"); - fwrite($f, "\$g5['g5_shop_content_table'] = G5_SHOP_TABLE_PREFIX.'content'; // 내용(컨텐츠)정보 테이블\n"); fwrite($f, "\$g5['g5_shop_event_table'] = G5_SHOP_TABLE_PREFIX.'event'; // 이벤트 테이블\n"); fwrite($f, "\$g5['g5_shop_event_item_table'] = G5_SHOP_TABLE_PREFIX.'event_item'; // 상품, 이벤트 연결 테이블\n"); - fwrite($f, "\$g5['g5_shop_faq_table'] = G5_SHOP_TABLE_PREFIX.'faq'; // 자주하시는 질문 테이블\n"); - fwrite($f, "\$g5['g5_shop_faq_master_table'] = G5_SHOP_TABLE_PREFIX.'faq_master'; // 자주하시는 질문 마스터 테이블\n"); fwrite($f, "\$g5['g5_shop_item_table'] = G5_SHOP_TABLE_PREFIX.'item'; // 상품 테이블\n"); fwrite($f, "\$g5['g5_shop_item_option_table'] = G5_SHOP_TABLE_PREFIX.'item_option'; // 상품옵션 테이블\n"); fwrite($f, "\$g5['g5_shop_item_use_table'] = G5_SHOP_TABLE_PREFIX.'item_use'; // 상품 사용후기 테이블\n"); fwrite($f, "\$g5['g5_shop_item_qa_table'] = G5_SHOP_TABLE_PREFIX.'item_qa'; // 상품 질문답변 테이블\n"); fwrite($f, "\$g5['g5_shop_item_relation_table'] = G5_SHOP_TABLE_PREFIX.'item_relation'; // 관련 상품 테이블\n"); - fwrite($f, "\$g5['g5_shop_new_win_table'] = G5_SHOP_TABLE_PREFIX.'new_win'; // 새창 테이블\n"); fwrite($f, "\$g5['g5_shop_order_table'] = G5_SHOP_TABLE_PREFIX.'order'; // 주문서 테이블\n"); fwrite($f, "\$g5['g5_shop_order_delete_table'] = G5_SHOP_TABLE_PREFIX.'order_delete'; // 주문서 삭제 테이블\n"); fwrite($f, "\$g5['g5_shop_wish_table'] = G5_SHOP_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블\n"); diff --git a/lib/common.lib.php b/lib/common.lib.php index a46595028..be639b367 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2550,4 +2550,12 @@ function check_input_vars() } } } + +// HTML 특수문자 변환 htmlspecialchars +function htmlspecialchars2($str) +{ + $trans = array("\"" => """, "'" => "'", "<"=>"<", ">"=>">"); + $str = strtr($str, $trans); + return $str; +} ?> \ No newline at end of file diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 32359184e..fbf99a017 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -625,15 +625,6 @@ function get_point($amount, $point) } -// HTML 특수문자 변환 htmlspecialchars -function htmlspecialchars2($str) -{ - $trans = array("\"" => """, "'" => "'", "<"=>"<", ">"=>">"); - $str = strtr($str, $trans); - return $str; -} - - // 상품이미지 업로드 function it_img_upload($srcfile, $filename, $dir) { diff --git a/shop/content.php b/shop/content.php deleted file mode 100644 index c61975342..000000000 --- a/shop/content.php +++ /dev/null @@ -1,89 +0,0 @@ -내용 수정'; -?> - - -'; -?> - -

    -
    -

    -
    - -
    - -
    - -
    - -'; - -if ($is_admin) - echo '
    내용 수정
    '; -?> - - - diff --git a/shop/faq.php b/shop/faq.php deleted file mode 100644 index c64c1e415..000000000 --- a/shop/faq.php +++ /dev/null @@ -1,91 +0,0 @@ - - -FAQ 수정'; -?> - - -'; - -// 상단 HTML -echo '
    '.stripslashes($fm['fm_head_html']).'
    '; -?> - -
    - -
    -

    목차

    -
      - -
    1. - 1) echo '
    '; - ?> - - -
    -

    내용

    -
      - -
    1. -

      -

      - -

      - -
    2. - 1) echo '
    '; - - if ($i == 1) echo '

    등록된 FAQ가 없습니다.
    FAQ를 새로 등록하시려면 FAQ관리 메뉴를 이용하십시오.

    '; - ?> -
    - -'.stripslashes($fm['fm_tail_html']).''; - -$timg = G5_DATA_PATH.'/faq/'.$fm_id.'_t'; -if (file_exists($timg)) - echo '
    '; -?> - - -FAQ 수정'; - -include_once('./_tail.php'); -?> diff --git a/shop/newwin.inc.php b/shop/newwin.inc.php deleted file mode 100644 index 976dbb7ab..000000000 --- a/shop/newwin.inc.php +++ /dev/null @@ -1,48 +0,0 @@ - - - -
    -
    - -
    - -
    -팝업레이어 알림이 없습니다.'; -?> - - - \ No newline at end of file diff --git a/shop/shop.head.php b/shop/shop.head.php index f4115507c..9ed2dddf8 100644 --- a/shop/shop.head.php +++ b/shop/shop.head.php @@ -19,7 +19,7 @@ include_once(G5_LIB_PATH.'/latest.lib.php');

    팝업레이어 알림

    - +
    @@ -61,7 +61,7 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
    -

    회원메뉴 및 FAQ

    +

    회원메뉴