From 9ce714b0ee12a70c53a25cf8eb7da4803c07ed6a Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 5 Mar 2014 13:58:20 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A9=94=EC=9D=B8=EB=B0=B0=EB=84=88=20?= =?UTF-8?q?=EC=8A=A4=ED=82=A8=ED=99=94=20=EC=9E=91=EC=97=85=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.lib.php | 7 ++++- shop/index.php | 6 +---- skin/shop/basic/boxbanner.skin.php | 7 +---- skin/shop/basic/mainbanner.10.skin.php | 37 ++++++++++++++++++++++++++ 4 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 skin/shop/basic/mainbanner.10.skin.php diff --git a/lib/shop.lib.php b/lib/shop.lib.php index f55479896..52b3ad451 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -1110,11 +1110,16 @@ function date_conv($date, $case=1) // 배너출력 -function display_banner($position, $num="") +function display_banner($position, $skin='') { global $g5; if (!$position) $position = '왼쪽'; + if (!$skin) $skin = 'boxbanner.skin.php'; + + // 배너 출력 + $sql = " select * from {$g5['g5_shop_banner_table']} where '".G5_TIME_YMDHIS."' between bn_begin_time and bn_end_time and bn_position = '$position' order by bn_order, bn_id desc "; + $result = sql_query($sql); include G5_SHOP_SKIN_PATH.'/boxbanner'.$num.'.skin.php'; } diff --git a/shop/index.php b/shop/index.php index a82c0d7ce..12356a4ed 100644 --- a/shop/index.php +++ b/shop/index.php @@ -13,7 +13,7 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
- +
@@ -146,10 +146,6 @@ include_once(G5_SHOP_PATH.'/shop.head.php'); - - - - \ No newline at end of file diff --git a/skin/shop/basic/boxbanner.skin.php b/skin/shop/basic/boxbanner.skin.php index d09b9c910..a60bece42 100644 --- a/skin/shop/basic/boxbanner.skin.php +++ b/skin/shop/basic/boxbanner.skin.php @@ -1,10 +1,6 @@ ', 0); ?> @@ -12,8 +8,7 @@ add_stylesheet('',

쇼핑몰 배너