diff --git a/adm/shop_admin/categoryform.php b/adm/shop_admin/categoryform.php index d71239c2a..f3426c389 100644 --- a/adm/shop_admin/categoryform.php +++ b/adm/shop_admin/categoryform.php @@ -71,6 +71,17 @@ else if ($w == "u") $ca['ca_name'] = get_text($ca['ca_name']); } +if (!isset($ca['ca_mobile_skin'])) { + sql_query(" ALTER TABLE `{$g4['shop_category_table']}` + ADD `ca_mobile_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `ca_skin`, + ADD `ca_mobile_img_width` INT(11) NOT NULL DEFAULT '0' AFTER `ca_list_row`, + ADD `ca_mobile_img_height` INT(11) NOT NULL DEFAULT '0' AFTER `ca_mobile_img_width`, + ADD `ca_mobile_list_mod` INT(11) NOT NULL DEFAULT '0' AFTER `ca_mobile_img_height`, + ADD `ca_mobile_list_row` INT(11) NOT NULL DEFAULT '0' AFTER `ca_mobile_list_mod`, + ADD `ca_mobile_head_html` TEXT NOT NULL AFTER `ca_tail_html`, + ADD `ca_mobile_tail_html` TEXT NOT NULL AFTER `ca_mobile_head_html` ", false); +} + $qstr = 'page='.$page.'&sort1='.$sort1.'&sort2='.$sort2; $g4['title'] = $html_title; @@ -142,6 +153,15 @@ $pg_anchor .= ''; + + + + + + + @@ -170,6 +190,34 @@ $pg_anchor .= ''; ' id="ca_list_row" required class="required frm_input" size="3"> 줄 + + + + + 픽셀 + + + + + + + 픽셀 + + + + + + + 개 + + + + + + + ' id="ca_mobile_list_row" required class="required frm_input" size="3"> 줄 + + @@ -313,6 +361,20 @@ $pg_anchor .= ''; + + 모바일 상단내용 + + + + + + + 모바일 하단내용 + + + + + @@ -352,6 +414,8 @@ function fcategoryformcheck(f) { + + if (f.w.value == "") { if (f.codedup.value == '1') { diff --git a/adm/shop_admin/categoryformupdate.php b/adm/shop_admin/categoryformupdate.php index 79cd38e23..b870777fd 100644 --- a/adm/shop_admin/categoryformupdate.php +++ b/adm/shop_admin/categoryformupdate.php @@ -55,26 +55,31 @@ if ($ca_image0_del) @unlink("{$g4['category_path']}/{$ca_id}_0"); if ($ca_himg_del) @unlink("{$g4['category_path']}/{$ca_id}_h"); if ($ca_timg_del) @unlink("{$g4['category_path']}/{$ca_id}_t"); -$sql_common = " ca_skin = '$ca_skin', - ca_opt1_subject = '$ca_opt1_subject', - ca_opt2_subject = '$ca_opt2_subject', - ca_opt3_subject = '$ca_opt3_subject', - ca_opt4_subject = '$ca_opt4_subject', - ca_opt5_subject = '$ca_opt5_subject', - ca_opt6_subject = '$ca_opt6_subject', - ca_img_width = '$ca_img_width', - ca_img_height = '$ca_img_height', - ca_list_mod = '$ca_list_mod', - ca_list_row = '$ca_list_row', - ca_sell_email = '$ca_sell_email', - ca_use = '$ca_use', - ca_stock_qty = '$ca_stock_qty', - ca_explan_html = '$ca_explan_html', - ca_head_html = '$ca_head_html', - ca_tail_html = '$ca_tail_html', - ca_include_head = '$ca_include_head', - ca_include_tail = '$ca_include_tail', - ca_mb_id = '$ca_mb_id' "; +$sql_common = " ca_skin = '$ca_skin', + ca_mobile_skin = '$ca_mobile_skin', + ca_opt1_subject = '$ca_opt1_subject', + ca_opt2_subject = '$ca_opt2_subject', + ca_opt3_subject = '$ca_opt3_subject', + ca_opt4_subject = '$ca_opt4_subject', + ca_opt5_subject = '$ca_opt5_subject', + ca_opt6_subject = '$ca_opt6_subject', + ca_img_width = '$ca_img_width', + ca_img_height = '$ca_img_height', + ca_list_mod = '$ca_list_mod', + ca_list_row = '$ca_list_row', + ca_mobile_img_width = '$ca_mobile_img_width', + ca_mobile_img_height = '$ca_mobile_img_height', + ca_mobile_list_mod = '$ca_mobile_list_mod', + ca_mobile_list_row = '$ca_mobile_list_row', + ca_sell_email = '$ca_sell_email', + ca_use = '$ca_use', + ca_stock_qty = '$ca_stock_qty', + ca_explan_html = '$ca_explan_html', + ca_head_html = '$ca_head_html', + ca_tail_html = '$ca_tail_html', + ca_include_head = '$ca_include_head', + ca_include_tail = '$ca_include_tail', + ca_mb_id = '$ca_mb_id' "; if ($w == "") diff --git a/adm/shop_admin/configform.php b/adm/shop_admin/configform.php index e47a21487..a572ae6ae 100644 --- a/adm/shop_admin/configform.php +++ b/adm/shop_admin/configform.php @@ -51,6 +51,41 @@ if (!isset($default['de_sms_cont5'])) { ADD `de_sms_use5` TINYINT(4) NOT NULL DEFAULT '0' AFTER `de_sms_use4` ", true); } +if (!isset($default['de_mobile_type1_list_use'])) { + sql_query(" ALTER TABLE `{$g4['shop_default_table']}` + ADD `de_mobile_type1_list_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `de_type5_img_height`, + ADD `de_mobile_type1_list_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `de_mobile_type1_list_use`, + ADD `de_mobile_type1_list_row` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type1_list_skin`, + ADD `de_mobile_type1_list_mod` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type1_list_row`, + ADD `de_mobile_type1_img_width` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type1_list_mod`, + ADD `de_mobile_type1_img_height` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type1_img_width`, + ADD `de_mobile_type2_list_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `de_mobile_type1_img_height`, + ADD `de_mobile_type2_list_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `de_mobile_type2_list_use`, + ADD `de_mobile_type2_list_row` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type2_list_skin`, + ADD `de_mobile_type2_list_mod` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type2_list_row`, + ADD `de_mobile_type2_img_width` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type2_list_mod`, + ADD `de_mobile_type2_img_height` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type2_img_width`, + ADD `de_mobile_type3_list_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `de_mobile_type2_img_height`, + ADD `de_mobile_type3_list_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `de_mobile_type3_list_use`, + ADD `de_mobile_type3_list_row` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type3_list_skin`, + ADD `de_mobile_type3_list_mod` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type3_list_row`, + ADD `de_mobile_type3_img_width` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type3_list_mod`, + ADD `de_mobile_type3_img_height` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type3_img_width`, + ADD `de_mobile_type4_list_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `de_mobile_type3_img_height`, + ADD `de_mobile_type4_list_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `de_mobile_type4_list_use`, + ADD `de_mobile_type4_list_row` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type4_list_skin`, + ADD `de_mobile_type4_list_mod` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type4_list_row`, + ADD `de_mobile_type4_img_width` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type4_list_mod`, + ADD `de_mobile_type4_img_height` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type4_img_width`, + ADD `de_mobile_type5_list_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `de_mobile_type4_img_height`, + ADD `de_mobile_type5_list_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `de_mobile_type5_list_use`, + ADD `de_mobile_type5_list_row` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type5_list_skin`, + ADD `de_mobile_type5_list_mod` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type5_list_row`, + ADD `de_mobile_type5_img_width` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type5_list_mod`, + ADD `de_mobile_type5_img_height` INT(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type5_img_width` + ", true); +} + if (!$default['de_icode_server_ip']) $default['de_icode_server_ip'] = '211.172.232.124'; if (!$default['de_icode_server_port']) $default['de_icode_server_port'] = '7295'; @@ -72,6 +107,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php'); $pg_anchor = '