쇼핑몰: #101 #106 상품 목록 아이콘 노출 스타일 완료

This commit is contained in:
whitedot
2013-05-02 13:28:05 +09:00
parent 4be080b04a
commit b3f2c6086d
4 changed files with 42 additions and 38 deletions

View File

@ -6,24 +6,26 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?php
for ($i=0; $row=sql_fetch_array($result); $i++) {
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
if (($i+1)%$list_mod == 0) $sidx_it_last = 'sidx_it_last';
else $sidx_it_last = '';
if ($i == 0) echo '<ul class="sidx_it sidx_it_10">';
if (($i+1)%$list_mod == 0) $sct_last = 'sct_last';
else $sct_last = '';
if ($i == 0) echo '<ul class="sct sct_10">';
?>
<li class="sidx_it_li <?php echo $sidx_it_last; ?>">
<a href="<?php echo $href; ?>" class="sidx_it_a">
<span><?php echo get_it_image($row['it_id']."_s", $img_width, $img_height, '', $type); ?></span>
<li class="sct_li <?php echo $sct_last; ?>">
<a href="<?php echo $href; ?>" class="sct_a">
<span class="sct_img"><?php echo get_it_image($row['it_id']."_s", $img_width, $img_height, '', $type); ?></span>
<b><?php echo stripslashes($row['it_name']); ?></b>
<?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?>
<span class="sct_icon">
<?php // 이미지 아이콘
echo display_item_icon($row);
?>
</span>
</a>
<div class="sidx_it_sns">
<div class="sct_sns">
<a href="#"><img src="<?php echo G4_URL; ?>/img/shop/sns_fb.png" alt="페이스북에 공유"></a>
<a href="#"><img src="<?php echo G4_URL; ?>/img/shop/sns_twt.png" alt="트위터에 공유"></a>
<a href="#"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
</div>
<?php // 이미지 아이콘
echo display_item_icon($row);
?>
</li>
<?php }
if ($i > 0) echo '</ul>';