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');