쇼핑몰: #99 배너 노출 표준화 및 스타일 완료
This commit is contained in:
@ -6,10 +6,11 @@ $sql = " select * from {$g4['shop_banner_table']}
|
||||
order by bn_order, bn_id desc ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
<table width=100% cellpadding=0 cellspacing=0>
|
||||
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
if ($i==0) echo '<ul>'.PHP_EOL;
|
||||
//print_r2($row);
|
||||
// 테두리 있는지
|
||||
$bn_border = $row['bn_border'];
|
||||
@ -20,15 +21,15 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
if (file_exists($bimg))
|
||||
{
|
||||
$size = getimagesize($bimg);
|
||||
echo '<tr><td>';
|
||||
echo '<li>'.PHP_EOL;
|
||||
if ($row['bn_url'][0] == '#')
|
||||
echo '<a href="'.$row['bn_url'].'">';
|
||||
else if ($row['bn_url'] && $row['bn_url'] != 'http://') {
|
||||
echo '<a href="'.G4_SHOP_URL.'/bannerhit.php?bn_id='.$row['bn_id'].'&url='.urlencode($row['bn_url']).'"'.$bn_new_win.'>';
|
||||
}
|
||||
echo '<img src="'.G4_DATA_URL.'/banner/'.$row['bn_id'].'" border="'.$bn_border.'" alt="'.$row['bn_alt'].'" width="'.$size[0].'" height="'.$size[1].'"></a>';
|
||||
echo '</td></tr>'.PHP_EOL;
|
||||
echo '<img src="'.G4_DATA_URL.'/banner/'.$row['bn_id'].'" border="'.$bn_border.'" alt="'.$row['bn_alt'].'" width="'.$size[0].'" height="'.$size[1].'"></a>'.PHP_EOL;
|
||||
echo '</li>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
if ($i>0) echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
@ -87,10 +87,11 @@ if ($default["de_type{$type}_list_use"])
|
||||
<?php //echo visit('basic'); ?>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<!-- 메인 배너 -->
|
||||
<?php echo display_banner('메인'); ?>
|
||||
</div>
|
||||
<section id="sbn_idx">
|
||||
<h2>쇼핑몰 메인 배너</h2>
|
||||
<!-- 메인 배너 -->
|
||||
<?php echo display_banner('메인'); ?>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
include_once(G4_SHOP_PATH.'/shop.tail.php');
|
||||
|
||||
@ -108,7 +108,10 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
|
||||
<?php // include_once(G4_SHOP_PATH.'/boxwish.inc.php'); ?>
|
||||
|
||||
<!-- 왼쪽 배너 -->
|
||||
<?php echo display_banner('왼쪽'); ?><br>
|
||||
<section id="sbn_aside">
|
||||
<h2>쇼핑몰 배너</h2>
|
||||
<?php echo display_banner('왼쪽'); ?>
|
||||
</section>
|
||||
</aside>
|
||||
|
||||
<div id="container">
|
||||
|
||||
Reference in New Issue
Block a user