#147 에 따른 상품관리 모바일 설정 추가

This commit is contained in:
chicpro
2013-05-07 17:52:44 +09:00
parent 0b3078e484
commit 68b3fef563
3 changed files with 69 additions and 62 deletions

View File

@ -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 ='<ul class="anchor">
<th scope="row">상품설명</th>
<td> <?php echo editor_html('it_explan', $it['it_explan']); ?></td>
</tr>
<tr>
<th scope="row">모바일 상품설명</th>
<td> <?php echo editor_html('it_mobile_explan', $it['it_mobile_explan']); ?></td>
</tr>
<tr>
<th scope="row"><label for="it_sell_email">판매자 e-mail</label></th>
<td>
@ -943,6 +933,14 @@ $pg_anchor ='<ul class="anchor">
<th scope="row">상품하단내용</th>
<td><?php echo help("상품상세설명 페이지 하단에 출력하는 HTML 내용입니다.", -150); ?><?php echo editor_html('it_tail_html', $it['it_tail_html']); ?></td>
</tr>
<tr>
<th scope="row">모바일 상품상단내용</th>
<td><?php echo help("모바일 상품상세설명 페이지 상단에 출력하는 HTML 내용입니다.", -150); ?><?php echo editor_html('it_mobile_head_html', $it['it_mobile_head_html']); ?></td>
</tr>
<tr>
<th scope="row">모바일 상품하단내용</th>
<td><?php echo help("모바일 상품상세설명 페이지 하단에 출력하는 HTML 내용입니다.", -150); ?><?php echo editor_html('it_mobile_tail_html', $it['it_mobile_tail_html']); ?></td>
</tr>
<?php if ($w == "u") { ?>
<tr>
<th scope="row">입력일시</th>
@ -1032,8 +1030,11 @@ function fitemformcheck(f)
}
<?php echo get_editor_js('it_explan'); ?>
<?php echo get_editor_js('it_mobile_explan'); ?>
<?php echo get_editor_js('it_head_html'); ?>
<?php echo get_editor_js('it_tail_html'); ?>
<?php echo get_editor_js('it_mobile_head_html'); ?>
<?php echo get_editor_js('it_mobile_tail_html'); ?>
return true;
}

View File

@ -235,47 +235,50 @@ sql_query(" delete from {$g4['shop_item_relation_table']} where it_id2 = '$it_id
sql_query(" delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ");
$sql_common = " ca_id = '$ca_id',
ca_id2 = '$ca_id2',
ca_id3 = '$ca_id3',
it_name = '$it_name',
it_gallery = '$it_gallery',
it_maker = '$it_maker',
it_origin = '$it_origin',
it_opt1_subject = '$it_opt1_subject',
it_opt2_subject = '$it_opt2_subject',
it_opt3_subject = '$it_opt3_subject',
it_opt4_subject = '$it_opt4_subject',
it_opt5_subject = '$it_opt5_subject',
it_opt6_subject = '$it_opt6_subject',
it_opt1 = '$it_opt1',
it_opt2 = '$it_opt2',
it_opt3 = '$it_opt3',
it_opt4 = '$it_opt4',
it_opt5 = '$it_opt5',
it_opt6 = '$it_opt6',
it_type1 = '$it_type1',
it_type2 = '$it_type2',
it_type3 = '$it_type3',
it_type4 = '$it_type4',
it_type5 = '$it_type5',
it_basic = '$it_basic',
it_explan = '$it_explan',
it_explan_html = '$it_explan_html',
it_cust_amount = '$it_cust_amount',
it_amount = '$it_amount',
it_amount2 = '$it_amount2',
it_amount3 = '$it_amount3',
it_point = '$it_point',
it_sell_email = '$it_sell_email',
it_use = '$it_use',
it_stock_qty = '$it_stock_qty',
it_head_html = '$it_head_html',
it_tail_html = '$it_tail_html',
it_time = '".G4_TIME_YMDHIS."',
it_ip = '{$_SERVER['REMOTE_ADDR']}',
it_order = '$it_order',
it_tel_inq = '$it_tel_inq'
$sql_common = " ca_id = '$ca_id',
ca_id2 = '$ca_id2',
ca_id3 = '$ca_id3',
it_name = '$it_name',
it_gallery = '$it_gallery',
it_maker = '$it_maker',
it_origin = '$it_origin',
it_opt1_subject = '$it_opt1_subject',
it_opt2_subject = '$it_opt2_subject',
it_opt3_subject = '$it_opt3_subject',
it_opt4_subject = '$it_opt4_subject',
it_opt5_subject = '$it_opt5_subject',
it_opt6_subject = '$it_opt6_subject',
it_opt1 = '$it_opt1',
it_opt2 = '$it_opt2',
it_opt3 = '$it_opt3',
it_opt4 = '$it_opt4',
it_opt5 = '$it_opt5',
it_opt6 = '$it_opt6',
it_type1 = '$it_type1',
it_type2 = '$it_type2',
it_type3 = '$it_type3',
it_type4 = '$it_type4',
it_type5 = '$it_type5',
it_basic = '$it_basic',
it_explan = '$it_explan',
it_explan_html = '$it_explan_html',
it_mobile_explan = '$it_mobile_explan',
it_cust_amount = '$it_cust_amount',
it_amount = '$it_amount',
it_amount2 = '$it_amount2',
it_amount3 = '$it_amount3',
it_point = '$it_point',
it_sell_email = '$it_sell_email',
it_use = '$it_use',
it_stock_qty = '$it_stock_qty',
it_head_html = '$it_head_html',
it_tail_html = '$it_tail_html',
it_mobile_head_html = '$it_mobile_head_html',
it_mobile_tail_html = '$it_mobile_tail_html',
it_time = '".G4_TIME_YMDHIS."',
it_ip = '{$_SERVER['REMOTE_ADDR']}',
it_order = '$it_order',
it_tel_inq = '$it_tel_inq'
";
if ($w == "")

View File

@ -389,6 +389,7 @@ CREATE TABLE IF NOT EXISTS `shop_item` (
`it_type5` tinyint(4) NOT NULL DEFAULT '0',
`it_basic` text NOT NULL,
`it_explan` mediumtext NOT NULL,
`it_mobile_explan` mediumtext NOT NULL,
`it_explan_html` tinyint(4) NOT NULL DEFAULT '0',
`it_cust_amount` int(11) NOT NULL DEFAULT '0',
`it_amount` int(11) NOT NULL DEFAULT '0',
@ -400,6 +401,8 @@ CREATE TABLE IF NOT EXISTS `shop_item` (
`it_stock_qty` int(11) NOT NULL DEFAULT '0',
`it_head_html` text NOT NULL,
`it_tail_html` text NOT NULL,
`it_mobile_head_html` text NOT NULL,
`it_mobile_tail_html` text NOT NULL,
`it_hit` int(11) NOT NULL DEFAULT '0',
`it_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`it_ip` varchar(25) NOT NULL DEFAULT '',