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

This commit is contained in:
chicpro
2013-09-03 18:22:42 +09:00
17 changed files with 301 additions and 291 deletions

View File

@ -885,7 +885,7 @@ $pg_anchor .='<li><a href="#anc_sodr_chk">결제상세정보 확인</a></li>
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="od_b_hp"><span class="sound_only">받으시는 분 </span>핸드폰</label></th> <th scope="row"><label for="od_b_hp"><span class="sound_only">받으시는 분 </span>핸드폰</label></th>
<td><input type="text" name="od_b_hp" value="<?php echo $od['od_b_hp']; ?>" id=-"od_b_hp" class="frm_input required"></td> <td><input type="text" name="od_b_hp" value="<?php echo $od['od_b_hp']; ?>" id="od_b_hp" class="frm_input required"></td>
</tr> </tr>
<tr> <tr>
<th scope="row"><span class="sound_only">받으시는 분 </span>주소</th> <th scope="row"><span class="sound_only">받으시는 분 </span>주소</th>

View File

@ -16,8 +16,8 @@ if(!$row['pp_id'])
<form name="fpersonalpaycopy" method="post" action="./personalpaycopyupdate.php" onsubmit="return form_check(this);"> <form name="fpersonalpaycopy" method="post" action="./personalpaycopyupdate.php" onsubmit="return form_check(this);">
<input type="hidden" name="pp_id" value="<?php echo $pp_id; ?>"> <input type="hidden" name="pp_id" value="<?php echo $pp_id; ?>">
<div class="cbox"> <div class="new_win">
<h1>개인결제 복사</h1> <h1 id="new_win_title">개인결제 복사</h1>
<table class="frm_tbl"> <table class="frm_tbl">
<tbody> <tbody>

View File

@ -19,7 +19,9 @@ else
$pp['pp_use'] = 1; $pp['pp_use'] = 1;
} }
if($popup == 'yes') { $wrp_tag_st = '';
$wrp_tag_end = '';
if($popup == 'yes') { // 팝업창일 때
include_once(G4_PATH.'/head.sub.php'); include_once(G4_PATH.'/head.sub.php');
$pp['od_id'] = $od_id; $pp['od_id'] = $od_id;
$sql = " select od_id, od_name, (od_temp_amount - od_receipt_amount) as misu $sql = " select od_id, od_name, (od_temp_amount - od_receipt_amount) as misu
@ -34,9 +36,14 @@ if($popup == 'yes') {
if($od['misu'] > 0) if($od['misu'] > 0)
$pp['pp_amount'] = $od['misu']; $pp['pp_amount'] = $od['misu'];
$wrp_tag_st = '<div class="new_win">'.PHP_EOL.'<h1 id="new_win_title">'.$html_title.'</h1>';
$wrp_tag_end = '</div>';
} }
else else { // 현재페이지일 때
include_once (G4_ADMIN_PATH.'/admin.head.php'); include_once (G4_ADMIN_PATH.'/admin.head.php');
$wrp_tag_st = '<section class="cbox">'.PHP_EOL.'<h2>'.$html_title.'</h2>';
$wrp_tag_end = '</section>';
}
?> ?>
<form name="fpersonalpayform" action="./personalpayformupdate.php" method="post" onsubmit="return form_check(this);"> <form name="fpersonalpayform" action="./personalpayformupdate.php" method="post" onsubmit="return form_check(this);">
<input type="hidden" name="w" value="<?php echo $w; ?>"> <input type="hidden" name="w" value="<?php echo $w; ?>">
@ -48,8 +55,7 @@ else
<input type="hidden" name="page" value="<?php echo $page; ?>"> <input type="hidden" name="page" value="<?php echo $page; ?>">
<input type="hidden" name="popup" value="<?php echo $popup; ?>"> <input type="hidden" name="popup" value="<?php echo $popup; ?>">
<section class="cbox"> <?php echo $wrp_tag_st; ?>
<h2><?php echo $html_title; ?></h2>
<table class="frm_tbl"> <table class="frm_tbl">
<colgroup> <colgroup>
<col class="grid_3"> <col class="grid_3">
@ -126,7 +132,7 @@ else
<a href="./personalpayformupdate.php?w=d&amp;pp_id=<?php echo $pp['pp_id']; ?>" onclick="return del_confirm();">삭제</a> <a href="./personalpayformupdate.php?w=d&amp;pp_id=<?php echo $pp['pp_id']; ?>" onclick="return del_confirm();">삭제</a>
<?php } ?> <?php } ?>
</div> </div>
</section> <?php echo $wrp_tag_end; ?>
</form> </form>
<script> <script>

View File

@ -95,7 +95,7 @@ $colspan = 8;
<input type="hidden" name="page" value="<?php echo $page; ?>"> <input type="hidden" name="page" value="<?php echo $page; ?>">
<input type="hidden" name="token" value="<?php echo $token; ?>"> <input type="hidden" name="token" value="<?php echo $token; ?>">
<table class="tbl_pt_list"> <table>
<thead> <thead>
<tr> <tr>
<th scope="col"> <th scope="col">
@ -128,12 +128,12 @@ $colspan = 8;
<input type="checkbox" id="chk_<?php echo $i; ?>" name="chk[]" value="<?php echo $i; ?>" title="내역선택"> <input type="checkbox" id="chk_<?php echo $i; ?>" name="chk[]" value="<?php echo $i; ?>" title="내역선택">
</td> </td>
<td class="spp_list_name"><?php echo $row['pp_name']; ?></td> <td class="spp_list_name"><?php echo $row['pp_name']; ?></td>
<td class="spp_list_id"><?php echo $od_id; ?></td> <td class="td_odrnum3 spp_list_id"><?php echo $od_id; ?></td>
<td><?php echo number_format($row['pp_amount']); ?></td> <td class="td_bignum"><?php echo number_format($row['pp_amount']); ?></td>
<td class="td_name"><?php echo number_format($row['pp_receipt_amount']); ?></td> <td class="td_bignum"><?php echo number_format($row['pp_receipt_amount']); ?></td>
<td class="td_name"><?php echo number_format($row['pp_amount'] - $row['pp_receipt_amount']); ?></td> <td class="td_bignum"><?php echo number_format($row['pp_amount'] - $row['pp_receipt_amount']); ?></td>
<td class="td_time"><?php echo $row['pp_settle_case']; ?></td> <td class="td_payby"><?php echo $row['pp_settle_case']; ?></td>
<td><?php echo is_null_time($row['pp_receipt_time']) ? '' : substr($row['pp_receipt_time'], 2, 8); ?></td> <td class="td_date"><?php echo is_null_time($row['pp_receipt_time']) ? '' : substr($row['pp_receipt_time'], 2, 8); ?></td>
<td class="td_boolean"><?php echo $row['pp_use'] ? '예' : '아니오'; ?></td> <td class="td_boolean"><?php echo $row['pp_use'] ? '예' : '아니오'; ?></td>
<td class="td_smallmng"> <td class="td_smallmng">
<a href="./personalpayform.php?w=u&amp;pp_id=<?php echo $row['pp_id']; ?>&amp;<?php echo $qstr; ?>"><span class="sound_only"><?php echo $row['pp_id']; ?> </span>수정</a> <a href="./personalpayform.php?w=u&amp;pp_id=<?php echo $row['pp_id']; ?>&amp;<?php echo $qstr; ?>"><span class="sound_only"><?php echo $row['pp_id']; ?> </span>수정</a>

View File

@ -382,12 +382,12 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
/* 버튼 */ /* 버튼 */
.btn_confirm {clear:both;margin-bottom:20px;text-align:center} .btn_confirm {clear:both;margin-bottom:20px;text-align:center}
.btn_confirm button {padding:0 15px;height:30px;border:0;background:#617d46;color:#fff;line-height:2.2em;vertical-align:middle} .btn_confirm button {padding:0 15px;height:30px;border:0;background:#617d46;color:#fff;line-height:2.2em;vertical-align:middle;cursor:pointer}
.btn_confirm button:focus {padding:0 15px;height:30px;background:#555;color:#fff;line-height:2.2em;vertical-align:middle} .btn_confirm button:focus {padding:0 15px;height:30px;background:#555;color:#fff;line-height:2.2em;vertical-align:middle}
.btn_confirm .btn_submit {background:#ff3061} .btn_confirm .btn_submit {background:#ff3061}
.btn_confirm a {display:inline-block;padding:0 15px;height:30px;background:#617d46;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle} .btn_confirm a {display:inline-block;padding:0 15px;height:30px;background:#617d46;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
.btn_confirm a:focus {background:#555} .btn_confirm a:focus {background:#555}
.btn_submit {padding:0 15px;height:30px;border:0;background:#ff3061;color:#fff;line-height:2.5em;vertical-align:middle} .btn_submit {padding:0 15px;height:30px;border:0;background:#ff3061;color:#fff;line-height:2.5em;vertical-align:middle;cursor:pointer}
.btn_submit:focus {padding:0 15px;height:30px;border:0;background:#555;color:#fff;line-height:2.5em;vertical-align:middle} .btn_submit:focus {padding:0 15px;height:30px;border:0;background:#555;color:#fff;line-height:2.5em;vertical-align:middle}
.btn_cancel {display:inline-block;padding:0 15px;height:30px;border:0;background:#617d46;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle} .btn_cancel {display:inline-block;padding:0 15px;height:30px;border:0;background:#617d46;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
fieldset .btn_submit {height:21px;background:#383a3f;line-height:1.7em} fieldset .btn_submit {height:21px;background:#383a3f;line-height:1.7em}
@ -607,6 +607,8 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
.new_win {} .new_win {}
.new_win h1 {margin-bottom:20px;padding:0 20px;height:60px;border-top:2px solid #484848;border-bottom:1px solid #e9e9e9;background:#fff;font-size:1.2em;line-height:5em} .new_win h1 {margin-bottom:20px;padding:0 20px;height:60px;border-top:2px solid #484848;border-bottom:1px solid #e9e9e9;background:#fff;font-size:1.2em;line-height:5em}
.new_win table {margin:0 auto 20px;width:93%;background:#fff} .new_win table {margin:0 auto 20px;width:93%;background:#fff}
.new_win th {padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#efefef;text-align:left}
.new_win td {border-top:1px solid #e9e9e9}
.new_win_ul {margin:-20px 0 20px 0;padding:0 0 0 20px;border-bottom:1px solid #515151;background:#484848;list-style:none;zoom:1} .new_win_ul {margin:-20px 0 20px 0;padding:0 0 0 20px;border-bottom:1px solid #515151;background:#484848;list-style:none;zoom:1}
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""} .new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
.new_win_ul li {float:left;margin-left:-1px} .new_win_ul li {float:left;margin-left:-1px}

View File

@ -674,6 +674,7 @@ td.empty_table {padding:85px 0;text-align:center}
#sod_frm #od_memo {height:50px} #sod_frm #od_memo {height:50px}
#sod_frm_pay {position:relative} #sod_frm_pay {position:relative}
#sod_frm_pay h2 {margin:0 0 10px}
#sod_frm_pay .basic_tbl th {width:auto !important;font-weight:bold;text-align:center !important} #sod_frm_pay .basic_tbl th {width:auto !important;font-weight:bold;text-align:center !important}
#sod_frm_pay .basic_tbl td {padding:8px 5px 6px !important;border-top:1px solid #e9e9e9 !important;border-bottom:1px solid #e9e9e9 !important;line-height:1.5em !important;word-break:break-all !important} #sod_frm_pay .basic_tbl td {padding:8px 5px 6px !important;border-top:1px solid #e9e9e9 !important;border-bottom:1px solid #e9e9e9 !important;line-height:1.5em !important;word-break:break-all !important}

View File

@ -54,7 +54,7 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
/* ########## 쇼핑몰 컨텐츠 ########## */ /* ########## 쇼핑몰 컨텐츠 ########## */
/* 인덱스 이미지 출력 */ /* 인덱스 이미지 출력 */
#sidx {padding:1em} #sidx {padding:0}
/* 상품 목록 */ /* 상품 목록 */
#sct {} #sct {}
@ -114,6 +114,7 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
.sct:after {display:block;visibility:hidden;clear:both;content:""} .sct:after {display:block;visibility:hidden;clear:both;content:""}
.sct_li {position:relative} .sct_li {position:relative}
.sct_noitem {padding:100px 0;text-align:center} .sct_noitem {padding:100px 0;text-align:center}
.sct_nofile {padding:100px 0;text-align:center}
/* 상품 목록 스킨 10 */ /* 상품 목록 스킨 10 */
.sct_10 {padding:1em 0 0} .sct_10 {padding:1em 0 0}

View File

@ -13,7 +13,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
$list_file = G4_MSHOP_SKIN_PATH.'/personalpay.skin.php'; $list_file = G4_MSHOP_SKIN_PATH.'/personalpay.skin.php';
if (file_exists($list_file)) { if (file_exists($list_file)) {
$list_mod = 10; $list_mod = 10;
$img_width = 230; $img_width = 230;
$img_height = 230; $img_height = 230;
@ -51,7 +51,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
if ($i==0) if ($i==0)
{ {
echo '<div><p class="sct_noitem">등록된 개인결제가 없습니다.</p></div>'; echo '<p class="sct_noitem">등록된 개인결제가 없습니다.</p>';
} }
?> ?>

View File

@ -75,12 +75,12 @@ if($default['de_escrow_use']) {
<!-- 배송소요기간 --> <!-- 배송소요기간 -->
<input type="hidden" name="deli_term" value="03"> <input type="hidden" name="deli_term" value="03">
<!-- 기타 파라메터 추가 부분 - Start - --> <!-- 기타 파라메터 추가 부분 - Start - -->
<input type="hidden" name="param_opt_1" value="<?php echo $param_opt_1; ?>"/> <input type="hidden" name="param_opt_1" value="<?php echo $param_opt_1; ?>"/>
<input type="hidden" name="param_opt_2" value="<?php echo $param_opt_2; ?>"/> <input type="hidden" name="param_opt_2" value="<?php echo $param_opt_2; ?>"/>
<input type="hidden" name="param_opt_3" value="<?php echo $param_opt_3; ?>"/> <input type="hidden" name="param_opt_3" value="<?php echo $param_opt_3; ?>"/>
<!-- 기타 파라메터 추가 부분 - End - --> <!-- 기타 파라메터 추가 부분 - End - -->
<!-- 화면 크기조정 부분 - Start - --> <!-- 화면 크기조정 부분 - Start - -->
<input type="hidden" name="tablet_size" value="<?php echo $tablet_size; ?>"/> <input type="hidden" name="tablet_size" value="<?php echo $tablet_size; ?>"/>
<!-- 화면 크기조정 부분 - End - --> <!-- 화면 크기조정 부분 - End - -->
<!-- <!--
사용 카드 설정 사용 카드 설정
@ -205,9 +205,9 @@ if($default['de_escrow_use']) {
<input type="hidden" name="rcvr_zipx" value=""> <!-- 수취인 우편번호 --> <input type="hidden" name="rcvr_zipx" value=""> <!-- 수취인 우편번호 -->
<input type="hidden" name="rcvr_add1" value=""> <!-- 수취인 주소 --> <input type="hidden" name="rcvr_add1" value=""> <!-- 수취인 주소 -->
<input type="hidden" name="rcvr_add2" value=""> <!-- 수취인 상세 주소 --> <input type="hidden" name="rcvr_add2" value=""> <!-- 수취인 상세 주소 -->
<input type="hidden" name="param_opt_1" value=""> <input type="hidden" name="param_opt_1" value="">
<input type="hidden" name="param_opt_2" value=""> <input type="hidden" name="param_opt_2" value="">
<input type="hidden" name="param_opt_3" value=""> <input type="hidden" name="param_opt_3" value="">
<p id="show_progress" style="display:none;">반드시 결제하기 버튼을 클릭 하셔야만 결제가 진행됩니다.</p> <p id="show_progress" style="display:none;">반드시 결제하기 버튼을 클릭 하셔야만 결제가 진행됩니다.</p>

View File

@ -18,7 +18,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
<p>개인결제번호 <strong><?php echo $pp_id; ?></strong></p> <p>개인결제번호 <strong><?php echo $pp_id; ?></strong></p>
<div id="sod_fin_view"> <section id="sod_fin_view">
<h2>결제 정보</h2> <h2>결제 정보</h2>
<?php <?php
$misu = true; $misu = true;
@ -145,7 +145,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
</tbody> </tbody>
</table> </table>
</section> </section>
</div> </section>
<section id="sod_fin_tot"> <section id="sod_fin_tot">
<h2>결제합계</h2> <h2>결제합계</h2>

View File

@ -8,8 +8,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?php <?php
for ($i=1; $row=sql_fetch_array($result); $i++) { for ($i=1; $row=sql_fetch_array($result); $i++) {
if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상 if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상
if ($i%$this->list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막 if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막
else if ($i%$this->list_mod == 1) $sct_last = 'sct_clear'; // 줄 첫번째 else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째
else $sct_last = ''; else $sct_last = '';
} else { // 1줄 이미지 : 1개 } else { // 1줄 이미지 : 1개
$sct_last = 'sct_clear'; $sct_last = 'sct_clear';

View File

@ -8,8 +8,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?php <?php
for ($i=1; $row=sql_fetch_array($result); $i++) { for ($i=1; $row=sql_fetch_array($result); $i++) {
if ($list_mod >= 2) { // 1줄 이미지 : 2개 이상 if ($list_mod >= 2) { // 1줄 이미지 : 2개 이상
if ($i%$list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막 if ($i%$list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막
else if ($i%$list_mod == 1) $sct_last = 'sct_clear'; // 줄 첫번째 else if ($i%$list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째
else $sct_last = ''; else $sct_last = '';
} else { // 1줄 이미지 : 1개 } else { // 1줄 이미지 : 1개
$sct_last = 'sct_clear'; $sct_last = 'sct_clear';
@ -23,7 +23,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
?> ?>
<li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px"> <li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px">
<a href="<?php echo $href; ?>" class="sct_a"> <a href="<?php echo $href; ?>" class="sct_a">
<span class="sct_img">개인결제 이미지</span> <span class="sct_img"><img src="<?php echo G4_MSHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></span>
<b><?php echo get_text($row['pp_name']).'님 개인결제'; ?></b> <b><?php echo get_text($row['pp_name']).'님 개인결제'; ?></b>
<span class="sct_cost"><?php echo display_price($row['pp_amount']); ?></span> <span class="sct_cost"><?php echo display_price($row['pp_amount']); ?></span>
</a> </a>

View File

@ -48,297 +48,297 @@ if(openwin != null) {
<p>주문번호 <strong><?php echo $od_id; ?></strong></p> <p>주문번호 <strong><?php echo $od_id; ?></strong></p>
<section id="sod_fin_list"> <section id="sod_fin_list">
<form name="forderrequest" method="post" action="./orderrequestupdate.php" onsubmit="return frequest_check(this);"> <form name="forderrequest" method="post" action="./orderrequestupdate.php" onsubmit="return frequest_check(this);">
<input type="hidden" name="od_id" value="<?php echo $od['od_id']; ?>"> <input type="hidden" name="od_id" value="<?php echo $od['od_id']; ?>">
<input type="hidden" name="rq_type" value=""> <input type="hidden" name="rq_type" value="">
<h2>주문하신 상품</h2> <h2>주문하신 상품</h2>
<span class="sound_only">상품 상태 설명</span> <span class="sound_only">상품 상태 설명</span>
<dl id="sod_fin_legend"> <dl id="sod_fin_legend">
<dt>주문</dt> <dt>주문</dt>
<dd>주문이 접수되었습니다.</dd> <dd>주문이 접수되었습니다.</dd>
<dt>준비</dt> <dt>준비</dt>
<dd>상품 준비 중입니다.</dd> <dd>상품 준비 중입니다.</dd>
<dt>배송</dt> <dt>배송</dt>
<dd>상품 배송 중입니다.</dd> <dd>상품 배송 중입니다.</dd>
<dt>완료</dt> <dt>완료</dt>
<dd>상품 배송이 완료되었습니다.</dd> <dd>상품 배송이 완료되었습니다.</dd>
</dl> </dl>
<?php
$od_count1 = $od_count2 = 0;
$idx = 0;
$sql = " select it_id, it_name
from {$g4['shop_cart_table']}
where od_id = '$od_id'
group by it_id
order by ct_id ";
$result = sql_query($sql);
?>
<ul id="sod_ul">
<?php <?php
for($i=0; $row=sql_fetch_array($result); $i++) { $od_count1 = $od_count2 = 0;
$image = get_it_image($row['it_id'], 70, 70); $idx = 0;
$sql = " select it_id, it_name
from {$g4['shop_cart_table']}
where od_id = '$od_id'
group by it_id
order by ct_id ";
$result = sql_query($sql);
?> ?>
<li> <ul id="sod_ul">
<p>
<a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $image; ?> <?php echo $row['it_name']; ?></a>
</p>
<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>
<th scope="col">상태</th>
</tr>
</thead>
<tbody>
<?php <?php
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, cp_amount, io_type, io_price for($i=0; $row=sql_fetch_array($result); $i++) {
from {$g4['shop_cart_table']} $image = get_it_image($row['it_id'], 70, 70);
where od_id = '$od_id'
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
$ct_list = array();
for($k=0; $opt=sql_fetch_array($res); $k++) {
if($opt['io_type'])
$opt_price = $opt['io_price'];
else
$opt_price = $opt['ct_price'] + $opt['io_price'];
$sell_amount = $opt_price * $opt['ct_qty'];
$point = $opt['ct_point'] * $opt['ct_qty'];
$disabled = '';
if($opt['ct_status'] == '취소' || $opt['ct_status'] == '반품' || $opt['ct_status'] == '품절')
$disabled = ' disabled="disabled"';
$ct_list[$opt['ct_id']]['name'] = $opt['it_name'];
$ct_list[$opt['ct_id']]['option'] = $opt['ct_option'];
?> ?>
<tr> <li>
<td class="td_chk"> <p>
<input type="hidden" name="ct_id[<?php echo $idx; ?>]" value="<?php echo $opt['ct_id']; ?>"> <a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $image; ?> <?php echo $row['it_name']; ?></a>
<label for="chk_ct_id_<?php echo $idx; ?>" class="sound_only"><?php echo $opt['ct_option']; ?></label> </p>
<input type="checkbox" name="chk_ct_id[<?php echo $idx; ?>]" value="1" id="chk_ct_id_<?php echo $idx; ?>"<?php echo $disabled; ?>>
</td>
<td><?php echo $opt['ct_option']; ?></td>
<td class="td_smallmng"><?php echo number_format($opt['ct_qty']); ?></td>
<td class="td_bignum"><?php echo number_format($opt_price); ?></td>
<td class="td_num"><?php echo number_format($sell_amount); ?></td>
<td class="td_num"><?php echo number_format($point); ?></td>
<td class="td_smallmng"><?php echo $opt['ct_status']; ?></td>
</tr>
<?php
if ($opt['ct_status'] == '취소' || $opt['ct_status'] == '반품' || $opt['ct_status'] == '품절') {
$tot_cancel_amount += $sell_amount;
}
else {
$tot_point += $point;
$tot_sell_amount += $sell_amount;
}
// 전체 상품의 상태가 주문인지 비교할 때 사용
$od_count1++;
if($opt['ct_status'] == '주문')
$od_count2++;
$idx++;
$tot_cp_amount += $opt['cp_amount'];
}
?>
</tbody>
</table>
</li>
<?php
}
$send_cost = $od['od_send_cost'];
$send_cost2 = $od['od_send_cost2'];
$send_coupon = $od['od_send_coupon'];
?>
</ul>
<div id="request_form">
<div>
<label for="rq_content">요청내용</label>
<input type="text" name="rq_content" value="" id="rq_content" required class="required frm_input">
<input type="submit" value="확인" class="btn_frmline">
<button type="button" id="request_close" class="btn_cancel">닫기</button>
</div>
</div>
<div id="sod_req_btn">
<button type="button" class="req_button btn_frmline">취소요청</button>
<button type="button" class="req_button btn_frmline">교환요청</button>
<button type="button" class="req_button btn_frmline">반품요청</button>
</div>
<?php
// 요청내역
$rq_sql = " select * from {$g4['shop_request_table']} where od_id = '$od_id' and rq_parent = '0' order by rq_id ";
$rq_res = sql_query($rq_sql);
$rq_cnt = mysql_num_rows($rq_res);
if($rq_cnt)
{
?>
<section id="sod_req_log">
<h3>요청내역</h3>
<ul>
<?php
for($j=0; $rq_row=sql_fetch_array($rq_res); $j++) {
switch($rq_row['rq_type']) {
case 0:
$rq_type = '취소';
break;
case 1:
$rq_type = '교환';
break;
case 2:
$rq_type = '반품';
break;
default:
$rq_type = '';
break;
}
$item = explode(',', $rq_row['ct_id']);
$item_count = count($item);
$rq_ct_id = $item[0];
$rq_subject = $ct_list[$rq_ct_id]['name'].' '.$ct_list[$rq_ct_id]['option'];
if($item_count > 1)
$rq_subject .= '외 '.($item_count - 1).'건';
$rq_subject .= ' <span>'.$rq_type.'요청</span>';
?>
<li class="sod_req_log_view">
<table class="basic_tbl"> <table class="basic_tbl">
<caption><?php echo $rq_subject; ?></caption>
<thead> <thead>
<tr> <tr>
<th>구분</th> <th scope="col">선택</th>
<th>상품명</th> <th scope="col">옵션항목</th>
<th>옵션항목</th> <th scope="col">수량</th>
<th>요청일</th> <th scope="col">판매가</th>
<th>처리일</th> <th scope="col">소계</th>
<th scope="col">포인트</th>
<th scope="col">상태</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
for($k=0; $k<$item_count; $k++) { $sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, cp_amount, io_type, io_price
$ct_idx = $item[$k]; from {$g4['shop_cart_table']}
$it_name = $ct_list[$ct_idx]['name']; where od_id = '$od_id'
$ct_option = $ct_list[$ct_idx]['option']; and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
$ct_list = array();
$sql = " select rq_time for($k=0; $opt=sql_fetch_array($res); $k++) {
from {$g4['shop_request_table']} if($opt['io_type'])
where rq_parent = '{$rq_row['rq_id']}' and rq_status <> '0' $opt_price = $opt['io_price'];
order by rq_id desc else
limit 1 "; $opt_price = $opt['ct_price'] + $opt['io_price'];
$tmp = sql_fetch($sql);
$done_date = substr($tmp['rq_time'], 2, 8); $sell_amount = $opt_price * $opt['ct_qty'];
$point = $opt['ct_point'] * $opt['ct_qty'];
$disabled = '';
if($opt['ct_status'] == '취소' || $opt['ct_status'] == '반품' || $opt['ct_status'] == '품절')
$disabled = ' disabled="disabled"';
$ct_list[$opt['ct_id']]['name'] = $opt['it_name'];
$ct_list[$opt['ct_id']]['option'] = $opt['ct_option'];
?> ?>
<tr> <tr>
<td class="td_smallstat"><?php echo $rq_type; ?></td> <td class="td_chk">
<td class="sod_req_it"><?php echo $it_name; ?></td> <input type="hidden" name="ct_id[<?php echo $idx; ?>]" value="<?php echo $opt['ct_id']; ?>">
<td><?php echo $ct_option; ?></td> <label for="chk_ct_id_<?php echo $idx; ?>" class="sound_only"><?php echo $opt['ct_option']; ?></label>
<td class="td_date"><?php echo substr($rq_row['rq_time'], 2, 8); ?></td> <input type="checkbox" name="chk_ct_id[<?php echo $idx; ?>]" value="1" id="chk_ct_id_<?php echo $idx; ?>"<?php echo $disabled; ?>>
<td class="td_date"><?php echo $done_date; ?></td> </td>
<td><?php echo $opt['ct_option']; ?></td>
<td class="td_smallmng"><?php echo number_format($opt['ct_qty']); ?></td>
<td class="td_bignum"><?php echo number_format($opt_price); ?></td>
<td class="td_num"><?php echo number_format($sell_amount); ?></td>
<td class="td_num"><?php echo number_format($point); ?></td>
<td class="td_smallmng"><?php echo $opt['ct_status']; ?></td>
</tr> </tr>
<?php <?php
if ($opt['ct_status'] == '취소' || $opt['ct_status'] == '반품' || $opt['ct_status'] == '품절') {
$tot_cancel_amount += $sell_amount;
}
else {
$tot_point += $point;
$tot_sell_amount += $sell_amount;
}
// 전체 상품의 상태가 주문인지 비교할 때 사용
$od_count1++;
if($opt['ct_status'] == '주문')
$od_count2++;
$idx++;
$tot_cp_amount += $opt['cp_amount'];
} }
?> ?>
</tbody> </tbody>
</table> </table>
<p>
<strong>요청내용</strong>
<?php echo conv_content($rq_row['rq_content'], 0); ?>
<?php if($rq_row['rq_status'] == 0) { ?>
<button type="button" id="rq_id_<?php echo $rq_row['rq_id']; ?>" class="request_cancel"><?php echo $rq_type; ?>요청 취소</button>
<?php } ?>
</p>
</li> </li>
<?php <?php
} }
$send_cost = $od['od_send_cost'];
$send_cost2 = $od['od_send_cost2'];
$send_coupon = $od['od_send_coupon'];
?> ?>
</ul> </ul>
<script> <div id="request_form">
$(function() { <div>
$(".request_cancel").click(function() { <label for="rq_content">요청내용</label>
if(!confirm("요청을 취소하시겠습니까?")) <input type="text" name="rq_content" value="" id="rq_content" required class="required frm_input">
return false; <input type="submit" value="확인" class="btn_frmline">
<button type="button" id="request_close" class="btn_cancel">닫기</button>
</div>
</div>
var rq_id = $(this).attr("id").replace("rq_id_", ""); <div id="sod_req_btn">
$.post( <button type="button" class="req_button btn_frmline">취소요청</button>
"./orderrequestcancel.php", <button type="button" class="req_button btn_frmline">교환요청</button>
{ rq_id: rq_id, od_id: "<?php echo $od['od_id']; ?>" }, <button type="button" class="req_button btn_frmline">반품요청</button>
function(data) { </div>
if(data != "")
alert(data); <?php
else { // 요청내역
alert("고객님의 요청이 취소되었습니다."); $rq_sql = " select * from {$g4['shop_request_table']} where od_id = '$od_id' and rq_parent = '0' order by rq_id ";
document.location.reload(); $rq_res = sql_query($rq_sql);
} $rq_cnt = mysql_num_rows($rq_res);
if($rq_cnt)
{
?>
<section id="sod_req_log">
<h3>요청내역</h3>
<ul>
<?php
for($j=0; $rq_row=sql_fetch_array($rq_res); $j++) {
switch($rq_row['rq_type']) {
case 0:
$rq_type = '취소';
break;
case 1:
$rq_type = '교환';
break;
case 2:
$rq_type = '반품';
break;
default:
$rq_type = '';
break;
} }
);
$item = explode(',', $rq_row['ct_id']);
$item_count = count($item);
$rq_ct_id = $item[0];
$rq_subject = $ct_list[$rq_ct_id]['name'].' '.$ct_list[$rq_ct_id]['option'];
if($item_count > 1)
$rq_subject .= '외 '.($item_count - 1).'건';
$rq_subject .= ' <span>'.$rq_type.'요청</span>';
?>
<li class="sod_req_log_view">
<table class="basic_tbl">
<caption><?php echo $rq_subject; ?></caption>
<thead>
<tr>
<th>구분</th>
<th>상품명</th>
<th>옵션항목</th>
<th>요청일</th>
<th>처리일</th>
</tr>
</thead>
<tbody>
<?php
for($k=0; $k<$item_count; $k++) {
$ct_idx = $item[$k];
$it_name = $ct_list[$ct_idx]['name'];
$ct_option = $ct_list[$ct_idx]['option'];
$sql = " select rq_time
from {$g4['shop_request_table']}
where rq_parent = '{$rq_row['rq_id']}' and rq_status <> '0'
order by rq_id desc
limit 1 ";
$tmp = sql_fetch($sql);
$done_date = substr($tmp['rq_time'], 2, 8);
?>
<tr>
<td class="td_smallstat"><?php echo $rq_type; ?></td>
<td class="sod_req_it"><?php echo $it_name; ?></td>
<td><?php echo $ct_option; ?></td>
<td class="td_date"><?php echo substr($rq_row['rq_time'], 2, 8); ?></td>
<td class="td_date"><?php echo $done_date; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
<p>
<strong>요청내용</strong>
<?php echo conv_content($rq_row['rq_content'], 0); ?>
<?php if($rq_row['rq_status'] == 0) { ?>
<button type="button" id="rq_id_<?php echo $rq_row['rq_id']; ?>" class="request_cancel"><?php echo $rq_type; ?>요청 취소</button>
<?php } ?>
</p>
</li>
<?php
}
?>
</ul>
<script>
$(function() {
$(".request_cancel").click(function() {
if(!confirm("요청을 취소하시겠습니까?"))
return false;
var rq_id = $(this).attr("id").replace("rq_id_", "");
$.post(
"./orderrequestcancel.php",
{ rq_id: rq_id, od_id: "<?php echo $od['od_id']; ?>" },
function(data) {
if(data != "")
alert(data);
else {
alert("고객님의 요청이 취소되었습니다.");
document.location.reload();
}
}
);
});
}); });
}); </script>
</script> </section>
</section> <?php
<?php }
} ?>
?>
<?php <?php
// 총계 = 주문상품금액합계 + 배송비 - 상품할인 - 결제할인 - 배송비할인 // 총계 = 주문상품금액합계 + 배송비 - 상품할인 - 결제할인 - 배송비할인
$od_coupon = $od['od_coupon']; $od_coupon = $od['od_coupon'];
$tot_amount = $tot_sell_amount + $send_cost + $send_cost2 - $tot_cp_amount - $od_coupon - $send_coupon; $tot_amount = $tot_sell_amount + $send_cost + $send_cost2 - $tot_cp_amount - $od_coupon - $send_coupon;
?> ?>
<dl id="sod_bsk_tot"> <dl id="sod_bsk_tot">
<dt class="sod_bsk_dvr">주문총액</dt> <dt class="sod_bsk_dvr">주문총액</dt>
<dd class="sod_bsk_dvr"><strong><?php echo number_format($tot_sell_amount); ?> 원</strong></dd> <dd class="sod_bsk_dvr"><strong><?php echo number_format($tot_sell_amount); ?> 원</strong></dd>
<?php if($tot_cp_amount > 0) { ?> <?php if($tot_cp_amount > 0) { ?>
<dt class="sod_bsk_dvr">상품할인</dt> <dt class="sod_bsk_dvr">상품할인</dt>
<dd class="sod_bsk_dvr"><strong><?php echo number_format($tot_cp_amount); ?> 원</strong></dd> <dd class="sod_bsk_dvr"><strong><?php echo number_format($tot_cp_amount); ?> 원</strong></dd>
<?php } ?> <?php } ?>
<?php if($od_coupon > 0) { ?> <?php if($od_coupon > 0) { ?>
<dt class="sod_bsk_dvr">결제할인</dt> <dt class="sod_bsk_dvr">결제할인</dt>
<dd class="sod_bsk_dvr"><strong><?php echo number_format($od_coupon); ?> 원</strong></dd> <dd class="sod_bsk_dvr"><strong><?php echo number_format($od_coupon); ?> 원</strong></dd>
<?php } ?> <?php } ?>
<?php if ($send_cost > 0) { ?> <?php if ($send_cost > 0) { ?>
<dt class="sod_bsk_dvr">배송비</dt> <dt class="sod_bsk_dvr">배송비</dt>
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd> <dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
<?php } ?> <?php } ?>
<?php if($send_coupon > 0) { ?> <?php if($send_coupon > 0) { ?>
<dt class="sod_bsk_dvr">배송비할인</dt> <dt class="sod_bsk_dvr">배송비할인</dt>
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_coupon); ?> 원</strong></dd> <dd class="sod_bsk_dvr"><strong><?php echo number_format($send_coupon); ?> 원</strong></dd>
<?php } ?> <?php } ?>
<?php if ($send_cost2 > 0) { ?> <?php if ($send_cost2 > 0) { ?>
<dt class="sod_bsk_dvr">추가배송비</dt> <dt class="sod_bsk_dvr">추가배송비</dt>
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost2); ?> 원</strong></dd> <dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost2); ?> 원</strong></dd>
<?php } ?> <?php } ?>
<dt class="sod_bsk_cnt">총계</dt> <dt class="sod_bsk_cnt">총계</dt>
<dd class="sod_bsk_cnt"><strong><?php echo number_format($tot_amount); ?> 원</strong></dd> <dd class="sod_bsk_cnt"><strong><?php echo number_format($tot_amount); ?> 원</strong></dd>
<dt class="sod_bsk_point">포인트</dt> <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); ?> 점</strong></dd>
</dl> </dl>
</form> </form>
</section> </section>
<div id="sod_fin_view"> <div id="sod_fin_view">

View File

@ -18,7 +18,7 @@ include_once('./_head.php');
$list_file = G4_SHOP_SKIN_PATH.'/personalpay.skin.php'; $list_file = G4_SHOP_SKIN_PATH.'/personalpay.skin.php';
if (file_exists($list_file)) { if (file_exists($list_file)) {
$list_mod = 3; $list_mod = 3;
$list_row = 5; $list_row = 5;
$img_width = 230; $img_width = 230;
$img_height = 230; $img_height = 230;
@ -57,7 +57,7 @@ include_once('./_head.php');
if ($i==0) if ($i==0)
{ {
echo '<div><p class="sct_noitem">등록된 개인결제가 없습니다.</p></div>'; echo '<p class="sct_noitem">등록된 개인결제가 없습니다.</p>';
} }
?> ?>

View File

@ -436,7 +436,7 @@ function get_intall_file()
<div id="display_pay_button" class="btn_confirm" style="display:none"> <div id="display_pay_button" class="btn_confirm" style="display:none">
<input type="submit" value="결제하기" class="btn_submit"> <input type="submit" value="결제하기" class="btn_submit">
<a href="javascript:history.go(-1);" class="btn01">취소</a> <a href="javascript:history.go(-1);" class="btn_cancel">취소</a>
</div> </div>
</form> </form>

View File

@ -31,7 +31,7 @@ if(openwin != null) {
<p>개인결제번호 <strong><?php echo $pp_id; ?></strong></p> <p>개인결제번호 <strong><?php echo $pp_id; ?></strong></p>
<div id="sod_fin_view"> <section id="sod_fin_view">
<h2>결제 정보</h2> <h2>결제 정보</h2>
<?php <?php
$misu = true; $misu = true;
@ -158,7 +158,7 @@ if(openwin != null) {
</tbody> </tbody>
</table> </table>
</section> </section>
</div> </section>
<section id="sod_fin_tot"> <section id="sod_fin_tot">
<h2>결제합계</h2> <h2>결제합계</h2>

View File

@ -22,7 +22,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
?> ?>
<li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px"> <li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px">
<a href="<?php echo $href; ?>" class="sct_a"> <a href="<?php echo $href; ?>" class="sct_a">
<span class="sct_img">개인결제 이미지</span> <span class="sct_img"><img src="<?php echo G4_SHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></span>
<b><?php echo get_text($row['pp_name']).'님 개인결제'; ?></b> <b><?php echo get_text($row['pp_name']).'님 개인결제'; ?></b>
<span class="sct_cost"><?php echo display_price($row['pp_amount']); ?></span> <span class="sct_cost"><?php echo display_price($row['pp_amount']); ?></span>
</a> </a>