Merge branch 'master' of github.com:gnuboard/yc5

This commit is contained in:
chicpro
2013-12-03 13:24:54 +09:00
9 changed files with 123 additions and 115 deletions

View File

@ -94,7 +94,7 @@ include_once('./_head.php');
$it_options = print_item_options($row['it_id'], $s_cart_id);
if($it_options) {
$mod_options = '<div class="sod_option_btn"><button type="button" class="mod_options">선택사항수정</button></div>';
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
$it_name .= '<div class="sod_opt">'.$it_options.'</div>';
}
$point = $sum['point'];
@ -102,7 +102,7 @@ include_once('./_head.php');
?>
<tr>
<td class="sod_bsk_img"><?php echo $image; ?></td>
<td class="sod_img"><?php echo $image; ?></td>
<td>
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">

View File

@ -50,9 +50,6 @@ $order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
<h1 id="win_title">배송지 목록</h1>
<div>
<button type="button" onclick="self.close();">닫기</button>
</div>
<div class="tbl_head01 tbl_wrap">
<table>
<thead>
@ -87,7 +84,7 @@ $order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
<td><?php echo sprintf('%s %s', $row['ad_addr1'], $row['ad_addr2']); ?></td>
<td class="td_mng">
<input type="hidden" value="<?php echo $addr; ?>">
<button type="button" class="sel_address btn_frmline">선택</button>
<button type="button" class="sel_address">선택</button>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?w=d&amp;ad_id=<?php echo $row['ad_id']; ?>" class="del_address">삭제</a>
</td>
</tr>
@ -98,8 +95,9 @@ $order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
</table>
</div>
<div class="btn_list">
<input type="submit" name="act_button" value="선택수정" id="btn_submit">
<div class="win_btn">
<input type="submit" name="act_button" value="선택수정" class="btn_submit">
<button type="button" onclick="self.close();">닫기</button>
</div>
</div>
</form>

View File

@ -257,7 +257,7 @@ function get_intall_file()
$it_name = '<b>' . stripslashes($row['it_name']) . '</b>';
$it_options = print_item_options($row['it_id'], $s_cart_id);
if($it_options) {
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
$it_name .= '<div class="sod_opt">'.$it_options.'</div>';
}
// 복합과세금액
@ -298,14 +298,14 @@ function get_intall_file()
}
if($cp_count) {
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
$cp_button = '<button type="button" class="cp_btn btn_frmline">적용</button>';
$it_cp_count++;
}
}
?>
<tr>
<td class="sod_bsk_img"><?php echo $image; ?></td>
<td class="sod_img"><?php echo $image; ?></td>
<td>
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
@ -320,7 +320,7 @@ function get_intall_file()
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
<td class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>
<td class="td_mngsmall"><?php echo $cp_button; ?></td>
<td class="td_numbig"><span class="ct_sell_price"><?php echo number_format($sell_price); ?></span></td>
<td class="td_numbig"><span class="total_price"><?php echo number_format($sell_price); ?></span></td>
<td class="td_numbig"><?php echo number_format($point); ?></td>
</tr>
@ -1081,10 +1081,10 @@ $(function() {
var $cp_row_el;
var zipcode = "";
$(".it_coupon_btn").click(function() {
$(".cp_btn").click(function() {
$cp_btn_el = $(this);
$cp_row_el = $(this).closest("tr");
$("#it_coupon_frm").remove();
$("#cp_frm").remove();
var it_id = $cp_btn_el.closest("tr").find("input[name^=it_id]").val();
$.post(
@ -1134,7 +1134,7 @@ $(function() {
}
}
var $s_el = $cp_row_el.find(".ct_sell_price");;
var $s_el = $cp_row_el.find(".total_price");;
sell_price = parseInt($cp_row_el.find("input[name^=it_price]").val());
sell_price = sell_price - parseInt(price);
if(sell_price < 0) {
@ -1146,22 +1146,22 @@ $(function() {
$cp_row_el.find("input[name^=cp_price]").val(price);
calculate_total_price();
$("#it_coupon_frm").remove();
$("#cp_frm").remove();
$cp_btn_el.text("변경").focus();
if(!$cp_row_el.find(".it_coupon_cancel").size())
$cp_btn_el.after("<button type=\"button\" class=\"it_coupon_cancel btn_frmline\">취소</button>");
if(!$cp_row_el.find(".cp_cancel").size())
$cp_btn_el.after("<button type=\"button\" class=\"cp_cancel btn_frmline\">취소</button>");
});
$("#it_coupon_close").live("click", function() {
$("#it_coupon_frm").remove();
$("#cp_close").live("click", function() {
$("#cp_frm").remove();
$cp_btn_el.focus();
});
$(".it_coupon_cancel").live("click", function() {
$(".cp_cancel").live("click", function() {
coupon_cancel($(this).closest("tr"));
calculate_total_price();
$("#it_coupon_frm").remove();
$(this).closest("tr").find(".it_coupon_btn").text("적용").focus();
$("#cp_frm").remove();
$(this).closest("tr").find(".cp_btn").text("적용").focus();
$(this).remove();
});
@ -1362,7 +1362,7 @@ $(function() {
function coupon_cancel($el)
{
var $dup_sell_el = $el.find(".ct_sell_price");
var $dup_sell_el = $el.find(".total_price");
var $dup_price_el = $el.find("input[name^=cp_price]");
var org_sell_price = $el.find("input[name^=it_price]").val();

View File

@ -40,7 +40,7 @@ $count = mysql_num_rows($result);
?>
<!-- 쿠폰 선택 시작 { -->
<div id="it_coupon_frm">
<div id="cp_frm">
<?php if($count > 0) { ?>
<div class="tbl_head02 tbl_wrap">
<table>
@ -87,11 +87,11 @@ $count = mysql_num_rows($result);
</div>
<?php
} else {
echo '<p>사용할 수 있는 쿠폰이 없습니다.</p>';
echo '<div class="empty_list">사용할 수 있는 쿠폰이 없습니다.</div>';
}
?>
<div class="btn_confirm">
<button type="button" id="it_coupon_close" class="btn_submit">닫기</button>
<button type="button" id="cp_close" class="btn_submit">닫기</button>
</div>
</div>
<!-- } 쿠폰 선택 끝 -->