쇼핑몰: #127 상품상세보기 관련상품 표준화 및 스타일 완료
This commit is contained in:
@ -558,7 +558,7 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
|
|||||||
#sit_ex h2 {margin:0 0 10px}
|
#sit_ex h2 {margin:0 0 10px}
|
||||||
|
|
||||||
/* 상품 상세보기 - 관련상품 */
|
/* 상품 상세보기 - 관련상품 */
|
||||||
#sit_rel {margin:0 0 10px;padding:10px 10px 20px}
|
#sit_rel {margin:0 0 10px;padding:10px 10px 0}
|
||||||
#sit_rel h2 {margin:0 0 10px}
|
#sit_rel h2 {margin:0 0 10px}
|
||||||
|
|
||||||
/* 공지사항 및 커뮤니티 새글 */
|
/* 공지사항 및 커뮤니티 새글 */
|
||||||
|
|||||||
@ -477,24 +477,26 @@ else
|
|||||||
<h2>관련상품</h2>
|
<h2>관련상품</h2>
|
||||||
<?php echo pg_anchor('rel'); ?>
|
<?php echo pg_anchor('rel'); ?>
|
||||||
|
|
||||||
<?php
|
<div class="sct_wrap">
|
||||||
$list_mod = $default['de_rel_list_mod'];
|
<?php
|
||||||
$img_width = $default['de_rel_img_width'];
|
$list_mod = $default['de_rel_list_mod'];
|
||||||
$img_height = $default['de_rel_img_height'];
|
$img_width = $default['de_rel_img_width'];
|
||||||
$td_width = (int)(100 / $list_mod);
|
$img_height = $default['de_rel_img_height'];
|
||||||
|
$td_width = (int)(100 / $list_mod);
|
||||||
|
|
||||||
$sql = " select b.*
|
$sql = " select b.*
|
||||||
from {$g4['shop_item_relation_table']} a
|
from {$g4['shop_item_relation_table']} a
|
||||||
left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id)
|
left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id)
|
||||||
where a.it_id = '{$it['it_id']}'
|
where a.it_id = '{$it['it_id']}'
|
||||||
and b.it_use='1' ";
|
and b.it_use='1' ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
$num = @mysql_num_rows($result);
|
$num = @mysql_num_rows($result);
|
||||||
if ($num)
|
if ($num)
|
||||||
include G4_SHOP_PATH.'/maintype10.inc.php';
|
include G4_SHOP_PATH.'/maintype10.inc.php';
|
||||||
else
|
else
|
||||||
echo '이 상품과 관련된 상품이 없습니다.';
|
echo '이 상품과 관련된 상품이 없습니다.';
|
||||||
?>
|
?>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user