From 7fb441873d491731c67f901715a15e7e8587f517 Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 26 Nov 2013 11:05:40 +0900 Subject: [PATCH] =?UTF-8?q?=EC=87=BC=ED=95=91=EB=AA=B0:=20SNS=20=EC=95=84?= =?UTF-8?q?=EC=9D=B4=EC=BD=98=20=EC=9C=84=EC=B9=98=20=EB=B0=8F=20=EC=83=81?= =?UTF-8?q?=ED=92=88=20=EB=AA=A9=EB=A1=9D=20=EB=A7=88=ED=81=AC=EC=97=85=20?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=A0=90=EA=B2=80=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/admin.css | 9 ++-- css/default_shop.css | 2 +- lib/shop.lib.php | 6 +-- shop/index.php | 4 +- shop/list.php | 2 +- skin/shop/basic/list.10.skin.php | 73 ++++++++++++++++++++------------ skin/shop/basic/list.20.skin.php | 62 +++++++++++++++++---------- skin/shop/basic/main.10.skin.php | 69 ++++++++++++++++++------------ skin/shop/basic/style.css | 21 ++++----- 9 files changed, 150 insertions(+), 98 deletions(-) diff --git a/css/admin.css b/css/admin.css index d29af6737..b1005fca5 100644 --- a/css/admin.css +++ b/css/admin.css @@ -284,8 +284,8 @@ tfoot td {font-weight:bold;text-align:center} .ul_01 li {padding:10px 0;border-bottom:1px solid #e9e9e9} /* 자료 없는 목록 */ -.empty_table {padding:100px 0;text-align:center} -.empty_list {padding:20px 0;text-align:center} +.empty_table {padding:100px 0 !important;text-align:center} +.empty_list {padding:20px 0 !important;text-align:center} /* 폼 테이블 */ .tbl_frm01 th {padding:0;border-top:1px solid #ececec;border-bottom:1px solid #ececec;text-align:left} @@ -320,7 +320,8 @@ tfoot td {font-weight:bold;text-align:center} /* 목록 홀짝 배경색 */ .bg0 {background:#fff} -.bg1 {background:#f0f3f7} +.bg1 {background:#f2f5f9} +.bg1 td {border-color:#e9e9e9} .bg0cancel {background:#fdebf3} .bg0cancel td {border-color:#f9d8e6} .bg1cancel {background:#fdebf3} @@ -616,7 +617,7 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right} .sit_option {margin:0 0 10px;padding:10px 10px 0;border:1px solid #e9e9e9;background:#f7f7f7} .sit_option .frm_input {background:#fff !important;color:#000} -.sit_option_frm_wrapper {margin:0 0 10px;height:auto !important;height:500px;max-height:500px;border:1px solid #484848;overflow-y:scroll} +.sit_option_frm_wrapper {margin:0 0 10px;height:auto !important;height:500px;max-height:500px;border:1px solid #ccc;overflow-y:scroll} .sit_option_frm_wrapper th {padding:5px 0 !important;text-align:center !important} #sit_option_frm .btn_list {margin:0 0 10px} diff --git a/css/default_shop.css b/css/default_shop.css index 968764aa6..ef9a8b5d6 100644 --- a/css/default_shop.css +++ b/css/default_shop.css @@ -401,7 +401,7 @@ fieldset .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7 #sct_sort {float:left;margin:0 0 10px;width:80%;zoom:1} #sct_sort:after {display:block;visibility:hidden;clear:both;content:""} #sct_sort h2 {position:absolute;font-size:0;line-height:0;overflow:hidden} -#sct_sort ul {margin:0;padding:0;list-style:none;zoom:1} +#sct_sort ul {margin:0;padding:0 0 0 1px;list-style:none;zoom:1} #sct_sort ul:after {display:block;visibility:hidden;clear:both;content:""} #sct_sort li {float:left;position:relative;margin-left:-1px} diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 8857d404f..42e622a9a 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -392,7 +392,7 @@ function get_image($img, $width=0, $height=0, $img_id='') // 상품 이미지를 얻는다 -function get_it_image($it_id, $width, $height=0, $anchor=false, $img_id='') +function get_it_image($it_id, $width, $height=0, $anchor=false, $img_id='', $img_alt='') { global $g5; @@ -432,12 +432,12 @@ function get_it_image($it_id, $width, $height=0, $anchor=false, $img_id='') if($thumb) { $file_url = str_replace(G5_PATH, G5_URL, $filepath.'/'.$thumb); - $img = 'set_type(1); $list->set_view('it_img', true); - $list->set_view('it_id', false); + $list->set_view('it_id', true); $list->set_view('it_name', true); $list->set_view('it_basic', true); - $list->set_view('it_cust_price', false); + $list->set_view('it_cust_price', true); $list->set_view('it_price', true); $list->set_view('it_icon', true); $list->set_view('sns', true); diff --git a/shop/list.php b/shop/list.php index af9149210..c6583d259 100644 --- a/shop/list.php +++ b/shop/list.php @@ -95,7 +95,7 @@ var itemlist_ca_id = ""; $list->set_view('it_id', false); $list->set_view('it_name', true); $list->set_view('it_basic', true); - $list->set_view('it_cust_price', false); + $list->set_view('it_cust_price', true); $list->set_view('it_price', true); $list->set_view('it_icon', true); $list->set_view('sns', true); diff --git a/skin/shop/basic/list.10.skin.php b/skin/shop/basic/list.10.skin.php index b7863d142..4c4f51f77 100644 --- a/skin/shop/basic/list.10.skin.php +++ b/skin/shop/basic/list.10.skin.php @@ -23,46 +23,63 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { } } - echo "
  • img_width}px\">\n"; + echo "
  • img_width}px\">\n"; if ($this->href) { - echo "href}{$row['it_id']}\" class=\"sct_a\">\n"; + echo "href}{$row['it_id']}\" class=\"sct_a sct_img\">\n"; } if ($this->view_it_img) { - echo "".get_it_image($row['it_id'], $this->img_width, $this->img_height)."\n"; - } - - if ($this->view_it_id) { - echo "".stripslashes($row['it_id'])."\n"; - } - - if ($this->view_it_name) { - echo "".stripslashes($row['it_name'])."\n"; - } - - if ($this->view_it_basic) { - echo "".stripslashes($row['it_basic'])."\n"; - } - - if ($this->view_it_cust_price) { - echo "".display_price($row['it_cust_price'])."\n"; - } - - if ($this->view_it_price) { - echo "".display_price(get_price($row), $row['it_tel_inq'])."\n"; - } - - if ($this->view_it_icon) { - echo "".item_icon($row)."\n"; + echo get_it_image($row['it_id'], $this->img_width, $this->img_height)."\n"; } if ($this->href) { echo "\n"; } + if ($this->view_it_id) { + echo "<".stripslashes($row['it_id']).">\n"; + } + + if ($this->href) { + echo "href}{$row['it_id']}\" class=\"sct_a sct_txt\">\n"; + } + + if ($this->view_it_name) { + echo stripslashes($row['it_name'])."\n"; + } + + if ($this->href) { + echo "\n"; + } + + if ($this->view_it_basic) { + echo "
    ".stripslashes($row['it_basic'])."
    \n"; + } + + if ($this->view_it_cust_price || $this->view_it_price) { + + echo "
    \n"; + + if ($this->view_it_cust_price) { + echo "".display_price($row['it_cust_price'])." >\n"; + } + + if ($this->view_it_price) { + echo display_price(get_price($row), $row['it_tel_inq'])."\n"; + } + + echo "
    \n"; + + } + + if ($this->view_it_icon) { + echo "
    ".item_icon($row)."
    \n"; + } + if ($this->view_sns) { - echo "
    "; + $sns_top = $this->img_height + 10; + echo "
    "; echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_fb.png'); echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_twt.png'); echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_goo.png'); diff --git a/skin/shop/basic/list.20.skin.php b/skin/shop/basic/list.20.skin.php index 56ca9adba..4f523245d 100644 --- a/skin/shop/basic/list.20.skin.php +++ b/skin/shop/basic/list.20.skin.php @@ -26,37 +26,53 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { echo "
  • img_width}px\">\n"; if ($this->href) { - echo "href}{$row['it_id']}\" class=\"sct_a\">\n"; + echo "href}{$row['it_id']}\" class=\"sct_a sct_img\">\n"; } if ($this->view_it_img) { - echo "".get_it_image($row['it_id'], $this->img_width, $this->img_height)."\n"; - } - - if ($this->view_it_id) { - echo "".stripslashes($row['it_id'])."\n"; - } - - if ($this->view_it_name) { - echo "".stripslashes($row['it_name'])."\n"; - } - - if ($this->view_it_cust_price) { - echo "".display_price($row['it_cust_price'])."\n"; - } - - if ($this->view_it_price) { - echo "".display_price(get_price($row), $row['it_tel_inq'])."\n"; - } - - if ($this->view_it_icon) { - echo "".item_icon($row)."\n"; + echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n"; } if ($this->href) { echo "\n"; } + if ($this->view_it_id) { + echo "<".stripslashes($row['it_id']).">\n"; + } + + if ($this->href) { + echo "href}{$row['it_id']}\" class=\"sct_a sct_txt\">\n"; + } + + if ($this->view_it_name) { + echo stripslashes($row['it_name'])."\n"; + } + + if ($this->href) { + echo "\n"; + } + + if ($this->view_it_cust_price || $this->view_it_price) { + + echo "
    \n"; + + if ($this->view_it_cust_price) { + echo "".display_price($row['it_cust_price'])." >\n"; + } + + if ($this->view_it_price) { + echo display_price(get_price($row), $row['it_tel_inq'])."\n"; + } + + echo "
    \n"; + + } + + if ($this->view_it_icon) { + echo "".item_icon($row)."\n"; + } + if ($this->view_sns) { echo "
    "; echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_fb.png'); @@ -72,4 +88,4 @@ if ($i > 1) echo "\n"; if($i == 1) echo "

    등록된 상품이 없습니다.

    \n"; ?> - \ No newline at end of file + \ No newline at end of file diff --git a/skin/shop/basic/main.10.skin.php b/skin/shop/basic/main.10.skin.php index bea614e97..98b2242f9 100644 --- a/skin/shop/basic/main.10.skin.php +++ b/skin/shop/basic/main.10.skin.php @@ -33,42 +33,59 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { echo "".get_it_image($row['it_id'], $this->img_width, $this->img_height)."\n"; } + if ($this->href) { + echo "\n"; + } + if ($this->view_it_id) { - echo "".stripslashes($row['it_id'])."\n"; + echo "<".stripslashes($row['it_id']).">\n"; + } + + if ($this->href) { + echo "href}{$row['it_id']}\" class=\"sct_a\">\n"; } if ($this->view_it_name) { - echo "".stripslashes($row['it_name'])."\n"; - } - - if ($this->view_it_basic) { - echo "".stripslashes($row['it_basic'])."\n"; - } - - if ($this->view_it_cust_price) { - echo "".display_price($row['it_cust_price'])."\n"; - } - - if ($this->view_it_price) { - echo "".display_price(get_price($row), $row['it_tel_inq'])."\n"; - } - - if ($this->view_it_icon) { - echo "".item_icon($row)."\n"; - } - - if ($this->view_sns) { - echo "
    "; - echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_fb.png'); - echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_twt.png'); - echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_goo.png'); - echo "
    \n"; + echo stripslashes($row['it_name'])."\n"; } if ($this->href) { echo "
    \n"; } + if ($this->view_it_basic) { + echo "
    ".stripslashes($row['it_basic'])."
    \n"; + } + + if ($this->view_it_cust_price || $this->view_it_price) { + + echo "
    \n"; + + if ($this->view_it_cust_price) { + echo "".display_price($row['it_cust_price'])." >\n"; + } + + if ($this->view_it_price) { + echo display_price(get_price($row), $row['it_tel_inq'])."\n"; + } + + echo "
    \n"; + + } + + if ($this->view_it_icon) { + echo "
    ".item_icon($row)."
    \n"; + } + + if ($this->view_sns) { + $sns_top = $this->img_height + 10; + echo "
    "; + echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_fb.png'); + echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_twt.png'); + echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_goo.png'); + echo "
    \n"; + } + echo "
  • \n"; } diff --git a/skin/shop/basic/style.css b/skin/shop/basic/style.css index ef4097347..fbf857818 100644 --- a/skin/shop/basic/style.css +++ b/skin/shop/basic/style.css @@ -26,26 +26,27 @@ .sct_10 .sct_li {position:relative;float:left;margin:0 25px 15px 0} .sct_10 .sct_last {margin:0 0 15px !important} .sct_10 .sct_clear {clear:both} -.sct_10 .sct_a {display:block;position:relative;text-decoration:none} +.sct_10 .sct_a {display:inline-block;position:relative;margin:0 0 5px;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 8px;font-weight:normal} -.sct_10 s {display:block} +.sct_10 .sct_img {margin:0 0 45px} +.sct_10 .sct_id {display:block;margin:0 0 5px} +.sct_10 .sct_basic {margin:0 0 10px} .sct_10 .sct_cost {display:block;margin:0 0 10px;font-weight:bold} +.sct_10 .sct_cost strike {color:#999;font-weight:normal} .sct_10 .sct_icon {} .sct_10 .sct_icon img {} -.sct_10 .sct_sns {position:absolute;top:190px;right:20px} +.sct_10 .sct_sns {position:absolute;left:0;width:100%;text-align:center} /* 상품 목록 스킨 20 */ .sct_20 .sct_li {position:relative;float:left;margin:0 25px 15px 0} .sct_20 .sct_last {margin:0 0 15px !important} .sct_20 .sct_clear {clear:both} -.sct_20 .sct_a {display:block;position:relative;padding:0 0 5px;background:#f5f6fa;text-decoration:none} +.sct_20 .sct_a {display:block;position:relative;text-decoration:none} .sct_20 .sct_a:focus, .sct_20 .sct_a:hover {text-decoration:none} -.sct_20 .sct_img {display:block;margin:0 0 15px} -.sct_20 b {display:block;margin:0 0 8px;padding:0 5px;font-weight:normal} -.sct_20 s {display:block} -.sct_20 .sct_cost {display:block;margin:0 0 10px;padding:0 5px;font-weight:bold} +.sct_20 .sct_img {} +.sct_20 .sct_id {display:block;padding:5px 10px 0;background:#f2f5f9} +.sct_20 .sct_txt {padding:10px;background:#f2f5f9} +.sct_20 .sct_cost {display:block;padding:0 10px 10px;background:#f2f5f9;font-weight:bold} .sct_20 .sct_icon {position:absolute;top:10px;left:-5px;margin:0 !important} .sct_20 .sct_icon img {display:block} .sct_20 .sct_sns {position:absolute;bottom:10px;right:10px}