쇼핑몰: #99 배너 노출 표준화 및 스타일 완료
This commit is contained in:
@ -130,9 +130,19 @@ a:active {color:#000;text-decoration:underline}
|
|||||||
#scomm a:hover {background:#f9f9f9}
|
#scomm a:hover {background:#f9f9f9}
|
||||||
#scomm_empty {padding:15px 0;text-align:center}
|
#scomm_empty {padding:15px 0;text-align:center}
|
||||||
|
|
||||||
|
#sbn_aside {margin:0 0 5px}
|
||||||
|
#sbn_aside h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
|
#sbn_aside ul {margin:0;padding:0;border:0;list-style:none}
|
||||||
|
#sbn_aside li {margin:0 0 1px}
|
||||||
|
|
||||||
#container {z-index:4;position:relative;float:left;width:740px;min-height:500px;height:auto !important;height:500px;background:#fff;zoom:1}
|
#container {z-index:4;position:relative;float:left;width:740px;min-height:500px;height:auto !important;height:500px;background:#fff;zoom:1}
|
||||||
#container:after {display:block;visibility:hidden;clear:both;content:""}
|
#container:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
|
||||||
|
#sbn_idx {}
|
||||||
|
#sbn_idx h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
|
#sbn_idx ul {margin:0;padding:0;border:0;list-style:none}
|
||||||
|
#sbn_idx li {margin:0 0 1px}
|
||||||
|
|
||||||
/* 텍스트 크기 조절 */
|
/* 텍스트 크기 조절 */
|
||||||
#text_size {display:none;position:absolute;top:-31px;left:-1px}
|
#text_size {display:none;position:absolute;top:-31px;left:-1px}
|
||||||
#text_size button {padding:0 10px;height:30px;border:1px solid #cfded8;border-bottom:0;background:#000;color:#fff;cursor:pointer}
|
#text_size button {padding:0 10px;height:30px;border:1px solid #cfded8;border-bottom:0;background:#000;color:#fff;cursor:pointer}
|
||||||
|
|||||||
@ -6,10 +6,11 @@ $sql = " select * from {$g4['shop_banner_table']}
|
|||||||
order by bn_order, bn_id desc ";
|
order by bn_order, bn_id desc ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
?>
|
?>
|
||||||
<table width=100% cellpadding=0 cellspacing=0>
|
|
||||||
<?php
|
<?php
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
{
|
{
|
||||||
|
if ($i==0) echo '<ul>'.PHP_EOL;
|
||||||
//print_r2($row);
|
//print_r2($row);
|
||||||
// 테두리 있는지
|
// 테두리 있는지
|
||||||
$bn_border = $row['bn_border'];
|
$bn_border = $row['bn_border'];
|
||||||
@ -20,15 +21,15 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
if (file_exists($bimg))
|
if (file_exists($bimg))
|
||||||
{
|
{
|
||||||
$size = getimagesize($bimg);
|
$size = getimagesize($bimg);
|
||||||
echo '<tr><td>';
|
echo '<li>'.PHP_EOL;
|
||||||
if ($row['bn_url'][0] == '#')
|
if ($row['bn_url'][0] == '#')
|
||||||
echo '<a href="'.$row['bn_url'].'">';
|
echo '<a href="'.$row['bn_url'].'">';
|
||||||
else if ($row['bn_url'] && $row['bn_url'] != 'http://') {
|
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 '<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 '<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 '</td></tr>'.PHP_EOL;
|
echo '</li>'.PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($i>0) echo '</ul>'.PHP_EOL;
|
||||||
?>
|
?>
|
||||||
</table>
|
|
||||||
@ -87,10 +87,11 @@ if ($default["de_type{$type}_list_use"])
|
|||||||
<?php //echo visit('basic'); ?>
|
<?php //echo visit('basic'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<section id="sbn_idx">
|
||||||
<!-- 메인 배너 -->
|
<h2>쇼핑몰 메인 배너</h2>
|
||||||
<?php echo display_banner('메인'); ?>
|
<!-- 메인 배너 -->
|
||||||
</div>
|
<?php echo display_banner('메인'); ?>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once(G4_SHOP_PATH.'/shop.tail.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 // 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>
|
</aside>
|
||||||
|
|
||||||
<div id="container">
|
<div id="container">
|
||||||
|
|||||||
Reference in New Issue
Block a user