메인배너 스킨화 작업 중

This commit is contained in:
chicpro
2014-03-05 13:58:20 +09:00
parent f1d3227d93
commit 9ce714b0ee
4 changed files with 45 additions and 12 deletions

View File

@ -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';
}