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/install/shop.sql b/install/shop.sql
index 942a3f0b7..8a5009888 100644
--- a/install/shop.sql
+++ b/install/shop.sql
@@ -89,6 +89,7 @@ CREATE TABLE IF NOT EXISTS `shop_category` (
`ca_id` varchar(10) NOT NULL DEFAULT '0',
`ca_name` varchar(255) NOT NULL DEFAULT '',
`ca_skin` varchar(255) NOT NULL DEFAULT '',
+ `ca_mobile_skin` varchar(255) NOT NULL DEFAULT '',
`ca_opt1_subject` varchar(255) NOT NULL DEFAULT '',
`ca_opt2_subject` varchar(255) NOT NULL DEFAULT '',
`ca_opt3_subject` varchar(255) NOT NULL DEFAULT '',
@@ -97,14 +98,20 @@ CREATE TABLE IF NOT EXISTS `shop_category` (
`ca_opt6_subject` varchar(255) NOT NULL DEFAULT '',
`ca_img_width` int(11) NOT NULL DEFAULT '0',
`ca_img_height` int(11) NOT NULL DEFAULT '0',
+ `ca_mobile_img_width` int(11) NOT NULL DEFAULT '0',
+ `ca_mobile_img_height` int(11) NOT NULL DEFAULT '0',
`ca_sell_email` varchar(255) NOT NULL DEFAULT '',
`ca_use` tinyint(4) NOT NULL DEFAULT '0',
`ca_stock_qty` int(11) NOT NULL DEFAULT '0',
`ca_explan_html` tinyint(4) NOT NULL DEFAULT '0',
`ca_head_html` text NOT NULL,
`ca_tail_html` text NOT NULL,
+ `ca_mobile_head_html` text NOT NULL,
+ `ca_mobile_tail_html` text NOT NULL,
`ca_list_mod` int(11) NOT NULL DEFAULT '0',
`ca_list_row` int(11) NOT NULL DEFAULT '0',
+ `ca_mobile_list_mod` int(11) NOT NULL DEFAULT '0',
+ `ca_mobile_list_row` int(11) NOT NULL DEFAULT '0',
`ca_include_head` varchar(255) NOT NULL DEFAULT '',
`ca_include_tail` varchar(255) NOT NULL DEFAULT '',
`ca_mb_id` varchar(255) NOT NULL DEFAULT '',