diff --git a/adm/admin.menu100.php b/adm/admin.menu100.php index 1347f9567..cc91af050 100644 --- a/adm/admin.menu100.php +++ b/adm/admin.menu100.php @@ -6,7 +6,7 @@ $menu['menu100'] = array ( array('100300', '메일 테스트', G5_ADMIN_URL.'/sendmail_test.php', 'cf_mailtest'), //array('100400', '버전정보', G5_ADMIN_URL.'/version.php', 'cf_version'), array('100800', '세션파일 일괄삭제',G5_ADMIN_URL.'/session_file_delete.php', 'cf_session', 1), - array('100900', '캐쉬파일 일괄삭제',G5_ADMIN_URL.'/cache_file_delete.php', 'cf_cache', 1), + array('100900', '캐시파일 일괄삭제',G5_ADMIN_URL.'/cache_file_delete.php', 'cf_cache', 1), array('100910', '캡챠파일 일괄삭제',G5_ADMIN_URL.'/gcaptcha_file_delete.php', 'cf_captcha', 1), array('100920', '썸네일파일 일괄삭제',G5_ADMIN_URL.'/thumbnail_file_delete.php', 'cf_thumbnail', 1), array('100930', '네이버 신디케이션 핑',G5_SYNDI_URL.'/ping.php', 'cf_syndi_ping', 1), diff --git a/css/admin.css b/css/admin.css index e928a12df..c170a52ff 100644 --- a/css/admin.css +++ b/css/admin.css @@ -9,7 +9,9 @@ h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:dotum} article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block} header ul, nav ul, aside ul, footer ul {margin:0;padding:0;list-style:none} label, input, select, img {vertical-align:middle} -select {margin:0} + +select {margin:0;font-size:1em} + input {margin:0;padding:0;border-radius:0;font-family:dotum} input[type=text], input[type=password], input[type=submit], input[type=image] {-webkit-appearance:none} button {border-radius:0;font-size:1em;-webkit-appearance:none} @@ -18,6 +20,7 @@ hr {display:none} pre {overflow-x:scroll;font-size:1.1em} a {color:#000;text-decoration:none} a:focus, a:hover, a:active {text-decoration:underline} + /* 헤딩 */ h1 {margin-bottom:20px;color:#333;font-size:1.5em;font-family:dotum;letter-spacing:-0.1em} h2 {font-size:1.2em} diff --git a/css/default.css b/css/default.css index ca5f23c8d..2ab28c502 100644 --- a/css/default.css +++ b/css/default.css @@ -9,8 +9,12 @@ h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:dotum} article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block} header ul, nav ul, footer ul {margin:0;padding:0;list-style:none} label, input, select, img {vertical-align:middle} -input {margin:0;padding:0;border-radius:0;font-size:1em;font-family:dotum} -button {border-radius:0;font-size:1em} + +select {font-size:1em} +input {margin:0;padding:0;border-radius:0;font-family:dotum} +input[type=text], input[type=password], input[type=submit], input[type=image] {-webkit-appearance:none} +button {border-radius:0;font-size:1em;-webkit-appearance:none} + p {margin:0;padding:10px 0;line-height:1.7em;word-break:break-all} hr {display:none} pre {overflow-x:scroll;font-size:1.1em} diff --git a/css/mobile_shop.css b/css/mobile_shop.css index af4b37c74..9519d301e 100644 --- a/css/mobile_shop.css +++ b/css/mobile_shop.css @@ -102,51 +102,7 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none} #sct_lst button.sct_lst_gallery span {background-position:-30px 0} #sct_lst button.sct_lst_gallery span.sct_lst_on {background-position:-30px -30px} -/* ##### maintype(nn).inc.php, list.skin.(nn).php 공통 적용 시작 ##### */ -/* 공통 */ -.sct_wrap {margin:0 0 2em;zoom:1} -.sct_wrap:after {display:block;visibility:hidden;clear:both;content:""} -.sct_wrap header {margin:0 0 1.8em;zoom:1} -.sct_wrap header:after {display:block;visibility:hidden;clear:both;content:""} -.sct_wrap h2 {float:left;margin:0 1.8em 0 0;padding:0;line-height:1em} -.sct_wrap h2 a {text-decoration:none} -.sct_wrap_hdesc {float:left;margin:0;padding:0;color:#777;line-height:1em} -.sct {margin:0;padding:0;list-style:none;zoom:1} -.sct:after {display:block;visibility:hidden;clear:both;content:""} -.sct_li {position:relative} -.sct_noitem {padding:100px 0;text-align:center} -.sct_nofile {padding:100px 0;text-align:center} - -/* 상품 목록 스킨 10 */ -.sct_10 {padding:1em 0 0} -.sct_10 .sct_li {display:inline-block;margin:0 0.8em 1em 0;width:230px} -.sct_10 .sct_a {display:block;position:relative;text-decoration:none} -.sct_10 .sct_a:focus, -.sct_10 .sct_a:hover {text-decoration:none} -.sct_10 .sct_img {display:block;margin:0 0 15px} -.sct_10 b {display:block;margin:0 0 0.8em;font-weight:normal} -.sct_10 s {display:block} -.sct_10 .sct_cost {display:block;margin:0 0 1em;font-weight:bold} -.sct_10 .sct_icon {position:absolute;top:10px;left:-5px;margin:0 !important} -.sct_10 .sct_icon img {display:block} -.sct_10 .sct_sns {position:absolute;top:190px;right:20px} - -.sct_11 .sct_li {width:100%;border-bottom:1px solid #e9e9e9} -.sct_11 .sct_a {display:block;position:relative;padding:1em;text-decoration:none;zoom:1} -.sct_11 .sct_a:after {display:block;visibility:hidden;clear:both;content:""} -.sct_11 .sct_a:focus, -.sct_11 .sct_a:hover {text-decoration:none} -.sct_11 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:1.8em;left:2.8em;width:1em;height:1.8em;background:url('../../shop/img/icon_arw_toleft.gif') no-repeat} -.sct_11 .sct_img {float:left;margin:0 1em 0 0} -.sct_11 b {display:block;margin:0 0 1em;font-size:1.2em;letter-spacing:-0.1em} -.sct_11 p {margin:0 0 1em;padding:0;line-height:1.5em} -.sct_11 s {display:block} -.sct_11 .sct_cost {display:block;margin:0 0 0.8em;font-weight:bold} -.sct_11 .sct_icon {position:absolute;bottom:2em;left:-5px;margin:0 !important} -.sct_11 .sct_icon img {display:block} -.sct_11 .sct_sns {position:absolute;top:2em;right:2em} -/* ##### maintype(nn).inc.php, list.skin.(nn).php 공통 적용 끝 ##### */ /* 상품 상세보기 */ #sit {margin:0.5em 0;border-top:1px solid #e9e9e9} diff --git a/head.sub.php b/head.sub.php index 8658e6c50..af116e7bb 100644 --- a/head.sub.php +++ b/head.sub.php @@ -34,7 +34,7 @@ header("Pragma: no-cache"); // HTTP/1.0 '.PHP_EOL; + echo ''.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; } diff --git a/js/shop.mobile.list.js b/js/shop.mobile.list.js new file mode 100644 index 000000000..5d7bd7050 --- /dev/null +++ b/js/shop.mobile.list.js @@ -0,0 +1,62 @@ +(function($) { + $.fn.itemList = function(element, clear) + { + var cfg = { + element: "li.sct_li", + clear: "sct_clear" + }; + + if(typeof element == "object") + cfg = $.extend( cfg, element ); + else { + if(element) + cfg = $.extend( cfg, { element: element } ); + if(clear) + cfg = $.extend( cfg, { clear: clear } ); + } + + var $element = this.find(cfg.element); + var $this = this; + + function item_arrange() + { + var $el = $element.filter(":first"); + var padding = 0; + if($el.data("padding-right") == undefined) { + padding = parseInt($el.css("padding-right")); + $el.data("padding-right", padding); + } + else + padding = $el.data("padding-right"); + + $element.css("padding-left", 0).css("padding-right", padding); + $element.filter("."+cfg.clear).removeClass(cfg.clear); + + var wrap_width = parseInt($this.width()); + var item_width = parseInt($el.outerWidth()); + var line_count = parseInt((wrap_width + padding) / item_width); + + if(line_count == 0) + return; + + var space = parseInt(wrap_width % item_width); + + if((space + padding) < item_width) { + space = wrap_width - ((item_width - padding) * line_count); + var new_padding = parseInt(space / (line_count * 2)); + + if(new_padding > padding) + $element.css("padding-left", new_padding+"px").css("padding-right", new_padding); + } + + $element.filter(":nth-child("+line_count+"n)").css("padding-right", 0); + $element.filter(":nth-child("+line_count+"n+1)").addClass(cfg.clear); + } + + item_arrange(); + + $(window).resize(function() { + item_arrange(); + }); + } +}(jQuery)); \ No newline at end of file diff --git a/mobile/shop/item.php b/mobile/shop/item.php index 8828f8bcf..0b845f8ff 100644 --- a/mobile/shop/item.php +++ b/mobile/shop/item.php @@ -102,11 +102,6 @@ else include_once(G5_MSHOP_SKIN_PATH.'/item.form.skin.php'); ?> - - + + \ No newline at end of file diff --git a/mobile/shop/itemuse.php b/mobile/shop/itemuse.php index c72a9ad8e..84eb8bcdb 100644 --- a/mobile/shop/itemuse.php +++ b/mobile/shop/itemuse.php @@ -2,7 +2,7 @@ include_once('./_common.php'); include_once(G5_LIB_PATH.'/thumbnail.lib.php'); -$itemuse_skin = G5_SHOP_SKIN_PATH.'/itemuse.skin.php'; +$itemuse_skin = G5_MSHOP_SKIN_PATH.'/itemuse.skin.php'; if(!file_exists($itemuse_skin)) { echo str_replace(G5_PATH.'/', '', $itemuse_skin).' 스킨 파일이 존재하지 않습니다.'; diff --git a/mobile/shop/listtype.php b/mobile/shop/listtype.php index 5e68d1b25..63072f17d 100644 --- a/mobile/shop/listtype.php +++ b/mobile/shop/listtype.php @@ -32,7 +32,7 @@ if (!$skin) $skin = 'list.10.skin.php'; // 리스트 유형별로 출력 -$list_file = G5_SHOP_SKIN_PATH.'/'.$skin; +$list_file = G5_MSHOP_SKIN_PATH.'/'.$skin; if (file_exists($list_file)) { // 총몇개 = 한줄에 몇개 * 몇줄 $items = $list_mod * $list_row; diff --git a/mobile/skin/shop/basic/item.form.skin.php b/mobile/skin/shop/basic/item.form.skin.php index b0a6e90bc..b18032b30 100644 --- a/mobile/skin/shop/basic/item.form.skin.php +++ b/mobile/skin/shop/basic/item.form.skin.php @@ -358,29 +358,51 @@ if ($row['it_id']) { ?> + +
+ +
+ - - \ No newline at end of file diff --git a/mobile/skin/shop/basic/iteminfo.change.skin.php b/mobile/skin/shop/basic/iteminfo.change.skin.php new file mode 100644 index 000000000..9fe951fc6 --- /dev/null +++ b/mobile/skin/shop/basic/iteminfo.change.skin.php @@ -0,0 +1,12 @@ + + + + +
+

교환/반품

+ + + +
\ No newline at end of file diff --git a/mobile/skin/shop/basic/iteminfo.delivery.skin.php b/mobile/skin/shop/basic/iteminfo.delivery.skin.php new file mode 100644 index 000000000..e7f24882a --- /dev/null +++ b/mobile/skin/shop/basic/iteminfo.delivery.skin.php @@ -0,0 +1,12 @@ + + + + +
+

배송정보

+ + + +
\ No newline at end of file diff --git a/mobile/skin/shop/basic/iteminfo.info.skin.php b/mobile/skin/shop/basic/iteminfo.info.skin.php new file mode 100644 index 000000000..3a7d3bcf6 --- /dev/null +++ b/mobile/skin/shop/basic/iteminfo.info.skin.php @@ -0,0 +1,100 @@ + + + + +
+

상품 정보

+ + + +
+ +
+ + + +
+ +
+ + +

상품 정보 고시

+ + + + + + + + + $val) { + $ii_title = $info_array[$key][0]; + $ii_value = $val; + ?> + + + + + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/mobile/skin/shop/basic/iteminfo.itemqa.skin.php b/mobile/skin/shop/basic/iteminfo.itemqa.skin.php new file mode 100644 index 000000000..1a3e951a7 --- /dev/null +++ b/mobile/skin/shop/basic/iteminfo.itemqa.skin.php @@ -0,0 +1,12 @@ + + + + +
+

상품문의

+ + +
+
\ No newline at end of file diff --git a/mobile/skin/shop/basic/iteminfo.itemuse.skin.php b/mobile/skin/shop/basic/iteminfo.itemuse.skin.php new file mode 100644 index 000000000..74705ade0 --- /dev/null +++ b/mobile/skin/shop/basic/iteminfo.itemuse.skin.php @@ -0,0 +1,12 @@ + + + + +
+

사용후기

+ + +
+
\ No newline at end of file diff --git a/mobile/skin/shop/basic/iteminfo.relation.skin.php b/mobile/skin/shop/basic/iteminfo.relation.skin.php new file mode 100644 index 000000000..eea8a0e76 --- /dev/null +++ b/mobile/skin/shop/basic/iteminfo.relation.skin.php @@ -0,0 +1,30 @@ + + + + +
+

관련상품

+ + +
+ set_mobile(true); + $list->set_query($sql); + echo $list->run(); + ?> +
+
+ + \ No newline at end of file diff --git a/mobile/skin/shop/basic/itemqa.skin.php b/mobile/skin/shop/basic/itemqa.skin.php index a6ef87c6d..96f935de3 100644 --- a/mobile/skin/shop/basic/itemqa.skin.php +++ b/mobile/skin/shop/basic/itemqa.skin.php @@ -139,6 +139,11 @@ $(function(){ $("#itemqa").load($(this).attr("href")); return false; }); + + $("a#itemqa_list").on("click", function() { + opener.location.href = this.href; + self.close(); + }); }); \ No newline at end of file diff --git a/mobile/skin/shop/basic/itemuse.skin.php b/mobile/skin/shop/basic/itemuse.skin.php index 0b84bdc76..1925decc3 100644 --- a/mobile/skin/shop/basic/itemuse.skin.php +++ b/mobile/skin/shop/basic/itemuse.skin.php @@ -85,7 +85,7 @@ echo itemuse_page($config['cf_mobile_pages'], $page, $total_page, "./itemuse.php
사용후기 쓰기 새 창 - 더보기 + 더보기
\ No newline at end of file diff --git a/mobile/skin/shop/basic/list.10.skin.php b/mobile/skin/shop/basic/list.10.skin.php index 9ab35e8ba..c9efd9804 100644 --- a/mobile/skin/shop/basic/list.10.skin.php +++ b/mobile/skin/shop/basic/list.10.skin.php @@ -3,27 +3,20 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 ?> + list_mod >= 2) { // 1줄 이미지 : 2개 이상 - if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막 - else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째 - else $sct_last = ''; - } else { // 1줄 이미지 : 1개 - $sct_last = 'sct_clear'; - } - - if ($i == 1) { +for ($i=0; $row=sql_fetch_array($result); $i++) { + if ($i == 0) { if ($this->css) { - echo "