쇼핑몰관리자; #230 쇼핑몰관리 상품입력 상품배송비 마크업 완료

This commit is contained in:
whitedot
2013-06-13 15:17:38 +09:00
parent 21da1ac432
commit 4d555eafb6

View File

@ -185,6 +185,7 @@ $pg_anchor ='<ul class="anchor">
<colgroup> <colgroup>
<col class="grid_3"> <col class="grid_3">
<col> <col>
<col>
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
@ -749,6 +750,7 @@ $(function(){
<colgroup> <colgroup>
<col class="grid_3"> <col class="grid_3">
<col> <col>
<col>
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
@ -819,7 +821,7 @@ $(function(){
<th scope="row"><label for="it_stock_qty">재고수량</label></th> <th scope="row"><label for="it_stock_qty">재고수량</label></th>
<td> <td>
<?php echo help("<b>주문관리에서 상품별 상태 변경에 따라 자동으로 재고를 가감합니다.</b> 재고는 규격/색상별이 아닌, 상품별로만 관리됩니다."); ?> <?php echo help("<b>주문관리에서 상품별 상태 변경에 따라 자동으로 재고를 가감합니다.</b> 재고는 규격/색상별이 아닌, 상품별로만 관리됩니다."); ?>
<input type="text" name="it_stock_qty" value="<?php echo $it['it_stock_qty']; ?>" id="it_stock_qty" class="frm_input" size="8"> 개</span> <input type="text" name="it_stock_qty" value="<?php echo $it['it_stock_qty']; ?>" id="it_stock_qty" class="frm_input" size="8"> 개
</td> </td>
<td class="group_setting"> <td class="group_setting">
<input type="checkbox" name="chk_ca_it_stock_qty" value="1" id="chk_ca_it_stock_qty"> <input type="checkbox" name="chk_ca_it_stock_qty" value="1" id="chk_ca_it_stock_qty">
@ -835,94 +837,98 @@ $(function(){
<section id="anc_sitfrm_sendcost" class="cbox"> <section id="anc_sitfrm_sendcost" class="cbox">
<h2>배송비</h2> <h2>배송비</h2>
<?php echo $pg_anchor; ?> <?php echo $pg_anchor; ?>
<p><?php echo help('쇼핑몰설정 &gt; 배송비유형 설정에서 <strong>개별배송비</strong>로 설정해야만 아래 설정이 적용됩니다.'); ?></p> <p>쇼핑몰설정 &gt; 배송비유형 설정에서 <strong>개별배송비</strong>로 설정해야만 아래 설정이 적용됩니다.</p>
<div>
<table class="frm_tbl"> <table class="frm_tbl">
<colgroup> <colgroup>
<col class="grid_3"> <col class="grid_3">
<col> <col>
</colgroup> <col>
<tbody> </colgroup>
<tr> <tbody>
<th scope="row"><label for="it_sc_type">배송비 유형</label></th> <tr>
<td> <th scope="row"><label for="it_sc_type">배송비 유형</label></th>
<?php echo help("배송비 유형을 선택하면 자동으로 항목이 변환됩니다."); ?> <td>
<select name="it_sc_type" id="it_sc_type"> <?php echo help("배송비 유형을 선택하면 자동으로 항목이 변환됩니다."); ?>
<option value="0"<?php echo get_selected('0', $it['it_sc_type']); ?>>무료배송</option> <select name="it_sc_type" id="it_sc_type">
<option value="1"<?php echo get_selected('1', $it['it_sc_type']); ?>>조건부 무료배송</option> <option value="0"<?php echo get_selected('0', $it['it_sc_type']); ?>>무료배송</option>
<option value="2"<?php echo get_selected('2', $it['it_sc_type']); ?>>료배송</option> <option value="1"<?php echo get_selected('1', $it['it_sc_type']); ?>>조건부 무료배송</option>
<option value="3"<?php echo get_selected('3', $it['it_sc_type']); ?>>수량별 부과</option> <option value="2"<?php echo get_selected('2', $it['it_sc_type']); ?>>유료배송</option>
</select> <option value="3"<?php echo get_selected('3', $it['it_sc_type']); ?>>수량별 부과</option>
</td> </select>
</tr> </td>
<tr> <td rowspan="4" id="sc_grp" class="group_setting">
<th scope="row"><label for="it_sc_method">배송비 결제</label></th> <input type="checkbox" name="chk_ca_it_sendcost" value="1" id="chk_ca_it_sendcost">
<td> <label for="chk_ca_it_sendcost">분류적용</label>
<select name="it_sc_method" id="it_sc_method"> <input type="checkbox" name="chk_all_it_sendcost" value="1" id="chk_all_it_sendcost">
<option value="0"<?php echo get_selected('0', $it['it_sc_method']); ?>>선불</option> <label for="chk_all_it_sendcost">전체적용</label>
<option value="1"<?php echo get_selected('1', $it['it_sc_method']); ?>>착불</option> </td>
<option value="2"<?php echo get_selected('2', $it['it_sc_method']); ?>>사용자선택</option> </tr>
</select> <tr>
</td> <th scope="row"><label for="it_sc_method">배송비 결제</label></th>
</tr> <td>
<tr> <select name="it_sc_method" id="it_sc_method">
<th scope="row"><label for="it_sc_amount">기본배송비</label></th> <option value="0"<?php echo get_selected('0', $it['it_sc_method']); ?>>선불</option>
<td> <option value="1"<?php echo get_selected('1', $it['it_sc_method']); ?>>착불</option>
<?php echo help("무료배송 이외의 설정에 적용되는 배송비 금액입니다."); ?> <option value="2"<?php echo get_selected('2', $it['it_sc_method']); ?>>사용자선택</option>
<input type="text" name="it_sc_amount" value="<?php echo $it['it_sc_amount']; ?>" id="it_sc_amount" class="frm_input" size="8"> 원 </select>
</td> </td>
</tr> </tr>
<tr id="sc_con_minimum"> <tr>
<th scope="row"><label for="it_sc_minimum">배송비 상세조건</label></th> <th scope="row"><label for="it_sc_amount">기본배송비</label></th>
<td> <td>
주문금액 <input type="text" name="it_sc_minimum" value="<?php echo $it['it_sc_minimum']; ?>" id="it_sc_minimum" class="frm_input" size="8"> 이상 무료 배송 <?php echo help("무료배송 이외의 설정에 적용되는 배송비 금액입니다."); ?>
</td> <input type="text" name="it_sc_amount" value="<?php echo $it['it_sc_amount']; ?>" id="it_sc_amount" class="frm_input" size="8"> 원
</tr> </td>
<tr id="sc_con_qty"> </tr>
<th scope="row"><label for="it_sc_qty">배송비 상세조건</label></th> <tr id="sc_con_minimum">
<td> <th scope="row"><label for="it_sc_minimum">배송비 상세조건</label></th>
<?php echo help("상품의 주문 수량에 따라 배송비가 부과됩니다. 예를 들어 기본배송비가 3,000원 수량을 3으로 설정했을 경우 상품의 주문수량이 5개이면 6,000원 배송비가 부과됩니다."); ?> <td>
주문수량 <input type="text" name="it_sc_qty" value="<?php echo $it['it_sc_qty']; ?>" id="it_sc_qty" class="frm_input" size="8"> 마다 배송비 부과 주문금액 <input type="text" name="it_sc_minimum" value="<?php echo $it['it_sc_minimum']; ?>" id="it_sc_minimum" class="frm_input" size="8"> 이상 무료 배송
</td> </td>
</tr> </tr>
</tbody> <tr id="sc_con_qty">
</table> <th scope="row"><label for="it_sc_qty">배송비 상세조건</label></th>
<script> <td>
$(function() { <?php echo help("상품의 주문 수량에 따라 배송비가 부과됩니다. 예를 들어 기본배송비가 3,000원 수량을 3으로 설정했을 경우 상품의 주문수량이 5개이면 6,000원 배송비가 부과됩니다."); ?>
<?php 주문수량 <input type="text" name="it_sc_qty" value="<?php echo $it['it_sc_qty']; ?>" id="it_sc_qty" class="frm_input" size="8"> 마다 배송비 부과
if($it['it_sc_type'] == 1) { </td>
echo '$("#sc_con_minimum").show();'.PHP_EOL; </tr>
echo '$("#sc_con_qty").hide();'.PHP_EOL; </tbody>
} else if($it['it_sc_type'] == 3) { </table>
echo '$("#sc_con_minimum").show();'.PHP_EOL;
echo '$("#sc_con_qty").hide();'.PHP_EOL; <script>
$(function() {
<?php
if($it['it_sc_type'] == 1) {
echo '$("#sc_con_minimum").show();'.PHP_EOL;
echo '$("#sc_con_qty").hide();'.PHP_EOL;
} else if($it['it_sc_type'] == 3) {
echo '$("#sc_con_minimum").show();'.PHP_EOL;
echo '$("#sc_con_qty").hide();'.PHP_EOL;
} else {
echo '$("#sc_con_minimum").hide();'.PHP_EOL;
echo '$("#sc_con_qty").hide();'.PHP_EOL;
}
?>
$("#it_sc_type").change(function() {
var type = $(this).val();
if(type == "1") {
$("#sc_con_minimum").show();
$("#sc_con_qty").hide();
$("#sc_grp").attr('rowspan','4');
} else if(type == "3") {
$("#sc_con_minimum").hide();
$("#sc_con_qty").show();
$("#sc_grp").attr('rowspan','4');
} else { } else {
echo '$("#sc_con_minimum").hide();'.PHP_EOL; $("#sc_con_minimum").hide();
echo '$("#sc_con_qty").hide();'.PHP_EOL; $("#sc_con_qty").hide();
$("#sc_grp").attr('rowspan','3');
} }
?>
$("#it_sc_type").change(function() {
var type = $(this).val();
if(type == "1") {
$("#sc_con_minimum").show();
$("#sc_con_qty").hide();
} else if(type == "3") {
$("#sc_con_minimum").hide();
$("#sc_con_qty").show();
} else {
$("#sc_con_minimum").hide();
$("#sc_con_qty").hide();
}
});
}); });
</script> });
</div> </script>
<div>
<input type="checkbox" name="chk_ca_it_sendcost" value="1" id="chk_ca_it_sendcost">
<label for="chk_ca_it_sendcost">분류적용</label>
<input type="checkbox" name="chk_all_it_sendcost" value="1" id="chk_all_it_sendcost">
<label for="chk_all_it_sendcost">전체적용</label>
</div>
</section> </section>
<section id="anc_sitfrm_img" class="cbox"> <section id="anc_sitfrm_img" class="cbox">
@ -1293,6 +1299,7 @@ $(function(){
<colgroup> <colgroup>
<col class="grid_3"> <col class="grid_3">
<col> <col>
<col>
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>