From 68b3fef563a1ff9480d5073bae329e49f894955c Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 7 May 2013 17:52:44 +0900 Subject: [PATCH] =?UTF-8?q?#147=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20?= =?UTF-8?q?=EC=83=81=ED=92=88=EA=B4=80=EB=A6=AC=20=EB=AA=A8=EB=B0=94?= =?UTF-8?q?=EC=9D=BC=20=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemform.php | 43 ++++++++-------- adm/shop_admin/itemformupdate.php | 85 ++++++++++++++++--------------- install/shop.sql | 3 ++ 3 files changed, 69 insertions(+), 62 deletions(-) diff --git a/adm/shop_admin/itemform.php b/adm/shop_admin/itemform.php index cecb2208a..91e12515a 100644 --- a/adm/shop_admin/itemform.php +++ b/adm/shop_admin/itemform.php @@ -4,27 +4,6 @@ include_once('./_common.php'); include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php'); include_once(G4_LIB_PATH.'/iteminfo.lib.php'); -/* -// 상품테이블에 분류 필드 추가 -sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `ca_id2` VARCHAR( 255 ) NOT NULL AFTER `ca_id` ", FALSE); -sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `ca_id3` VARCHAR( 255 ) NOT NULL AFTER `ca_id2` ", FALSE); - -// 사용후기 테이블에 이름, 패스워드 필드 추가 -sql_query(" ALTER TABLE `$g4[shop_item_ps_table]` ADD `is_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE); -sql_query(" ALTER TABLE `$g4[shop_item_ps_table]` ADD `is_password` VARCHAR( 255 ) NOT NULL AFTER `is_name` ", FALSE); - -// 상품문의 테이블에 이름, 패스워드 필드 추가 -sql_query(" ALTER TABLE `$g4[shop_item_qa_table]` ADD `iq_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE); -sql_query(" ALTER TABLE `$g4[shop_item_qa_table]` ADD `iq_password` VARCHAR( 255 ) NOT NULL AFTER `iq_name` ", FALSE); - -// 회원권한별 상품가격 틀리게 적용하는 필드 추가 -// it_amount : 비회원가격 -// it_amount2 : 회원가격 -// it_amount3 : 특별회원가격 -sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `it_amount2` INT NOT NULL AFTER `it_amount` ", FALSE); -sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `it_amount3` INT NOT NULL AFTER `it_amount2` ", FALSE); -*/ - auth_check($auth[$sub_menu], "w"); $html_title = "상품 "; @@ -85,6 +64,13 @@ if (!$it['it_explan_html']) $it['it_explan'] = get_text($it['it_explan'], 1); } +if (!isset($it['it_mobile_explan'])) { + sql_query(" ALTER TABLE `{$g4['shop_item_table']}` + ADD `it_mobile_explan` TEXT NOT NULL AFTER `it_explan`, + ADD `it_mobile_head_html` TEXT NOT NULL AFTER `it_tail_html`, + ADD `it_mobile_tail_html` TEXT NOT NULL AFTER `it_mobile_head_html` ", true); +} + //$qstr1 = 'sel_ca_id='.$sel_ca_id.'&sel_field='.$sel_field.'&search='.$search; //$qstr = $qstr1.'&sort1='.$sort1.'&sort2='.$sort2.'&page='.$page; $qstr = $qstr.'&sca='.$sca.'&page='.$page; @@ -342,6 +328,10 @@ $pg_anchor ='