itemuse.php
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
if($sql_if==1){
$sql = "select * $sql_common order by is_score desc limit $from_record, $rows ";
}else{
$sql = "select * $sql_common order by is_id desc limit $from_record, $rows ";
}
item.info.skin.php
<section id="sit_info">
<div id="sit_tab">
<ul class="tab_tit">
<li><button type="button" rel="#sit_inf" id="inf_k"class="selected">상품정보</button></li>
<li><button type="button" rel="#sit_use" id="use_k" >사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></button></li>
<li><button type="button" rel="#sit_qa">상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></button></li>
<li><button type="button" rel="#sit_dex">배송/교환</button></li>
</ul>
<ul class="tab_con">
.
'
'
'
'
.
.
<script>
$(function (){
$(".tab_con>li").hide();
$(".tab_con>li:first").show();
<?
if($sql_if){
?>
$("#use_k").addClass("selected");
$("#inf_k").removeClass("selected");
$(".tab_con>li").hide();
$("#sit_use").show();
// $(".sit_use_top").animatescroll();
<?}?>
// #sit_use
$(".tab_tit li button").click(function(){
$(".tab_tit li button").removeClass("selected");
$(this).addClass("selected");
$(".tab_con>li").hide();
$($(this).attr("rel")).show();
});
});
</script>
itemuse.skin.php
<!-- 상품 사용후기 시작 { -->
<section id="sit_use_list">
<h3>등록된 사용후기</h3>
<div class="sit_use_top">
<?php if ($star_score) { ?>
<h4>구매고객 총평점 <span>(총 <strong><?php echo $total_count; ?></strong> 건 상품평 기준)</span></h4>
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $star_score?>.png" alt="" class="sit_star">
<?php } ?>
<div id="sit_use_wbtn">
<a href="<?php echo $itemuse_form; ?>" class="btn02 itemuse_form">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
<a href="<?php echo $itemuse_list; ?>" class="btn01 itemuse_list">더보기</a>
<a href="/shop/item.php?it_id=<?=$it_id?>&sql_if=1#sit_use" >별점</a>
<a href="/shop/item.php?it_id=<?=$it_id?>&sql_if=2#sit_use" >최신후기</a>
</div>
</div>
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
if($sql_if==1){
$sql = "select * $sql_common order by is_score desc limit $from_record, $rows ";
}else{
$sql = "select * $sql_common order by is_id desc limit $from_record, $rows ";
}
item.info.skin.php
<section id="sit_info">
<div id="sit_tab">
<ul class="tab_tit">
<li><button type="button" rel="#sit_inf" id="inf_k"class="selected">상품정보</button></li>
<li><button type="button" rel="#sit_use" id="use_k" >사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></button></li>
<li><button type="button" rel="#sit_qa">상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></button></li>
<li><button type="button" rel="#sit_dex">배송/교환</button></li>
</ul>
<ul class="tab_con">
.
'
'
'
'
.
.
<script>
$(function (){
$(".tab_con>li").hide();
$(".tab_con>li:first").show();
<?
if($sql_if){
?>
$("#use_k").addClass("selected");
$("#inf_k").removeClass("selected");
$(".tab_con>li").hide();
$("#sit_use").show();
// $(".sit_use_top").animatescroll();
<?}?>
// #sit_use
$(".tab_tit li button").click(function(){
$(".tab_tit li button").removeClass("selected");
$(this).addClass("selected");
$(".tab_con>li").hide();
$($(this).attr("rel")).show();
});
});
</script>
itemuse.skin.php
<!-- 상품 사용후기 시작 { -->
<section id="sit_use_list">
<h3>등록된 사용후기</h3>
<div class="sit_use_top">
<?php if ($star_score) { ?>
<h4>구매고객 총평점 <span>(총 <strong><?php echo $total_count; ?></strong> 건 상품평 기준)</span></h4>
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $star_score?>.png" alt="" class="sit_star">
<?php } ?>
<div id="sit_use_wbtn">
<a href="<?php echo $itemuse_form; ?>" class="btn02 itemuse_form">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
<a href="<?php echo $itemuse_list; ?>" class="btn01 itemuse_list">더보기</a>
<a href="/shop/item.php?it_id=<?=$it_id?>&sql_if=1#sit_use" >별점</a>
<a href="/shop/item.php?it_id=<?=$it_id?>&sql_if=2#sit_use" >최신후기</a>
</div>
</div>
댓글 5개
Bsori
3년 전
감사합니다.
브러운아이
3년 전
유용한 정보 감사합니다.
tobag
3년 전
감사합니다.
에버그린5943
3년 전
정보 감사합니다.
LeonSoftㅣCeo
2년 전
감사합니다.
게시판 목록
영카트5 스킨
좋은 댓글과 좋아요는 제작자에게 큰힘이 됩니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 99 | 기타 | 5년 전 | 5965 | ||
| 98 | 기타 | 5년 전 | 4775 | ||
| 97 | 기타 | 5년 전 | 4049 | ||
| 96 | 기타 | 5년 전 | 3627 | ||
| 95 | 기타 | 5년 전 | 3930 | ||
| 94 | 상품진열 | 5년 전 | 4879 | ||
| 93 | 기타 | 5년 전 | 4314 | ||
| 92 | 상품진열 | 5년 전 | 5017 | ||
| 91 | 레이아웃 | 5년 전 | 6972 | ||
| 90 | 상품진열 | 5년 전 | 5440 | ||
| 89 | 기타 | 5년 전 | 4381 | ||
| 88 | 기타 | 6년 전 | 6221 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기