쇼핑몰: #195 상품상세 선택/추가 옵션 작업 중1
This commit is contained in:
@ -238,9 +238,14 @@ else
|
|||||||
<?php //echo it_name_icon($it, false, 0); ?>
|
<?php //echo it_name_icon($it, false, 0); ?>
|
||||||
|
|
||||||
<section id="sit_ov">
|
<section id="sit_ov">
|
||||||
<h2>상품간략정보 및 구매기능</h2>
|
<h2 id="sit_title"><?php echo stripslashes($it['it_name']); ?></h2>
|
||||||
<strong id="sit_title"><?php echo stripslashes($it['it_name']); ?></strong><br>
|
<p id="sit_desc"><?php echo $it['it_basic']; ?></p>
|
||||||
<span id="sit_desc"><?php echo $it['it_basic']; ?></span>
|
<!-- ########## 상품 기본옵션/추가옵션에 따른 출력 - 지운아빠 2013-05-24 -->
|
||||||
|
<!-- 스크린리더에서만 출력할 예정 -->
|
||||||
|
<p id="sit_opt_info">
|
||||||
|
상품 기본옵션 n 개, 추가옵션 n 개
|
||||||
|
</p>
|
||||||
|
<!-- ########## 상품 기본옵션/추가옵션에 따른 출력 끝 -->
|
||||||
<?php if ($score = get_star_image($it['it_id'])) { ?>
|
<?php if ($score = get_star_image($it['it_id'])) { ?>
|
||||||
<div id="sit_star_sns">
|
<div id="sit_star_sns">
|
||||||
<?php
|
<?php
|
||||||
@ -290,7 +295,7 @@ else
|
|||||||
<input type="text" name="disp_cust_price" value="<?php echo number_format($it['it_cust_price']); ?>" id="disp_cust_price" readonly class="sit_ov_ro" size="8"> 원
|
<input type="text" name="disp_cust_price" value="<?php echo number_format($it['it_cust_price']); ?>" id="disp_cust_price" readonly class="sit_ov_ro" size="8"> 원
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } // 전화문의 끝?>
|
<?php } // 시중가격 끝 ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="disp_sell_price">판매가격</label></th>
|
<th scope="row"><label for="disp_sell_price">판매가격</label></th>
|
||||||
@ -328,8 +333,21 @@ else
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<th scope="row">수량</th>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="ct_qty" value="1" class="sit_ov_input" size="4" maxlength="4" autocomplete="off" onkeyup="amount_change()">
|
||||||
|
<button type="button" onclick="javascript:qty_add(+1);" class="btn_frmline"><span class="sound_only">수량 1개 </span>증가</button>
|
||||||
|
<button type="button" onclick="javascript:qty_add(-1);" class="btn_frmline"><span class="sound_only">수량 1개 </span>감소</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php } // 전화문의가 아닐 경우 끝 ?>
|
||||||
|
|
||||||
|
<?php } // 갤러리가 아닐 경우 끝 ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
<div id="sit_sel_option"></div>
|
<div id="sit_sel_option"></div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// 선택옵션
|
// 선택옵션
|
||||||
@ -544,7 +562,7 @@ else
|
|||||||
opt += "</li>\n";
|
opt += "</li>\n";
|
||||||
|
|
||||||
if($("#sit_sel_option > ul").size() < 1) {
|
if($("#sit_sel_option > ul").size() < 1) {
|
||||||
$("#sit_sel_option").html("<ul></ul>");
|
$("#sit_sel_option").html('<ul id="sit_opt_added"></ul>');
|
||||||
$("#sit_sel_option > ul").html(opt);
|
$("#sit_sel_option > ul").html(opt);
|
||||||
} else{
|
} else{
|
||||||
if($("#sit_sel_option > ul li").size() < 1)
|
if($("#sit_sel_option > ul li").size() < 1)
|
||||||
@ -597,27 +615,8 @@ else
|
|||||||
$("#sit_tot_price").empty().html("총 금액 : "+number_format(String(total))+"원");
|
$("#sit_tot_price").empty().html("총 금액 : "+number_format(String(total))+"원");
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<div id="sit_tot_price"></div>
|
<div id="sit_tot_price"></div>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<th scope="row">수량</th>
|
|
||||||
<td>
|
|
||||||
<input type="text" name="ct_qty" value="1" class="sit_ov_input" size="4" maxlength="4" autocomplete="off" onkeyup="amount_change()">
|
|
||||||
<button type="button" onclick="javascript:qty_add(+1);" class="btn_frmline"><span class="sound_only">수량 1개 </span>증가</button>
|
|
||||||
<button type="button" onclick="javascript:qty_add(-1);" class="btn_frmline"><span class="sound_only">수량 1개 </span>감소</button>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<ul id="sit_ov_btn">
|
<ul id="sit_ov_btn">
|
||||||
<?php if (!$it['it_tel_inq'] && !$it['it_gallery']) { ?>
|
<?php if (!$it['it_tel_inq'] && !$it['it_gallery']) { ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user