기타 추적되지 않는 파일들..

This commit is contained in:
2025-07-02 14:16:37 +09:00
parent 2d7bbdca89
commit b6080d2e47
74 changed files with 14184 additions and 2028 deletions

View File

@ -64,13 +64,28 @@ ob_start();
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 예약 관련
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
$resv = sql_fetch("SELECT * FROM {$g5['g5_shop_cart_table']} WHERE ct_id = '{$row['ct_id']}' ");
}
// 합계금액 계산 (예약상품일 경우 합계방식 변경)
$price_calc = "((ct_price + io_price) * ct_qty)";
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1 && isset($resv['ct_types']) && $resv['ct_types'] == 1) {
$price_calc = "((ct_price + io_price) * ct_qty * ct_date_d +
(COALESCE(ct_user_pri1, 0) * COALESCE(ct_user_qty1, 0)) +
(COALESCE(ct_user_pri2, 0) * COALESCE(ct_user_qty2, 0)) +
(COALESCE(ct_user_pri3, 0) * COALESCE(ct_user_qty3, 0)))";
}
// 합계금액 계산
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
SUM(ct_point * ct_qty) as point,
SUM(ct_qty) as qty
from {$g5['g5_shop_cart_table']}
where it_id = '{$row['it_id']}'
and od_id = '$s_cart_id' ";
$sql = "SELECT SUM(IF(io_type = 1, (io_price * ct_qty), $price_calc)) AS price,
SUM(ct_point * ct_qty) AS point,
SUM(ct_qty) AS qty
FROM {$g5['g5_shop_cart_table']}
WHERE it_id = '{$row['it_id']}'
AND od_id = '$s_cart_id'";
$sum = sql_fetch($sql);
if (!$goods)
@ -95,9 +110,9 @@ ob_start();
$a1 = '<strong>';
$a2 = '</strong>';
$image_width = 80;
$image_height = 80;
$image = get_it_image($row['it_id'], $image_width, $image_height);
$image_width = 60;
$image_height = 60;
$image = rb_it_image($row['it_id'], $image_width, $image_height);
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
$it_options = print_item_options($row['it_id'], $s_cart_id);
@ -185,12 +200,23 @@ ob_start();
<span class="total_img"><?php echo $image; ?></span>
<div class="sod_opt"><?php echo $it_options; ?></div>
<div class="li_mod" ><?php echo $cp_button; ?></div>
<?php
//예약정보 로드
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
if(isset($resv['ct_types']) && $resv['ct_types'] == 1) {
include (G5_PATH.'/rb/rb.mod/reservation/info.inc.php');
}
}
?>
</div>
<div class="li_prqty">
<span class="prqty_price li_prqty_sp"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
<span class="prqty_qty li_prqty_sp"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
<span class="prqty_sc li_prqty_sp"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
<?php } ?>
<span class="total_point li_prqty_sp"><span>적립포인트 </span><strong><?php echo number_format($sum['point']); ?></strong></span>
</div>
@ -231,11 +257,13 @@ ob_start();
<dt class="sod_bsk_coupon">쿠폰</dt>
<dd class="sod_bsk_coupon"><strong id="ct_tot_coupon">0 원</strong></dd>
<?php } ?>
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
<dt class="sod_bsk_dvr">배송비</dt>
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
<?php } ?>
<dt class="sod_bsk_point">포인트</dt>
<dd class="sod_bsk_point"><strong><?php echo number_format($tot_point); ?> </strong></dd>
<dd class="sod_bsk_point"><strong><?php echo number_format($tot_point); ?> P</strong></dd>
<dt class="sod_bsk_cnt">총계</dt>
<dd class="sod_bsk_cnt">
<?php $tot_price = $tot_sell_price + $send_cost; // 총계 = 주문상품금액합계 + 배송비 ?>
@ -282,7 +310,7 @@ if($is_kakaopay_use) {
<?php echo $content; ?>
<section id="sod_frm_orderer" >
<h2>주문하시는 분</h2>
<h2>주문자 정보</h2>
<div class="odf_list">
<ul>
@ -303,30 +331,30 @@ if($is_kakaopay_use) {
<li>
<label for="od_tel">전화번호<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_tel" value="<?php echo get_text($member['mb_tel']); ?>" id="od_tel" required class="frm_input required" maxlength="20">
<input type="text" name="od_tel" value="<?php echo get_text($member['mb_tel']); ?>" id="od_tel" class="frm_input" maxlength="20">
</li>
<li>
<label for="od_hp">핸드폰</label>
<input type="text" name="od_hp" value="<?php echo get_text($member['mb_hp']); ?>" id="od_hp" class="frm_input" maxlength="20">
<label for="od_hp">휴대전화</label>
<input type="text" name="od_hp" value="<?php echo get_text($member['mb_hp']); ?>" id="od_hp" required class="frm_input required" maxlength="20">
</li>
<li>
<strong>주소</strong>
<label for="od_b_addr">주소<strong class="sound_only"> 필수</strong></label>
<span class="add_num"><label for="od_zip" class="sound_only">우편번호<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_zip" value="<?php echo $member['mb_zip1'].$member['mb_zip2']; ?>" id="od_zip" required class="frm_input required" size="5" maxlength="6">
<input type="text" name="od_zip" value="<?php echo $member['mb_zip1'].$member['mb_zip2']; ?>" id="od_zip" required class="frm_input required" size="5" maxlength="6" placeholder="우편번호">
<button type="button" class="btn_frmline btn_addsch" onclick="win_zip('forderform', 'od_zip', 'od_addr1', 'od_addr2', 'od_addr3', 'od_addr_jibeon');">주소검색</button></span>
<label for="od_addr1" class="sound_only">기본주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_addr1" value="<?php echo get_text($member['mb_addr1']) ?>" id="od_addr1" required class="frm_input frm_address required">
<input type="text" name="od_addr1" value="<?php echo get_text($member['mb_addr1']) ?>" id="od_addr1" required class="frm_input frm_address required" placeholder="기본주소">
<label for="od_addr2" class="sound_only">상세주소</label>
<input type="text" name="od_addr2" value="<?php echo get_text($member['mb_addr2']) ?>" id="od_addr2" class="frm_input frm_address">
<input type="text" name="od_addr2" value="<?php echo get_text($member['mb_addr2']) ?>" id="od_addr2" class="frm_input frm_address" placeholder="상세주소">
<label for="od_addr3" class="sound_only">참고항목</label>
<input type="text" name="od_addr3" value="<?php echo get_text($member['mb_addr3']) ?>" id="od_addr3" class="frm_input frm_address" readonly="readonly">
<input type="text" name="od_addr3" value="<?php echo get_text($member['mb_addr3']) ?>" id="od_addr3" class="frm_input frm_address" readonly="readonly" placeholder="참고항목">
<input type="hidden" name="od_addr_jibeon" value="<?php echo get_text($member['mb_addr_jibeon']); ?>"><br>
</li>
<li>
<label for="od_email">E-mail<strong class="sound_only"> 필수</strong></label>
<input type="email" name="od_email" value="<?php echo $member['mb_email']; ?>" id="od_email" required class="frm_input required" maxlength="100">
<input type="text" name="od_email" value="<?php echo $member['mb_email']; ?>" id="od_email" required class="frm_input required" maxlength="100">
</li>
<?php if ($default['de_hope_date_use']) { // 배송희망일 사용 ?>
@ -350,7 +378,7 @@ if($is_kakaopay_use) {
</section>
<section id="sod_frm_taker">
<h2>받으시는 분</h2>
<h2>사용자(수령자) 정보</h2>
<div class="odf_list">
<ul>
@ -373,7 +401,7 @@ if($is_kakaopay_use) {
if(isset($row['ad_id']) && $row['ad_id']) {
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_def">'.PHP_EOL;
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
$addr_list .= '<label for="ad_sel_addr_def">기본</label>'.PHP_EOL;
}
// 최근배송지
@ -386,14 +414,14 @@ if($is_kakaopay_use) {
$result = sql_query($sql);
for($i=0; $row=sql_fetch_array($result); $i++) {
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근배송지('.($row['ad_subject'] ? get_text($row['ad_subject']) : get_text($row['ad_name'])).')</label>';
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근('.($row['ad_subject'] ? get_text($row['ad_subject']) : get_text($row['ad_name'])).')</label>';
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_'.($i+1).'"> '.PHP_EOL.$val2.PHP_EOL;
}
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="new" id="od_sel_addr_new">'.PHP_EOL;
$addr_list .= '<label for="od_sel_addr_new">신규배송지</label>'.PHP_EOL;
$addr_list .= '<label for="od_sel_addr_new">신규</label>'.PHP_EOL;
$addr_list .='<a href="'.G5_SHOP_URL.'/orderaddress.php" id="order_address">배송지목록</a>';
$addr_list .='<a href="'.G5_SHOP_URL.'/orderaddress.php" id="order_address">주소지목록</a>';
} else {
// 주문자와 동일
$addr_list .= '<input type="checkbox" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
@ -409,7 +437,7 @@ if($is_kakaopay_use) {
<label for="ad_subject">배송지명</label>
<input type="text" name="ad_subject" id="ad_subject" class="frm_input" maxlength="20">
<input type="checkbox" name="ad_default" id="ad_default" value="1">
<label for="ad_default" class="ad_default">기본배송지로 설정</label>
<label for="ad_default" class="ad_default">기본주소지로 설정</label>
</li>
<?php
@ -421,14 +449,14 @@ if($is_kakaopay_use) {
</li>
<li>
<label for="od_b_tel">전화번호<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_b_tel" id="od_b_tel" required class="frm_input required" maxlength="20">
<input type="text" name="od_b_tel" id="od_b_tel" class="frm_input" maxlength="20">
</li>
<li>
<label for="od_b_hp">핸드폰</label>
<input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20">
<label for="od_b_hp">휴대전화</label>
<input type="text" name="od_b_hp" id="od_b_hp" class="frm_input required" required maxlength="20">
</li>
<li>
<strong>주소</strong>
<label for="od_b_addr">주소<strong class="sound_only"> 필수</strong></label>
<label for="od_b_zip" class="sound_only">우편번호<strong class="sound_only"> 필수</strong></label>
<span class="add_num"><input type="text" name="od_b_zip" id="od_b_zip" required class="frm_input required" size="5" maxlength="6">
<button type="button" class="btn_frmline btn_addsch" onclick="win_zip('forderform', 'od_b_zip', 'od_b_addr1', 'od_b_addr2', 'od_b_addr3', 'od_b_addr_jibeon');">주소 검색</button></span>
@ -447,6 +475,31 @@ if($is_kakaopay_use) {
</ul>
</div>
</section>
<?php
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
$resv = sql_fetch("SELECT ct_user_qty1 FROM {$g5['g5_shop_cart_table']} WHERE od_id = '$s_cart_id' AND ct_select = '1' LIMIT 1");
$ct_user_qty1 = (int)$resv['ct_user_qty1'];
if(isset($ct_user_qty1) && $ct_user_qty1 > 0) {
?>
<section id="sod_frm_taker">
<h2>추가사용자 정보</h2>
<div class="odf_list">
<ul>
<?php for($i = 1; $i <= $ct_user_qty1; $i++) { ?>
<li>
<label for="od_b_name">사용자 <?php echo $i; ?><strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_names[]" required class="frm_input required" required style="width:25%;" placeholder="이름">
<input type="text" name="od_hps[]" class="frm_input required" required style="width:50%;" placeholder="연락처">
</li>
<?php } ?>
</ul>
</div>
</section>
<?php } ?>
<?php } ?>
@ -529,10 +582,12 @@ if($is_kakaopay_use) {
<th>총 주문금액</th>
<td><span id="od_tot_price"><?php echo number_format($tot_price); ?></span>원</td>
</tr>
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
<tr>
<th>추가배송비</th>
<td><span id="od_send_cost2">0</span>원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)</td>
<td><span id="od_send_cost2">0</span>원</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
@ -1558,9 +1613,47 @@ function pay_approval()
return false;
}
<?php if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { ?>
function make_additional_user_data() {
var names = [];
var hps = [];
$("input[name='od_names[]']").each(function() {
names.push($(this).val().trim());
});
$("input[name='od_hps[]']").each(function() {
hps.push($(this).val().trim());
});
// 기존 숨은 필드 제거
$("input[name='od_names_final'], input[name='od_hps_final']").remove();
// 숨은 필드로 추가
$("<input>", {
type: "hidden",
name: "od_names_final",
value: names.join('|')
}).appendTo("#forderform");
$("<input>", {
type: "hidden",
name: "od_hps_final",
value: hps.join('|')
}).appendTo("#forderform");
}
<?php } ?>
function forderform_check()
{
<?php if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { ?>
make_additional_user_data();
<?php } ?>
// 무통장만 여기에처 처리한다.
// 재고체크
var stock_msg = order_stock_check();
@ -1606,7 +1699,7 @@ function orderfield_check(f)
if( (f.od_pwd.value.length<3) || (f.od_pwd.value.search(/([^A-Za-z0-9]+)/)!=-1) )
error_field(f.od_pwd, "회원이 아니신 경우 주문서 조회시 필요한 비밀번호를 3자리 이상 입력해 주십시오.");
}
check_field(f.od_tel, "주문하시는 분 전화번호를 입력하십시오.");
check_field(f.od_hp, "주문하시는 분 휴대전화 번호를 입력하십시오.");
check_field(f.od_addr1, "주소검색을 이용하여 주문하시는 분 주소를 입력하십시오.");
//check_field(f.od_addr2, " 주문하시는 분의 상세주소를 입력하십시오.");
check_field(f.od_zip, "");
@ -1623,7 +1716,7 @@ function orderfield_check(f)
}
check_field(f.od_b_name, "받으시는 분 이름을 입력하십시오.");
check_field(f.od_b_tel, "받으시는 분 전화번호를 입력하십시오.");
check_field(f.od_b_hp, "받으시는 분 휴대전화 번호를 입력하십시오.");
check_field(f.od_b_addr1, "주소검색을 이용하여 받으시는 분 주소를 입력하십시오.");
//check_field(f.od_b_addr2, "받으시는 분의 상세주소를 입력하십시오.");
check_field(f.od_b_zip, "");