쇼핑몰: 배너 출력 위치에 따른 id 값 수정

This commit is contained in:
whitedot
2014-03-05 11:46:04 +09:00
parent 08ac9bdf58
commit f1d3227d93
2 changed files with 5 additions and 5 deletions

View File

@ -147,10 +147,7 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
<?php echo visit('shop_basic'); // 접속자 ?>
<!-- 메인배너 시작 { -->
<section id="sbn_idx" class="sbn">
<h2>쇼핑몰 메인 배너</h2>
<?php echo display_banner('메인'); ?>
</section>
<?php echo display_banner('메인'); ?>
<!-- } 메인배너 끝 -->
<?php

View File

@ -12,7 +12,10 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">',
<?php
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($i==0) echo '<aside id="sbn_aside" class="sbn"><h2>쇼핑몰 배너</h2><ul>'.PHP_EOL;
if ($row['bn_position'] == '메인') $bn_position = 'idx';
else $bn_position = 'side';
if ($i==0) echo '<aside id="sbn_'.$bn_position.'" class="sbn"><h2>쇼핑몰 배너</h2><ul>'.PHP_EOL;
//print_r2($row);
// 테두리 있는지
$bn_border = ($row['bn_border']) ? ' sbn_border' : '';;