#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_CKEDITOR_PATH.'/ckeditor.lib.php');
include_once(G4_LIB_PATH.'/iteminfo.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"); auth_check($auth[$sub_menu], "w");
$html_title = "상품 "; $html_title = "상품 ";
@ -85,6 +64,13 @@ if (!$it['it_explan_html'])
$it['it_explan'] = get_text($it['it_explan'], 1); $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; //$qstr1 = 'sel_ca_id='.$sel_ca_id.'&sel_field='.$sel_field.'&search='.$search;
//$qstr = $qstr1.'&sort1='.$sort1.'&sort2='.$sort2.'&page='.$page; //$qstr = $qstr1.'&sort1='.$sort1.'&sort2='.$sort2.'&page='.$page;
$qstr = $qstr.'&sca='.$sca.'&page='.$page; $qstr = $qstr.'&sca='.$sca.'&page='.$page;
@ -342,6 +328,10 @@ $pg_anchor ='<ul class="anchor">
<th scope="row">상품설명</th> <th scope="row">상품설명</th>
<td> <?php echo editor_html('it_explan', $it['it_explan']); ?></td> <td> <?php echo editor_html('it_explan', $it['it_explan']); ?></td>
</tr> </tr>
<tr>
<th scope="row">모바일 상품설명</th>
<td> <?php echo editor_html('it_mobile_explan', $it['it_mobile_explan']); ?></td>
</tr>
<tr> <tr>
<th scope="row"><label for="it_sell_email">판매자 e-mail</label></th> <th scope="row"><label for="it_sell_email">판매자 e-mail</label></th>
<td> <td>
@ -943,6 +933,14 @@ $pg_anchor ='<ul class="anchor">
<th scope="row">상품하단내용</th> <th scope="row">상품하단내용</th>
<td><?php echo help("상품상세설명 페이지 하단에 출력하는 HTML 내용입니다.", -150); ?><?php echo editor_html('it_tail_html', $it['it_tail_html']); ?></td> <td><?php echo help("상품상세설명 페이지 하단에 출력하는 HTML 내용입니다.", -150); ?><?php echo editor_html('it_tail_html', $it['it_tail_html']); ?></td>
</tr> </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") { ?> <?php if ($w == "u") { ?>
<tr> <tr>
<th scope="row">입력일시</th> <th scope="row">입력일시</th>
@ -1032,8 +1030,11 @@ function fitemformcheck(f)
} }
<?php echo get_editor_js('it_explan'); ?> <?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_head_html'); ?>
<?php echo get_editor_js('it_tail_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; return true;
} }

View File

@ -262,6 +262,7 @@ $sql_common = " ca_id = '$ca_id',
it_basic = '$it_basic', it_basic = '$it_basic',
it_explan = '$it_explan', it_explan = '$it_explan',
it_explan_html = '$it_explan_html', it_explan_html = '$it_explan_html',
it_mobile_explan = '$it_mobile_explan',
it_cust_amount = '$it_cust_amount', it_cust_amount = '$it_cust_amount',
it_amount = '$it_amount', it_amount = '$it_amount',
it_amount2 = '$it_amount2', it_amount2 = '$it_amount2',
@ -272,6 +273,8 @@ $sql_common = " ca_id = '$ca_id',
it_stock_qty = '$it_stock_qty', it_stock_qty = '$it_stock_qty',
it_head_html = '$it_head_html', it_head_html = '$it_head_html',
it_tail_html = '$it_tail_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_time = '".G4_TIME_YMDHIS."',
it_ip = '{$_SERVER['REMOTE_ADDR']}', it_ip = '{$_SERVER['REMOTE_ADDR']}',
it_order = '$it_order', it_order = '$it_order',

View File

@ -389,6 +389,7 @@ CREATE TABLE IF NOT EXISTS `shop_item` (
`it_type5` tinyint(4) NOT NULL DEFAULT '0', `it_type5` tinyint(4) NOT NULL DEFAULT '0',
`it_basic` text NOT NULL, `it_basic` text NOT NULL,
`it_explan` mediumtext NOT NULL, `it_explan` mediumtext NOT NULL,
`it_mobile_explan` mediumtext NOT NULL,
`it_explan_html` tinyint(4) NOT NULL DEFAULT '0', `it_explan_html` tinyint(4) NOT NULL DEFAULT '0',
`it_cust_amount` int(11) NOT NULL DEFAULT '0', `it_cust_amount` int(11) NOT NULL DEFAULT '0',
`it_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_stock_qty` int(11) NOT NULL DEFAULT '0',
`it_head_html` text NOT NULL, `it_head_html` text NOT NULL,
`it_tail_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_hit` int(11) NOT NULL DEFAULT '0',
`it_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `it_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`it_ip` varchar(25) NOT NULL DEFAULT '', `it_ip` varchar(25) NOT NULL DEFAULT '',