쇼핑몰: #195 상품상세 선택/추가 옵션 마크업 작업 중 임시보류, 구조 구상 중

This commit is contained in:
whitedot
2013-05-24 14:40:20 +09:00
parent f594b2ec66
commit d10746b126
2 changed files with 164 additions and 160 deletions

View File

@ -485,10 +485,10 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
/* 상품 상세보기 - 간략정보 및 구매기능 */
#sit_ov {position:relative;float:right;padding:50px 15px 15px;width:358px;height:auto !important;height:355px;min-height:355px}
#sit_ov h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#sit_title {display:inline-block;margin:0 0 5px;font-size:1.3em}
#sit_desc {display:inline-block;margin:0 0 10px;color:#999}
#sit_title {margin:0 0 5px;font-size:1.3em}
#sit_desc {margin:0 0 5px;padding:0;color:#999}
#sit_opt_info {/* sound_only 처리 필요 */}
.sit_icon {display:block;margin:5px 0 0}
.sit_icon img {margin:0 1px 0 0;border:1px solid #fff}

View File

@ -238,9 +238,14 @@ else
<?php //echo it_name_icon($it, false, 0); ?>
<section id="sit_ov">
<h2>상품간략정보 및 구매기능</h2>
<strong id="sit_title"><?php echo stripslashes($it['it_name']); ?></strong><br>
<span id="sit_desc"><?php echo $it['it_basic']; ?></span>
<h2 id="sit_title"><?php echo stripslashes($it['it_name']); ?></h2>
<p id="sit_desc"><?php echo $it['it_basic']; ?></p>
<!-- ########## 선택옵션/추가옵션 갯수를 사전에 알려줍니다. - 지운아빠 2013-05-24 -->
<!-- 스크린리더에서만 출력되도록 할 예정 -->
<p id="sit_opt_info">
상품 기본옵션 n 가지, <!-- 추가옵션이 있을 때만 -->추가옵션 n 가지<!-- 끝 -->
</p>
<!-- ########## 선택옵션/추가옵션 알려주기 끝 -->
<?php if ($score = get_star_image($it['it_id'])) { ?>
<div id="sit_star_sns">
<?php
@ -283,6 +288,7 @@ else
</tr>
<?php } else { // 전화문의가 아닐 경우?>
<?php if ($it['it_cust_price']) { // 1.00.03?>
<tr>
<th scope="row"><label for="disp_cust_price">시중가격</label></th>
@ -290,7 +296,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"> 원
</td>
</tr>
<?php } // 전화문의 끝?>
<?php } ?>
<tr>
<th scope="row"><label for="disp_sell_price">판매가격</label></th>
@ -327,8 +333,22 @@ else
echo get_item_supply($it['it_id'], $it['it_supply_subject']);
?>
<!-- ########## 삭제될 내용 - 지운아빠 2013-05-24 -->
<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>
<script>
$(function() {
@ -468,29 +488,13 @@ else
opt += "</li>\n";
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);
} else{
$("#sit_sel_option > ul li:last").after(opt);
}
}
</script>
</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">
<?php if (!$it['it_tel_inq'] && !$it['it_gallery']) { ?>