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

This commit is contained in:
whitedot
2013-05-08 14:24:11 +09:00
15 changed files with 1244 additions and 52 deletions

View File

@ -2,7 +2,7 @@
include_once('./_common.php');
$g4['title'] = '장바구니';
include_once('./_head.php');
include_once(G4_MSHOP_PATH.'/_head.php');
?>
<div id="sod_bsk">
@ -16,5 +16,5 @@ include_once('./_head.php');
</div>
<?php
include_once('./_tail.php');
include_once(G4_MSHOP_PATH.'/_tail.php');
?>

View File

@ -137,7 +137,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
<?php
if ($s_page == 'cart.php')
echo '<td class="td_smallmng"><a href="./cartupdate.php?act=d&amp;ct_id='.$row['ct_id'].'">삭제</a></td>';
echo '<td class="td_smallmng"><a href="'.G4_SHOP_URL.'/cartupdate.php?act=d&amp;ct_id='.$row['ct_id'].'">삭제</a></td>';
else if ($s_page == 'orderinquiryview.php')
echo '<td class="td_smallmng">'.$row['ct_status'].'</td>';
?>
@ -220,9 +220,9 @@ if ($tot_amount > 0) {
<?php if ($s_page == 'cart.php') { ?>
<div id="sod_bsk_act">
<?php if ($i == 0) { ?>
<a href="<?php echo G4_SHOP_URL; ?>" class="btn01">쇼핑 계속하기</a>
<a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $continue_ca_id; ?>" class="btn01">쇼핑 계속하기</a>
<?php } else { ?>
<input type="hidden" name="url" value="./orderform.php">
<input type="hidden" name="url" value="<?php echo G4_SHOP_URL; ?>/orderform.php">
<p>장바구니의 상품을 주문하시려면 <strong>주문하기</strong>를 클릭하세요. <strong>비우기</strong>는 장바구니의 상품을 모두 비웁니다.</p>
<a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $continue_ca_id; ?>" class="btn01">쇼핑 계속하기</a>
<a href="javascript:form_check('buy');" class="btn02">주문하기</a>
@ -250,7 +250,7 @@ function form_check(act) {
<?php
if (get_session('ss_mb_id')) // 회원인 겨우
{
echo "f.action = './orderform.php';";
echo "f.action = '".G4_SHOP_URL."/orderform.php';";
echo "f.submit();";
}
else
@ -260,7 +260,7 @@ function form_check(act) {
else if (act == "alldelete")
{
f.act.value = act;
f.action = "./cartupdate.php";
f.action = "<?php echo G4_SHOP_URL; ?>/cartupdate.php";
f.submit();
}
else if (act == "allupdate")
@ -293,7 +293,7 @@ function form_check(act) {
}
}
f.act.value = act;
f.action = "./cartupdate.php";
f.action = "<?php echo G4_SHOP_URL; ?>/cartupdate.php";
f.submit();
}

View File

@ -63,23 +63,19 @@ if ($_COOKIE['ck_it_id'] != $it_id) {
$g4['title'] = $it['it_name'].' &gt; '.$it['ca_name'];
include_once('./_head.php');
include_once(G4_MSHOP_PATH.'/_head.php');
// 분류 위치
// HOME > 1단계 > 2단계 ... > 6단계 분류
$ca_id = $it['ca_id'];
include G4_SHOP_PATH.'/navigation1.inc.php';
include G4_MSHOP_PATH.'/navigation1.inc.php';
// 이 분류에 속한 하위분류 출력
include G4_SHOP_PATH.'/listcategory.inc.php';
include G4_MSHOP_PATH.'/listcategory.inc.php';
if ($is_admin)
echo '<div class="sit_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/itemform.php?w=u&amp;it_id='.$it_id.'" class="btn_admin">상품 관리</a></div>';
$himg = G4_DATA_PATH.'/item/'.$it_id.'_h';
if (file_exists($himg))
echo '<div id="sit_himg" class="sit_img"><img src="'.G4_DATA_URL.'/item/'.$it_id.'_h" alt=""></div>';
// 상단 HTML
echo '<div id="sit_hhtml">'.stripslashes($it['it_mobile_head_html']).'</div>';
@ -93,7 +89,7 @@ $sql = " select it_id, it_name from {$g4['shop_item_table']}
$row = sql_fetch($sql);
if ($row['it_id']) {
$prev_title = '이전상품보기 '.$row['it_name'];
$prev_href = '<a href="./item.php?it_id='.$row['it_id'].'">';
$prev_href = '<a href="'.G4_SHOP_URL.'/item.php?it_id='.$row['it_id'].'">';
$prev_href = '</a>';
} else {
$prev_title = '';
@ -111,7 +107,7 @@ $sql = " select it_id, it_name from {$g4['shop_item_table']}
$row = sql_fetch($sql);
if ($row['it_id']) {
$next_title = '다음 상품 '.$row['it_name'];
$next_href = '<a href="./item.php?it_id='.$row['it_id'].'">';
$next_href = '<a href="'.G4_SHOP_URL.'/item.php?it_id='.$row['it_id'].'">';
$next_href2 = '</a>';
} else {
$next_title = '';
@ -148,7 +144,7 @@ function pg_anchor($anc_id) {
if (G4_HTTPS_DOMAIN)
$action_url = G4_HTTPS_DOMAIN.'/'.G4_SHOP_DIR.'/cartupdate.php';
else
$action_url = './cartupdate.php';
$action_url = G4_SHOP_URL.'/cartupdate.php';
?>
<div id="sit">
@ -335,7 +331,7 @@ else
}
else
{
url = "./itemrecommend.php?it_id=" + it_id;
url = "<?php echo G4_SHOP_URL; ?>/itemrecommend.php?it_id=" + it_id;
opt = "scrollbars=yes,width=616,height=420,top=10,left=10";
popup_window(url, "itemrecommend", opt);
}
@ -393,9 +389,9 @@ else
</div>
<?php } ?>
<?php if ($it['it_explan']) { // 상품 상세설명 ?>
<?php if ($it['it_explan'] || $it['it_mobile_explan']) { // 상품 상세설명 ?>
<div id="sit_inf_explan">
<?php echo conv_content($it['it_explan'], 1); ?>
<?php echo ($it['it_mobile_explan'] ? conv_content($it['it_mobile_explan'], 1) : conv_content($it['it_explan'], 1)); ?>
</div>
<?php } ?>
@ -434,7 +430,7 @@ else
<?php
$use_page_rows = 10; // 페이지당 목록수
include_once('./itemuse.inc.php');
include_once(G4_SHOP_PATH.'/itemuse.inc.php');
?>
</section>
@ -444,7 +440,7 @@ else
<?php
$qa_page_rows = 10; // 페이지당 목록수
include_once('./itemqa.inc.php');
include_once(G4_SHOP_PATH.'/itemqa.inc.php');
?>
</section>
@ -487,7 +483,7 @@ else
$result = sql_query($sql);
$num = @mysql_num_rows($result);
if ($num)
include G4_SHOP_PATH.'/maintype10.inc.php';
include G4_MSHOP_PATH.'/maintype10.inc.php';
else
echo '<p class="sit_empty">이 상품과 관련된 상품이 없습니다.</p>';
?>
@ -731,7 +727,7 @@ else
<?php
// 하단 HTML
echo stripslashes($it['it_mobiletail_html']);
echo stripslashes($it['it_mobile_tail_html']);
include_once('./_tail.php');
include_once(G4_MSHOP_PATH.'/_tail.php');
?>

View File

@ -11,7 +11,7 @@ if (!$ca['ca_id'])
$g4['title'] = $ca['ca_name'].' 상품리스트';
include_once('./_head.php');
include_once(G4_MSHOP_PATH.'/_head.php');
// 스킨을 지정했다면 지정한 스킨을 사용함 (스킨의 다양화)
//if ($skin) $ca[ca_skin] = $skin;
@ -24,7 +24,7 @@ if ($is_admin)
<?
$nav_ca_id = $ca_id;
include G4_SHOP_PATH.'/navigation1.inc.php';
include G4_MSHOP_PATH.'/navigation1.inc.php';
// 상단 HTML
echo '<div id="sct_hhtml">'.stripslashes($ca['ca_mobile_head_html']).'</div>';
@ -96,7 +96,7 @@ echo get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SEL
?>
<?php
include_once('./_tail.php');
include_once(G4_MSHOP_PATH.'/_tail.php');
echo "\n<!-- {$ca['ca_skin']} -->\n";
echo "\n<!-- {$ca['ca_mobile_skin']} -->\n";
?>

View File

@ -5,7 +5,7 @@ if (!$is_member)
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/mypage.php"));
$g4['title'] = '마이페이지';
include_once('./_head.php');
include_once(G4_MSHOP_PATH.'/_head.php');
?>
<img src="<?php echo G4_SHOP_URL; ?>/img/top_mypage.gif" border=0><p>
@ -60,7 +60,7 @@ function member_leave()
<table width=98% cellpadding=0 cellspacing=0 align=center>
<tr>
<td height=35><img src='<?php echo G4_SHOP_URL; ?>/img/my_title01.gif'></td>
<td align=right><a href='./orderinquiry.php'><img src='<?php echo G4_SHOP_URL; ?>/img/icon_more.gif' border=0></a></td>
<td align=right><a href='<?php echo G4_SHOP_URL; ?>/orderinquiry.php'><img src='<?php echo G4_SHOP_URL; ?>/img/icon_more.gif' border=0></a></td>
</tr>
</table>
@ -76,7 +76,7 @@ include G4_MSHOP_PATH.'/orderinquiry.sub.php';
<table width=98% cellpadding=0 cellspacing=0 align=center>
<tr>
<td height=35 colspan=2><img src='<?php echo G4_SHOP_URL; ?>/img/my_title02.gif'></td>
<td align=right><a href='./wishlist.php'><img src='<?php echo G4_SHOP_URL; ?>/img/icon_more.gif' border=0></a></td>
<td align=right><a href='<?php echo G4_SHOP_URL; ?>/wishlist.php'><img src='<?php echo G4_SHOP_URL; ?>/img/icon_more.gif' border=0></a></td>
</tr>
<tr><td height=2 colspan=3 class=c1></td></tr>
<tr align=center height=25 class=c2>
@ -100,11 +100,11 @@ for ($i=0; $row = sql_fetch_array($result); $i++)
$image = get_it_image($row['it_id']."_s", 50, 50, $row['it_id']);
echo "<tr align=center height=60>";
echo "<td width=100>$image</td>";
echo "<td align=left><a href='./item.php?it_id={$row['it_id']}'>".stripslashes($row['it_name'])."</a></td>";
echo "<td>$row[wi_time]</td>";
echo "</tr>";
echo '<tr align=center height=60>';
echo '<td width=100>'.$image.'</td>';
echo '<td align=left><a href="'.G4_SHOP_URL.'"/item.php?it_id='.$row['it_id'].'">'.stripslashes($row['it_name']).'</a></td>';
echo '<td>'.$row['wi_time'].'</td>';
echo '</tr>';
}
if ($i == 0)
@ -115,5 +115,5 @@ if ($i == 0)
<?php
include_once("./_tail.php");
include_once(G4_MSHOP_PATH.'/_tail.php');
?>

570
mobile/shop/orderform.php Normal file
View File

@ -0,0 +1,570 @@
<?php
include_once('./_common.php');
set_session("ss_direct", $sw_direct);
// 장바구니가 비어있는가?
if ($sw_direct) {
$tmp_uq_id = get_session("ss_uq_direct");
}
else {
$tmp_uq_id = get_session("ss_uq_id");
}
if (get_cart_count($tmp_uq_id) == 0)
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
// 포인트 결제 대기 필드 추가
//sql_query(" ALTER TABLE `$g4[shop_order_table]` ADD `od_temp_point` INT NOT NULL AFTER `od_temp_card` ", false);
$g4['title'] = '주문서 작성';
include_once(G4_MSHOP_PATH.'/_head.php');
// 새로운 주문번호 생성
$od_id = get_uniqid();
set_session('ss_order_uniqid', $od_id);
?>
<div id="sod_frm">
<?php
$s_page = 'orderform.php';
$s_uq_id = $tmp_uq_id;
echo '<p>주문하실 상품을 확인하세요.</p>';
include_once(G4_MSHOP_PATH.'/cartsub.inc.php');
if (file_exists(G4_MSHOP_PATH.'/settle_'.$default['de_card_pg'].'.inc.php')) {
include G4_MSHOP_PATH.'/settle_'.$default['de_card_pg'].'.inc.php';
}
$good_mny = (int)$tot_sell_amount + (int)$send_cost;
$order_action_url = G4_HTTPS_SHOP_URL.'/orderformupdate.php';
?>
<form name="forderform" method="post" action="<?php echo $order_action_url; ?>" onsubmit="return forderform_check(this);" autocomplete="off">
<input type="hidden" name="od_amount" value="<?php echo $tot_sell_amount; ?>">
<input type="hidden" name="od_send_cost" value="<?php echo $send_cost; ?>">
<section id="sod_frm_orderer">
<h2>주문하시는 분</h2>
<table class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="od_name">이름</label></th>
<td><input type="text" name="od_name" value="<?php echo $member['mb_name']; ?>" id="od_name" required class="frm_input required" maxlength="20"></td>
</tr>
<?php if (!$is_member) { // 비회원이면 ?>
<tr>
<th scope="row"><label for="od_pwd">비밀번호</label></th>
<td>
<input type="password" name="od_pwd" id="od_pwd" maxlength="20">
영,숫자 3~20자 (주문서 조회시 필요)
</td>
</tr>
<?php } ?>
<tr>
<th scope="row"><label for="od_tel">전화번호</label></th>
<td><input type="text" name="od_tel" value="<?php echo $member['mb_tel']; ?>" id="od_tel" required class="frm_input required" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="od_hp">핸드폰</label></th>
<td><input type="text" name="od_hp" value="<?php echo $member['mb_hp']; ?>" id="od_hp" class="frm_input" maxlength="20"></td>
</tr>
<?php $zip_href = G4_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2'; ?>
<tr>
<th scope="row">주소</th>
<td>
<label for="od_zip1" class="sound_only">우편번호 앞자리<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_zip1" value="<?php echo $member['mb_zip1'] ?>" id="od_zip1" required class="frm_input required" size="2" maxlength="3">
-
<label for="od_zip2" class="sound_only">우편번호 뒷자리<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_zip2" value="<?php echo $member['mb_zip2'] ?>" id="od_zip2" required class="frm_input required" size="2" maxlength="3">
<span id="od_win_zip" style="display:block"></span>
<label for="od_addr1" class="sound_only">주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_addr1" value="<?php echo $member['mb_addr1'] ?>" id="od_addr1" required class="frm_input frm_address required" size="50">
<label for="od_addr2" class="sound_only">상세주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_addr2" value="<?php echo $member['mb_addr2'] ?>" id="od_addr2" required class="frm_input frm_address required" size="50">
<script>
// 우편번호 자바스크립트 비활성화 대응을 위한 코드
$('<a href="<?php echo $zip_href; ?>" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#od_win_zip');
$("#od_win_zip").css("display", "inline");
$("#od_zip1, #od_zip2, #od_addr1").attr('readonly', 'readonly');
</script>
</td>
</tr>
<tr>
<th scope="row"><label for="od_email">E-mail</label></th>
<td><input type="text" name="od_email" value="<?php echo $member['mb_email']; ?>" id="od_email" required class="frm_input required" size="35" maxlength="100"></td>
</tr>
<?php if ($default['de_hope_date_use']) { // 배송희망일 사용 ?>
<tr>
<th scope="row"><label for="od_hope_date">희망배송일</label></th>
<td>
<select name="od_hope_date" id="od_hope_date">
<option value="">선택하십시오.</option>
<?php
for ($i=0; $i<7; $i++) {
$sdate = date("Y-m-d", time()+86400*($default['de_hope_date_after']+$i));
echo '<option value="'.$sdate.'">'.$sdate.' ('.get_yoil($sdate).')</option>'.PHP_EOL;
}
?>
</select>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</section>
<section id="sod_frm_taker">
<h2>받으시는 분</h2>
<div id="sod_frm_same">
<input type="checkbox" name="same" id="same" onclick="javascript:gumae2baesong(document.forderform);">
<label for="same">주문하시는 분과 받으시는 분의 정보가 동일한 경우 체크하십시오.</label>
</div>
<table class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="od_b_name">이름</label></th>
<td><input type="text" name="od_b_name" id="od_b_name" required class="frm_input required" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="od_b_tel">전화번호</label></th>
<td><input type="text" name="od_b_tel" id="od_b_tel" required class="frm_input required" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="od_b_hp">핸드폰</label></th>
<td><input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20"></td>
</tr>
<?php $zip_href = G4_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2'; ?>
<tr>
<th scope="row">주소</th>
<td>
<label for="od_b_zip1" class="sound_only">우편번호 앞자리<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_b_zip1" id="od_b_zip1" required class="frm_input required" size="2" maxlength="3">
-
<label for="od_b_zip2" class="sound_only">우편번호 뒷자리<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_b_zip2" id="od_b_zip2" required class="frm_input required" size="2" maxlength="3">
<span id="od_winb_zip" style="display:block"></span>
<label for="od_b_addr1" class="sound_only">주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_b_addr1" id="od_b_addr1" required class="frm_input frm_address required" size="50">
<label for="od_b_addr2" class="sound_only">상세주소<strong class="sound_only"> 필수</strong></label>
<input type="text" name="od_b_addr2" id="od_b_addr2" required class="frm_input frm_address required" size="50">
<script>
// 우편번호 자바스크립트 비활성화 대응을 위한 코드
$('<a href="<?php echo $zip_href; ?>" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#od_winb_zip');
$("#od_winb_zip").css("display", "inline");
$("#od_b_zip1, #od_b_zip2, #od_b_addr1").attr('readonly', 'readonly');
</script>
</td>
</tr>
<tr>
<th scope="row"><label for="od_memo">전하실말씀</label></th>
<td><textarea name="od_memo" id="od_memo"></textarea></td>
</tr>
</tbody>
</table>
</section>
<section id="sod_frm_pay">
<h2>결제정보 입력</h2>
<?php
$multi_settle == 0;
$checked = '';
$escrow_title = "";
if ($default['de_escrow_use']) {
$escrow_title = "에스크로 ";
}
if ($default['de_bank_use'] || $default['de_vbank_use'] || $default['de_bank_use'] || $default['de_bank_use'] || $default['de_bank_use']) {
echo '<fieldset id="sod_frm_paysel">';
echo '<legend>결제방법 선택</legend>';
}
// 무통장입금 사용
if ($default['de_bank_use']) {
$multi_settle++;
echo '<input type="radio" id="od_settle_bank" name="od_settle_case" value="무통장" '.$checked.'> <label for="od_settle_bank">무통장입금</label>'.PHP_EOL;
$checked = '';
}
// 가상계좌 사용
if ($default['de_vbank_use']) {
$multi_settle++;
echo '<input type="radio" id="od_settle_vbank" name=od_settle_case value="가상계좌" '.$checked.'> <label for="od_settle_vbank">'.$escrow_title.'가상계좌</label>'.PHP_EOL;
$checked = '';
}
// 계좌이체 사용
if ($default['de_iche_use']) {
$multi_settle++;
echo '<input type="radio" id="od_settle_iche" name=od_settle_case value="계좌이체" '.$checked.'> <label for="od_settle_iche">'.$escrow_title.'계좌이체</label>'.PHP_EOL;
$checked = '';
}
// 휴대폰 사용
if ($default['de_hp_use']) {
$multi_settle++;
echo '<input type="radio" id="od_settle_hp" name=od_settle_case value="휴대폰" '.$checked.'> <label for="od_settle_hp">휴대폰</label>'.PHP_EOL;
$checked = '';
}
// 신용카드 사용
if ($default['de_card_use']) {
$multi_settle++;
echo '<input type="radio" id="od_settle_card" name=od_settle_case value="신용카드" '.$checked.'> <label for="od_settle_card">신용카드</label>'.PHP_EOL;
$checked = '';
}
if ($default['de_bank_use']) {
// 은행계좌를 배열로 만든후
$str = explode("\n", trim($default['de_bank_account']));
if (count($str) <= 1)
{
$bank_account = '<input type="hidden" name="od_bank_account" value="'.$str[0].'">'.$str[0].PHP_EOL;
}
else
{
$bank_account = '<select name="od_bank_account" id="od_bank_account">'.PHP_EOL;
$bank_account .= '<option value="">선택하십시오.</option>';
for ($i=0; $i<count($str); $i++)
{
//$str[$i] = str_replace("\r", "", $str[$i]);
$str[$i] = trim($str[$i]);
$bank_account .= '<option value="'.$str[$i].'">'.$str[$i].'</option>'.PHP_EOL;
}
$bank_account .= '</select>'.PHP_EOL;
}
echo '<div id="settle_bank" style="display:none">';
echo '<label for="od_bank_account" class="sound_only">입금할 계좌</label>';
echo $bank_account;
echo '<label for="od_deposit_name" class="sound_only">입금자명</label>';
echo '<input type="text" name="od_deposit_name" id="od_deposit_name" class="frm_input" size="10" maxlength="20">';
echo '</div>';
}
if ($default['de_bank_use'] || $default['de_vbank_use'] || $default['de_bank_use'] || $default['de_bank_use'] || $default['de_bank_use']) {
echo '</fieldset>';
}
// 회원이면서 포인트사용이면
$temp_point = 0;
if ($is_member && $config['cf_use_point'])
{
// 포인트 결제 사용 포인트보다 회원의 포인트가 크다면
if ($member['mb_point'] >= $default['de_point_settle'])
{
$temp_point = $tot_amount * ($default['de_point_per'] / 100); // 포인트 결제 % 적용
$temp_point = (int)((int)($temp_point / 100) * 100); // 100점 단위
$member_point = (int)((int)($member['mb_point'] / 100) * 100); // 100점 단위
if ($temp_point > $member_point)
$temp_point = $member_point;
echo '<div>결제포인트 : <input type="text" id="od_temp_point" name="od_temp_point" value="0" size="10">점 (100점 단위로 입력하세요.)</div>';
echo '<div>회원님의 보유포인트('.display_point($member['mb_point']).')중 <strong>'.display_point($temp_point).'</strong>(주문금액 '.$default['de_point_per'].'%) 내에서 결제가 가능합니다.</div>';
$multi_settle++;
}
}
?>
<?php
if (!$default['de_card_point'])
echo '<p><strong>무통장입금</strong> 이외의 결제 수단으로 결제하시는 경우 포인트를 적립해드리지 않습니다.</p>';
if ($multi_settle == 0)
echo '<p>결제할 방법이 없습니다.<br>운영자에게 알려주시면 감사하겠습니다.</p>';
?>
</section>
<!-- Payplus Plug-in 설치 안내 -->
<p id="display_setup_message" style="display:none">
<span class="red">결제를 계속 하시려면 상단의 노란색 표시줄을 클릭</span>하시거나<br>
<a href="http://pay.kcp.co.kr/plugin/file_vista/PayplusWizard.exe"><span class="bold">[수동설치]</span></a>를 눌러 Payplus Plug-in을 설치하시기 바랍니다.<br>
[수동설치]를 눌러 설치하신 경우 <span class="red bold">새로고침(F5)키</span>를 눌러 진행하시기 바랍니다.
</p>
<div id="display_pay_button" class="btn_confirm" style="display:none">
<input type="submit" value="주문하기" class="btn_submit">
<a href="javascript:history.go(-1);" class="btn01">취소</a>
</div>
</form>
<?php if ($default['de_escrow_use']) { ?>
<section id="sod_frm_escrow">
<h2>에스크로 안내</h2>
<form name="escrow_foot" method="post" action="http://admin.kcp.co.kr/Modules/escrow/kcp_pop.jsp">
<input type="hidden" name="site_cd" value="SR<?php echo $default['de_kcp_mid']; ?>">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align='center'><img src="<?php echo G4_SHOP_URL; ?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
</tr>
<tr>
<td style='line-height:150%;'>
<br>
<strong>에스크로(escrow) 제도란?</strong>
<br>상거래 시에, 판매자와 구매자의 사이에 신뢰할 수 있는 중립적인 제삼자(여기서는 <a href='http://kcp.co.kr' target='_blank'>KCP</a>)가 중개하여
금전 또는 물품을 거래를 하도록 하는 것, 또는 그러한 서비스를 말한다. 거래의 안전성을 확보하기 위해 이용된다.
(2006.4.1 전자상거래 소비자보호법에 따른 의무 시행)
<br><br>
5만원 이상의 현금 거래에만 해당(에스크로 결제를 선택했을 경우에만 해당)되며,
신용카드로 구매하는 거래, 배송이 필요하지 않은 재화 등을 구매하는 거래(컨텐츠 등),
5만원 미만의 현금 거래에는 해당되지 않는다.
<br>
<br>
</td>
</tr>
</table>
<map name="Map" id="Map">
<area shape="rect" coords="5,62,74,83" href="javascript:escrow_foot_check()" alt="가입사실확인">
</map>
</form>
</section>
<script>
function escrow_foot_check()
{
var status = "width=500 height=450 menubar=no,scrollbars=no,resizable=no,status=no";
var obj = window.open('', 'escrow_foot_pop', status);
document.escrow_foot.method = "post";
document.escrow_foot.target = "escrow_foot_pop";
document.escrow_foot.action = "http://admin.kcp.co.kr/Modules/escrow/kcp_pop.jsp";
document.escrow_foot.submit();
}
</script>
<?php } ?>
<!-- <?php if ($default[de_card_use] || $default[de_iche_use]) { echo "결제대행사 : $default[de_card_pg]"; } ?> -->
</div>
<script>
function forderform_check(f)
{
errmsg = "";
errfld = "";
var deffld = "";
check_field(f.od_name, "주문하시는 분 이름을 입력하십시오.");
if (typeof(f.od_pwd) != 'undefined')
{
clear_field(f.od_pwd);
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_addr1, "우편번호 찾기를 이용하여 주문하시는 분 주소를 입력하십시오.");
check_field(f.od_addr2, " 주문하시는 분의 상세주소를 입력하십시오.");
check_field(f.od_zip1, "");
check_field(f.od_zip2, "");
clear_field(f.od_email);
if(f.od_email.value=='' || f.od_email.value.search(/(\S+)@(\S+)\.(\S+)/) == -1)
error_field(f.od_email, "E-mail을 바르게 입력해 주십시오.");
if (typeof(f.od_hope_date) != "undefined")
{
clear_field(f.od_hope_date);
if (!f.od_hope_date.value)
error_field(f.od_hope_date, "희망배송일을 선택하여 주십시오.");
}
check_field(f.od_b_name, "받으시는 분 이름을 입력하십시오.");
check_field(f.od_b_tel, "받으시는 분 전화번호를 입력하십시오.");
check_field(f.od_b_addr1, "우편번호 찾기를 이용하여 받으시는 분 주소를 입력하십시오.");
check_field(f.od_b_addr2, "받으시는 분의 상세주소를 입력하십시오.");
check_field(f.od_b_zip1, "");
check_field(f.od_b_zip2, "");
var od_settle_bank = document.getElementById("od_settle_bank");
if (od_settle_bank) {
if (od_settle_bank.checked) {
check_field(f.od_bank_account, "계좌번호를 선택하세요.");
check_field(f.od_deposit_name, "입금자명을 입력하세요.");
}
}
// 배송비를 받지 않거나 더 받는 경우 아래식에 + 또는 - 로 대입
f.od_send_cost.value = parseInt(f.od_send_cost.value);
if (errmsg)
{
alert(errmsg);
errfld.focus();
return false;
}
var settle_case = document.getElementsByName("od_settle_case");
var settle_check = false;
var settle_method = "";
for (i=0; i<settle_case.length; i++)
{
if (settle_case[i].checked)
{
settle_check = true;
settle_method = settle_case[i].value;
break;
}
}
if (!settle_check)
{
alert("결제방식을 선택하십시오.");
return false;
}
var tot_amount = <?php echo (int)$tot_amount; ?>;
var max_point = <?php echo (int)$temp_point; ?>;
var temp_point = 0;
if (typeof(f.od_temp_point) != "undefined") {
if (f.od_temp_point.value)
{
temp_point = parseInt(f.od_temp_point.value);
if (temp_point < 0) {
alert("포인트를 0 이상 입력하세요.");
f.od_temp_point.select();
return false;
}
if (temp_point > tot_amount) {
alert("주문금액 보다 많이 포인트결제할 수 없습니다.");
f.od_temp_point.select();
return false;
}
if (temp_point > <?php echo (int)$member['mb_point']; ?>) {
alert("회원님의 포인트보다 많이 결제할 수 없습니다.");
f.od_temp_point.select();
return false;
}
if (temp_point > max_point) {
alert(max_point + "점 이상 결제할 수 없습니다.");
f.od_temp_point.select();
return false;
}
if (parseInt(parseInt(temp_point / 100) * 100) != temp_point) {
alert("포인트를 100점 단위로 입력하세요.");
f.od_temp_point.select();
return false;
}
}
}
if (document.getElementById("od_settle_iche")) {
if (document.getElementById("od_settle_iche").checked) {
if (tot_amount - temp_point < 150) {
alert("계좌이체는 150원 이상 결제가 가능합니다.");
return false;
}
}
}
if (document.getElementById("od_settle_card")) {
if (document.getElementById("od_settle_card").checked) {
if (tot_amount - temp_point < 1000) {
alert("신용카드는 1000원 이상 결제가 가능합니다.");
return false;
}
}
}
if (document.getElementById("od_settle_hp")) {
if (document.getElementById("od_settle_hp").checked) {
if (tot_amount - temp_point < 350) {
alert("휴대폰은 350원 이상 결제가 가능합니다.");
return false;
}
}
}
// pay_method 설정
switch(settle_method)
{
case "계좌이체":
f.pay_method.value = "010000000000";
break;
case "가상계좌":
f.pay_method.value = "001000000000";
break;
case "휴대폰":
f.pay_method.value = "000010000000";
break;
case "신용카드":
f.pay_method.value = "100000000000";
break;
default:
f.pay_method.value = "무통장";
break;
}
// kcp 결제정보설정
f.buyr_name.value = f.od_name.value;
f.buyr_mail.value = f.od_email.value;
f.buyr_tel1.value = f.od_tel.value;
f.buyr_tel2.value = f.od_hp.value;
f.rcvr_name.value = f.od_b_name.value;
f.rcvr_tel1.value = f.od_b_tel.value;
f.rcvr_tel2.value = f.od_b_hp.value;
f.rcvr_mail.value = f.od_email.value;
f.rcvr_zipx.value = f.od_b_zip1.value + f.od_b_zip2.value;
f.rcvr_add1.value = f.od_b_addr1.value;
f.rcvr_add2.value = f.od_b_addr2.value;
if(f.pay_method.value != "무통장") {
if(jsf__pay( f )) {
return true;
} else {
return false;
}
} else {
return true;
}
}
// 구매자 정보와 동일합니다.
function gumae2baesong(f)
{
f.od_b_name.value = f.od_name.value;
f.od_b_tel.value = f.od_tel.value;
f.od_b_hp.value = f.od_hp.value;
f.od_b_zip1.value = f.od_zip1.value;
f.od_b_zip2.value = f.od_zip2.value;
f.od_b_addr1.value = f.od_addr1.value;
f.od_b_addr2.value = f.od_addr2.value;
}
$(function() {
$("#od_settle_bank").bind("click", function() {
$("[name=od_deposit_name]").val( $("[name=od_b_name]").val() );
$("#settle_bank").show();
});
$("#od_settle_iche,#od_settle_card,#od_settle_vbank").bind("click", function() {
$("#settle_bank").hide();
});
});
</script>
<?php
include_once(G4_MSHOP_PATH.'/_tail.php');
?>

View File

@ -0,0 +1,71 @@
<?php
include_once('./_common.php');
define("_ORDERINQUIRY_", true);
$od_pwd = sql_password($od_pwd);
// 회원인 경우
if ($is_member)
{
$sql_common = " from {$g4['shop_order_table']} where mb_id = '{$member['mb_id']}' ";
}
else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번호가 넘어왔다면
{
$sql_common = " from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
}
else // 그렇지 않다면 로그인으로 가기
{
goto_url(G4_BBS_URL.'/login.php?url='.urlencode(G4_SHOP_URL.'/orderinquiry.php'));
}
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
$row = sql_fetch($sql);
$total_count = $row['cnt'];
// 비회원 주문확인시 비회원의 모든 주문이 다 출력되는 오류 수정
// 조건에 맞는 주문서가 없다면
if ($total_count == 0)
{
if ($is_member) // 회원일 경우는 메인으로 이동
alert('주문이 존재하지 않습니다.', G4_SHOP_URL);
else // 비회원일 경우는 이전 페이지로 이동
alert('주문이 존재하지 않습니다.');
}
$rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
// 비회원 주문확인의 경우 바로 주문서 상세조회로 이동
if (!$is_member)
{
$sql = " select od_id, uq_id from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
$row = sql_fetch($sql);
if ($row['od_id']) {
set_session("ss_uq_id_inquiry", $row['uq_id']);
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&amp;uq_id='.$row['uq_id']);
}
}
$g4['title'] = '주문내역조회';
include_once(G4_MSHOP_PATH.'/_head.php');
?>
<div id="sod_v">
<p>주문서번호 링크를 누르시면 주문상세내역을 조회하실 수 있습니다.</p>
<?php
$limit = " limit $from_record, $rows ";
include G4_MSHOP_PATH.'/orderinquiry.sub.php';
?>
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
</div>
<?php
include_once(G4_MSHOP_PATH.'/_tail.php');
?>

View File

@ -0,0 +1,54 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
?>
<?php if (!$limit) { ?>총 <?php echo $cnt; ?> 건<?php } ?>
<table class="basic_tbl">
<thead>
<tr>
<th scope="col">주문서번호</th>
<th scope="col">주문일시</th>
<th scope="col">상품수</th>
<th scope="col">주문금액</th>
<th scope="col">입금액</th>
<th scope="col">미입금액</th>
</tr>
</thead>
<tbody>
<?php
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from {$g4['shop_order_table']} a
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
where mb_id = '{$member['mb_id']}'
group by a.od_id
order by a.od_id desc
$limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
?>
<tr>
<td>
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uq_id=<?php echo $row['uq_id']; ?>"><?php echo $row['od_id']; ?></a>
</td>
<td><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
<td class="td_bignum"><?php echo $row['itemcount']; ?></td>
<td class="td_bignum"><?php echo display_amount($row['orderamount']); ?></td>
<td class="td_bignum"><?php echo display_amount($row['receiptamount']); ?></td>
<td class="td_bignum"><?php echo display_amount($row['misu']); ?></td>
</tr>
<?php
}
if ($i == 0)
echo '<tr><td colspan="6" class="empty_table">주문 내역이 없습니다.</td></tr>';
?>
</tbody>
</table>

View File

@ -0,0 +1,486 @@
<?php
include_once('./_common.php');
// 불법접속을 할 수 없도록 세션에 아무값이나 저장하여 hidden 으로 넘겨서 다음 페이지에서 비교함
$token = md5(uniqid(rand(), true));
set_session("ss_token", $token);
if (!$is_member) {
if (get_session("ss_temp_uq_id") != $_GET['uq_id'])
alert("직접 링크로는 주문서 조회가 불가합니다.\\n\\n주문조회 화면을 통하여 조회하시기 바랍니다.");
}
$sql = "select * from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ";
$od = sql_fetch($sql);
if (!$od['od_id']) {
echo "$od_id $uq_id $MxIssueNO";
alert("조회하실 주문서가 없습니다.", G4_SHOP_URL);
}
// 결제방법
$settle_case = $od['od_settle_case'];
set_session('ss_temp_uq_id', $uq_id);
$g4['title'] = '주문상세내역';
include_once(G4_MSHOP_PATH.'/_head.php');
$s_uq_id = $od['uq_id'];
$s_page = 'orderinquiryview.php';
?>
<div id="sod_fin">
<p>주문번호 <strong><?php echo $od_id; ?></strong></p>
<section id="sod_fin_list">
<h2>주문하신 상품</h2>
<span class="sound_only">상품 상태 설명</span>
<dl>
<dt>주문</dt>
<dd>주문이 접수되었습니다.</dd>
<dt>준비</dt>
<dd>상품 준비 중입니다.</dd>
<dt>배송</dt>
<dd>상품 배송 중입니다.</dd>
<dt>완료</dt>
<dd>상품 배송이 완료되었습니다.</dd>
</dl>
<?php include G4_MSHOP_PATH.'/cartsub.inc.php'; ?>
</section>
<div id="sod_fin_view">
<h2>결제/배송 정보</h2>
<?php
$receipt_amount = $od['od_receipt_bank']
+ $od['od_receipt_card']
+ $od['od_receipt_hp']
+ $od['od_receipt_point']
- $od['od_cancel_card']
- $od['od_refund_amount'];
$misu = true;
if ($tot_amount - $tot_cancel_amount == $receipt_amount) {
$wanbul = " (완불)";
$misu = false; // 미수금 없음
}
else
{
$wanbul = display_amount($receipt_amount);
}
// 120615 : 취소된 값을 두번 빼주는 결과가 되어 코드 수정 (군포돼지님)
//$misu_amount = $tot_amount - $tot_cancel_amount - $receipt_amount - $od[od_dc_amount];
$misu_amount = $tot_amount - $receipt_amount - $od['od_dc_amount'];
?>
<section id="sod_fin_pay">
<h3>결제정보</h3>
<table class="basic_tbl">
<colgroup>
<col class="grid_3">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row">주문번호</th>
<td><?php echo $od_id; ?></td>
</tr>
<tr>
<th scope="row">주문일시</th>
<td><?php echo $od['od_time']; ?></td>
</tr>
<?php
if ($od['od_settle_case'] == '신용카드')
{
$sql = " select * from {$g4['shop_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
$result = sql_query($sql);
$cd = mysql_fetch_array($result);
?>
<tr>
<th scope="row">결제방식</th>
<td>신용카드 결제</td>
</tr>
<tr>
<th scope="row">결제금액</th>
<td><?php echo display_amount($cd['cd_amount']); ?></td>
</tr>
<tr>
<th scope="row">승인일시</th>
<td><?php echo $cd['cd_trade_ymd'].' '.$cd['cd_trade_hms']; ?></td>
</tr>
<tr>
<th scope="row">승인번호</th>
<td><?php echo $cd['cd_app_no']; ?></td>
</tr>
<tr>
<th scope="row">영수증</th>
<td><a href="javascript:;" onclick="window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=<?php echo $od['od_escrow1']; ?>', 'winreceipt', 'width=620,height=670')">영수증 출력</a></td>
</tr>
<?php
}
else if ($od['od_settle_case'] == '휴대폰')
{
$sql = " select * from {$g4['shop_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
$result = sql_query($sql);
$cd = mysql_fetch_array($result);
?>
<tr>
<th scope="row">결제방식</th>
<td>휴대폰 결제</td>
</tr>
<tr>
<th scope="row">결제금액</th>
<td><?php echo display_amount($cd['cd_amount']); ?></td>
</tr>
<tr>
<th scope="row">승인일시</th>
<td><?php echo $cd['cd_trade_ymd'].' '.$cd['cd_trade_hms']; ?></td>
</tr>
<tr>
<th scope="row">휴대폰번호</th>
<td><?php echo $cd['cd_opt02']; ?></td>
</tr>
<?php //echo '<tr><th scope="row">영수증</th><td><a href="javascript:;" onclick="window.open(\'http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no='.$od[od_escrow1].'\', \'winreceipt\', \'width=620,height=670\')">영수증 출력</a></td></tr>'; ?>
<tr>
<th scope="row">영수증</th>
<td><a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no={$od['od_escrow1']}', 'winreceipt', 'width=370,height=550')">영수증 출력</a></td>
</tr>
<?php
}
else
{
?>
<tr>
<th scope="row">결제방식</th>
<td><?php echo $od['od_settle_case']; ?></td>
</tr>
<?php
if ($od['od_receipt_bank'])
{
?>
<tr>
<th scope="row">입금액</th>
<td><?php echo display_amount($od['od_receipt_bank']); ?></td>
</tr>
<tr>
<td scope="row">입금확인일시</th>
<td><?php echo $od['od_bank_time']; ?></td>
</tr>
<?php
}
else
{
?>
<tr>
<th scope="row">입금액</th>
<td>아직 입금되지 않았거나 입금정보를 입력하지 못하였습니다.</td>
</tr>
<?php
}
if ($od['od_settle_case'] != '계좌이체') {
?>
<tr>
<th scope="row">계좌번호</th>
<td><?php echo $od['od_bank_account']; ?></td>
</tr>
<?php
}
?>
<tr>
<th scope="row">입금자명</th>
<td><?php echo $od['od_deposit_name']; ?></td>
</tr>
<?php
if ($od['od_escrow1']) {
?>
<tr>
<th scope="row">KCP 거래번호</th>
<td><?php echo $od['od_escrow1']; ?></td>
</tr>
<?
}
}
if ($od['od_receipt_point'] > 0)
{
?>
<tr>
<th scope="row">포인트사용</th>
<td><?php echo display_point($od['od_receipt_point']); ?></td>
</tr>
<?php
}
if ($od['od_cancel_card'] > 0)
{
?>
<tr>
<th scope="row">승인취소 금액</th>
<td><?php echo display_amount($od['od_cancel_card']); ?></td>
</tr>
<?php
}
if ($od['od_refund_amount'] > 0)
{
?>
<tr>
<th scope="row">환불 금액</th>
<td><?php echo display_amount($od['od_refund_amount']); ?></td>
</tr>
<?php
}
// 현금영수증 발급을 사용하는 경우에만
if ($default['de_taxsave_use']) {
// 미수금이 없고 현금일 경우에만 현금영수증을 발급 할 수 있습니다.
if ($misu_amount == 0 && $od['od_receipt_bank']) {
if ($default['de_card_pg'] == 'kcp') {
?>
<tr>
<th scope="row">현금영수증</th>
<td>
<?
if ($od['od_cash'])
{
?>
<a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Service/Cash/Cash_Bill_Common_View.jsp?cash_no=<?php echo $od['od_cash_no']; ?>', 'taxsave_receipt', 'width=360,height=647,scrollbars=0,menus=0');">현금영수증 확인하기</a>
<?php
}
else
{
?>
<a href="javascript:;" onclick="window.open('<?php echo G4_SHOP_URL; ?>/taxsave_kcp.php?od_id=<?php echo $od_id; ?>&amp;uq_id=<?php echo $od['uq_id']; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');">현금영수증을 발급하시려면 클릭하십시오.</a>
<?php } ?>
</td>
</tr>
<?php
}
}
}
?>
</tbody>
</table>
</section>
<section id="sod_fin_orderer">
<h3>주문하신 분</h3>
<table class="basic_tbl">
<colgroup>
<col class="grid_3">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row">이 름</th>
<td><?php echo $od['od_name']; ?></td>
</tr>
<tr>
<th scope="row">전화번호</th>
<td><?php echo $od['od_tel']; ?></td>
</tr>
<tr>
<th scope="row">핸드폰</th>
<td><?php echo $od['od_hp']; ?></td>
</tr>
<tr>
<th scope="row">주 소</th>
<td><?php echo sprintf("(%s-%s)&nbsp;%s %s", $od['od_zip1'], $od['od_zip2'], $od['od_addr1'], $od['od_addr2']); ?></td>
</tr>
<tr>
<th scope="row">E-mail</th>
<td><?php echo $od['od_email']; ?></td>
</tr>
</tbody>
</table>
</section>
<section id="sod_fin_receiver">
<h3>받으시는 분</h3>
<table class="basic_tbl">
<colgroup>
<col class="grid_3">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row">이 름</th>
<td><?php echo $od['od_b_name']; ?></td>
</tr>
<tr>
<th scope="row">전화번호</th>
<td><?php echo $od['od_b_tel']; ?></td>
</tr>
<tr>
<th scope="row">핸드폰</th>
<td><?php echo $od['od_b_hp']; ?></td>
</tr>
<tr>
<th scope="row">주 소</th>
<td><?php echo sprintf("(%s-%s)&nbsp;%s %s", $od['od_b_zip1'], $od['od_b_zip2'], $od['od_b_addr1'], $od['od_b_addr2']); ?></td>
</tr>
<?php
// 희망배송일을 사용한다면
if ($default['de_hope_date_use'])
{
?>
<tr>
<th scope="row">희망배송일</td>
<td><?php echo substr($od['od_hope_date'],0,10).' ('.get_yoil($od['od_hope_date']).')' ;?></td>
</tr>
<?php }
if ($od['od_memo'])
{
?>
<tr>
<th scope="row">전하실 말씀</td>
<td><?php echo conv_content($od['od_memo'], 0); ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</section>
<section id="sod_fin_dvr">
<h3>배송정보</h3>
<table class="basic_tbl">
<colgroup>
<col class="grid_3">
<col>
</colgroup>
<tbody>
<?php
// 배송회사 정보
$dl = sql_fetch(" select * from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
if ($od['od_invoice'] || !$od['misu'])
{
if (is_array($dl))
{
// get 으로 날리는 경우 운송장번호를 넘김
if (strpos($dl['dl_url'], "=")) $invoice = $od['od_invoice'];
?>
<tr>
<th scope="row">배송회사</th>
<td><?php echo $dl['dl_company']; ?> [<a href="<?php echo $dl['dl_url'].$invoice; ?>" target="_blank">배송조회하기</a>]</td>
</tr>
<tr>
<th scope="row">운송장번호</th>
<td><?php echo $od['od_invoice']; ?></td>
</tr>
<tr>
<th scope="row">배송일시</th>
<td><?php echo $od['od_invoice_time']; ?></td>
</tr>
<tr>
<th>고객센터 전화</th>
<td><?php echo $dl['dl_tel']; ?></td>
</tr>
<?php
}
else
{
?>
<tr>
<td class="empty_table">아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</section>
</div>
<section id="sod_fin_tot">
<h2>결제합계</h2>
<ul>
<li>
총 구매액
<strong><?php echo display_amount($tot_amount); ?></strong>
</li>
<?php
if ($od['od_dc_amount'] > 0) {
echo '<li>';
echo '할인액'.PHP_EOL;
echo '<strong>'.display_amount($od['od_dc_amount']).'</strong>';
echo '</li>';
}
if ($misu_amount > 0) {
echo '<li>';
echo '미결제액'.PHP_EOL;
echo '<strong>'.display_amount($misu_amount).'</strong>';
echo '</li>';
}
?>
<li id="alrdy">
결제액
<strong><?php echo $wanbul; ?></strong>
</li>
</ul>
</section>
<section id="sod_fin_cancel">
<h2>주문취소</h2>
<?php
// 취소한 내역이 없다면
if ($tot_cancel_amount == 0) {
if ($od['od_temp_bank'] > 0 && $od['od_receipt_bank'] == 0) {
?>
<button type="button" onclick="document.getElementById('sod_fin_cancelfrm').style.display='block';">주문 취소하기</button>
<div id="sod_fin_cancelfrm">
<form method="post" action="<?php echo G4_SHOP_URL; ?>/orderinquirycancel.php">
<input type="hidden" name="od_id" value="<?php echo $od['od_id']; ?>">
<input type="hidden" name="uq_id" value="<?php echo $od['uq_id']; ?>">
<input type="hidden" name="token" value="<?php echo $token; ?>">
<label for="cancel_memo">취소사유</label>
<input type="text" name="cancel_memo" id="cancel_memo" required class="frm_input" size="40" maxlength="100">
<input type="submit" value="확인" class="btn_frmline">
</form>
</div>
<?php
}
} else {
$misu_amount = $misu_amount - $send_cost;
?>
<p>주문 취소, 반품, 품절된 내역이 있습니다.</p>
<?php } ?>
</section>
<?php if ($od['od_settle_case'] == '가상계좌' && $default['de_card_test'] && $is_admin) {
preg_match("/(\s[^\s]+\s)/", $od['od_bank_account'], $matchs);
$deposit_no = trim($matchs[1]);
?>
<fieldset>
<legend>모의입금처리</legend>
<p>관리자가 가상계좌 테스트를 한 경우에만 보입니다.</p>
<form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank">
<input type="text" name="e_trade_no" value="<?php echo $od['od_escrow1']; ?>" size="80"><br />
<input type="text" name="deposit_no" value="<?php echo $deposit_no; ?>" size="80"><br />
<input type="text" name="req_name" value="<?php echo $od['od_name']; ?>" size="80"><br />
<input type="text" name="noti_url" value="<?php echo G4_SHOP_URL; ?>/settle_kcp_common.php" size="80"><br /><br />
<input type="submit" value="입금통보 테스트">
</form>
</fieldset>
<?php } ?>
</div>
<?php
include_once(G4_MSHOP_PATH.'/_tail.php');
?>

View File

@ -2,7 +2,7 @@
include_once('./_common.php');
$g4['title'] = "상품 검색 결과";
include_once('./_head.php');
include_once(G4_MSHOP_PATH.'/_head.php');
// QUERY 문에 공통적으로 들어가는 내용
// 상품명에 검색어가 포한된것과 상품판매가능인것만
@ -95,11 +95,11 @@ $total_count = $row['cnt'];
{
$sql2 = " select ca_name from $g4[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
$row2 = sql_fetch($sql2);
$ca_temp = '<a href="./list.php?ca_id='.substr($save['ca_id'],0,2).'">'.$row2['ca_name'].'</a> &gt; ';
$ca_temp = '<a href="'.G4_SHOP_URL.'/list.php?ca_id='.substr($save['ca_id'],0,2).'">'.$row2['ca_name'].'</a> &gt; ';
}
?>
<table class="basic_tbl">
<caption><?php echo $ca_temp?><a href="./list.php?ca_id=<?php echo $save['ca_id']; ?>"><?php echo $row['ca_name']; ?></a> 상품<?php echo $save['cnt']; ?>개</caption>
<caption><?php echo $ca_temp?><a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $save['ca_id']; ?>"><?php echo $row['ca_name']; ?></a> 상품<?php echo $save['cnt']; ?>개</caption>
<thead>
<tr>
<th scope="col">이미지</td>
@ -143,5 +143,5 @@ $total_count = $row['cnt'];
</div>
<?php
include_once('./_tail.php');
include_once(G4_MSHOP_PATH.'/_tail.php');
?>

View File

@ -5,7 +5,7 @@ if (!$is_member)
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL.'/mypage.php'));
$g4['title'] = "보관함";
include_once('./_head.php');
include_once(G4_MSHOP_PATH.'/_head.php');
?>
<div id="sod_ws">
@ -73,9 +73,9 @@ include_once('./_head.php');
<input type="hidden" name="ct_qty[<?php echo $i; ?>]" value="1">
</td>
<td class="sod_ws_img"><?php echo $image; ?></td>
<td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>
<td><a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>
<td class="td_datetime"><?php echo $row['wi_time']; ?></td>
<td class="td_smallmng"><a href="./wishupdate.php?w=d&amp;wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
<td class="td_smallmng"><a href="<?php echo G4_SHOP_URL; ?>/wishupdate.php?w=d&amp;wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
</tr>
<?php
}
@ -136,7 +136,7 @@ include_once('./_head.php');
f.sw_direct.value = 0;
}
f.action="./cartupdate.php";
f.action="<?php echo G4_SHOP_URL; ?>/cartupdate.php";
f.submit();
}
@ -144,5 +144,5 @@ include_once('./_head.php');
</script>
<?php
include_once('./_tail.php');
include_once(G4_MSHOP_PATH.'/_tail.php');
?>

View File

@ -220,7 +220,7 @@ if ($tot_amount > 0) {
<?php if ($s_page == 'cart.php') { ?>
<div id="sod_bsk_act">
<?php if ($i == 0) { ?>
<a href="<?php echo G4_SHOP_URL; ?>" class="btn01">쇼핑 계속하기</a>
<a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $continue_ca_id; ?>" class="btn01">쇼핑 계속하기</a>
<?php } else { ?>
<input type="hidden" name="url" value="./orderform.php">
<p>장바구니의 상품을 주문하시려면 <strong>주문하기</strong>를 클릭하세요. <strong>비우기</strong>는 장바구니의 상품을 모두 비웁니다.</p>

View File

@ -1,6 +1,11 @@
<?php
include_once('./_common.php');
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/orderform.php');
return;
}
set_session("ss_direct", $sw_direct);
// 장바구니가 비어있는가?
if ($sw_direct) {
@ -11,7 +16,7 @@ else {
}
if (get_cart_count($tmp_uq_id) == 0)
alert('장바구니가 비어 있습니다.', './cart.php');
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
// 포인트 결제 대기 필드 추가
//sql_query(" ALTER TABLE `$g4[shop_order_table]` ADD `od_temp_point` INT NOT NULL AFTER `od_temp_card` ", false);

View File

@ -1,5 +1,10 @@
<?php
include_once("./_common.php");
include_once('./_common.php');
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/orderinquiry.php');
return;
}
define("_ORDERINQUIRY_", true);
@ -47,7 +52,7 @@ if (!$is_member)
$row = sql_fetch($sql);
if ($row['od_id']) {
set_session("ss_uq_id_inquiry", $row['uq_id']);
goto_url(G4_ShOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&amp;uq_id='.$row['uq_id']);
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&amp;uq_id='.$row['uq_id']);
}
}

View File

@ -1,6 +1,11 @@
<?php
include_once('./_common.php');
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/orderinquiryview.php');
return;
}
// 불법접속을 할 수 없도록 세션에 아무값이나 저장하여 hidden 으로 넘겨서 다음 페이지에서 비교함
$token = md5(uniqid(rand(), true));
set_session("ss_token", $token);