amount 필드명 price 로 변경

This commit is contained in:
chicpro
2013-09-11 15:52:33 +09:00
parent a61215ad14
commit 97cf079a0f
60 changed files with 837 additions and 805 deletions

View File

@ -107,9 +107,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="row"><label for="cp_amount"><?php echo $cp['cp_type'] ? '할인비율' : '할인금액'; ?></label></th>
<th scope="row"><label for="cp_price"><?php echo $cp['cp_type'] ? '할인비율' : '할인금액'; ?></label></th>
<td>
<input type="text" name="cp_amount" value="<?php echo stripslashes($cp['cp_amount']); ?>" id="cp_amount" required class="frm_input required"> <span id="cp_amount_unit"><?php echo $cp['cp_type'] ? '%' : '원'; ?></span>
<input type="text" name="cp_price" value="<?php echo stripslashes($cp['cp_price']); ?>" id="cp_price" required class="frm_input required"> <span id="cp_price_unit"><?php echo $cp['cp_type'] ? '%' : '원'; ?></span>
</td>
</tr>
<tr id="tr_cp_trunc">
@ -212,13 +212,13 @@ function change_method(cp_method)
function change_type(cp_type)
{
if(cp_type == "0") {
$("#cp_amount_unit").text("원");
$("#cp_amount_unit").closest("tr").find("label").text("할인금액");
$("#cp_price_unit").text("원");
$("#cp_price_unit").closest("tr").find("label").text("할인금액");
$("#tr_cp_maximum").hide();
$("#tr_cp_trunc").hide();
} else {
$("#cp_amount_unit").text("%");
$("#cp_amount_unit").closest("tr").find("label").text("할인비율");
$("#cp_price_unit").text("%");
$("#cp_price_unit").closest("tr").find("label").text("할인비율");
$("#tr_cp_maximum").show();
$("#tr_cp_trunc").show();
}
@ -228,14 +228,14 @@ function form_check(f)
{
var sel_type = f.cp_type;
var cp_type = sel_type.options[sel_type.selectedIndex].value;
var cp_amount = f.cp_amount.value;
var cp_price = f.cp_price.value;
if(!f.chk_all_mb.checked && f.mb_id.value == "") {
alert("회원아이디를 입력해 주십시오.");
return false;
}
if(isNaN(cp_amount)) {
if(isNaN(cp_price)) {
if(cp_type == "1")
alert("할인비율을 숫자로 입력해 주십시오.");
else
@ -244,9 +244,9 @@ function form_check(f)
return false;
}
cp_amount = parseInt(cp_amount);
cp_price = parseInt(cp_price);
if(cp_type == "1" && (cp_amount < 1 || cp_amount > 99)) {
if(cp_type == "1" && (cp_price < 1 || cp_price > 99)) {
alert("할인비율을 1과 99 사이의 숫자로 입력해 주십시오.");
return false;
}

View File

@ -27,14 +27,14 @@ if($_POST['cp_start'] > $_POST['cp_end'])
if($_POST['cp_end'] < G4_TIME_YMD)
alert('종료일은 오늘('.G4_TIME_YMD.')이후로 입력해 주십시오.');
if(!$_POST['cp_amount']) {
if(!$_POST['cp_price']) {
if($_POST['cp_type'])
alert('할인비율을 입력해 주십시오.');
else
alert('할인금액을 입력해 주십시오.');
}
if($_POST['cp_type'] && ($_POST['cp_amount'] < 1 || $_POST['cp_amount'] > 99))
if($_POST['cp_type'] && ($_POST['cp_price'] < 1 || $_POST['cp_price'] > 99))
alert('할인비율을은 1과 99사이 값으로 입력해 주십시오.');
if($_POST['cp_method'] == 0) {
@ -94,9 +94,9 @@ if($w == '') {
} while(1);
$sql = " INSERT INTO {$g4['shop_coupon_table']}
( cp_id, cp_subject, cp_method, cp_target, mb_id, cp_start, cp_end, cp_type, cp_amount, cp_trunc, cp_minimum, cp_maximum, cp_used, cp_datetime )
( cp_id, cp_subject, cp_method, cp_target, mb_id, cp_start, cp_end, cp_type, cp_price, cp_trunc, cp_minimum, cp_maximum, cp_used, cp_datetime )
VALUES
( '$cp_id', '$cp_subject', '$cp_method', '$cp_target', '$mb_id', '$cp_start', '$cp_end', '$cp_type', '$cp_amount', '$cp_trunc', '$cp_minimum', '$cp_maximum', '$cp_used', '".G4_TIME_YMDHIS."' ) ";
( '$cp_id', '$cp_subject', '$cp_method', '$cp_target', '$mb_id', '$cp_start', '$cp_end', '$cp_type', '$cp_price', '$cp_trunc', '$cp_minimum', '$cp_maximum', '$cp_used', '".G4_TIME_YMDHIS."' ) ";
sql_query($sql);
}
@ -115,7 +115,7 @@ if($w == '') {
cp_start = '$cp_start',
cp_end = '$cp_end',
cp_type = '$cp_type',
cp_amount = '$cp_amount',
cp_price = '$cp_price',
cp_trunc = '$cp_trunc',
cp_maximum = '$cp_maximum',
cp_minimum = '$cp_minimum'

View File

@ -38,7 +38,7 @@ $sql_common = " from {$g4['shop_order_table']}
// 테이블의 전체 레코드수만 얻음
if ($chk_misu) {
$sql = " select *, "._MISU_QUERY_." $sql_common having misu <= 0 ";
$sql = " select * $sql_common where od_misu <= 0 ";
$result = sql_query($sql);
$total_count = mysql_num_rows($result);
}
@ -85,7 +85,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</span>
<label for="chk_misu">미수금없음</label>
<input type="checkbox" name="chk_misu" value="1" id="chk_misu" <?php echo $chk_misu?"checked='checked'":""; ?> />
<input type="checkbox" name="chk_misu" value="1" id="chk_misu" <?php echo $chk_misu?'checked="checked"':''; ?> />
<label for="sel_field" class="sound_only">검색대상</label>
<select name="sel_field">
@ -103,17 +103,17 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<section class="cbox">
<h2>배송내역</h2>
<ul>
<li>주문액은 취소, 반품, 품절, DC가 포함된 금액이 아닙니다.</li>
<li>입금액은 환불, 승인취소가 포함된 금액이 아닙니다.</li>
<li>주문액은 취소, 반품, 품절 포함된 금액이 아닙니다.</li>
<li>입금액은 환불/취소가 포함된 금액이 아닙니다.</li>
<li>배송일시, 배송회사는 입력의 편의성을 위하여 기본값으로 설정되어 있습니다. 운송장번호만 없는것이 미배송 주문자료입니다.</li>
</ul>
<ul class="sort_odr">
<li><a href="<?php echo title_sort("od_id",1) . "&amp;$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_name") . "&amp;$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cart_amount",1) . "&amp;$qstr1"; ?>">주문액<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_receipt_amount",1) . "&amp;$qstr1"; ?>">입금액<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("misu",1) . "&amp;$qstr1"; ?>">미수금<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cart_price",1) . "&amp;$qstr1"; ?>">주문액<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_receipt_price",1) . "&amp;$qstr1"; ?>">입금액<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_misu",1) . "&amp;$qstr1"; ?>">미수금<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_hope_date",1) . "&amp;$qstr1"; ?>">희망배송일<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_invoice_time") . "&amp;$qstr1"; ?>">배송일시<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_invoice", 1) . "&amp;$qstr1"; ?>">운송장번호<span class="sound_only"> 순 정렬</span></a></li>
@ -143,10 +143,10 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</thead>
<tbody>
<?php
$sql = " select *, "._MISU_QUERY_."
$sql = " select *
$sql_common ";
if ($chk_misu)
$sql .= " having misu <= 0 ";
$sql .= " where od_misu <= 0 ";
$sql .= " order by $sort1 $sort2
limit $from_record, {$config['cf_page_rows']} ";
$result = sql_query($sql);
@ -173,9 +173,9 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>"><?php echo $row['od_id']; ?></a>
</td>
<td class="td_name"><?php echo $row['od_name']; ?></td>
<td><?php echo display_price($row['od_cart_amount']); ?></td>
<td><?php echo display_price($row['od_receipt_amount']); ?></td>
<td><?php echo display_price($row['misu']); ?></td>
<td><?php echo display_price($row['od_cart_price']); ?></td>
<td><?php echo display_price($row['od_receipt_price']); ?></td>
<td><?php echo display_price($row['od_misu']); ?></td>
<td><?php echo $hope_date; ?></td>
<td><input type="text" name="od_invoice_time[<?php echo $i; ?>]" value="<?php echo $invoice_time; ?>" class="frm_input" size="20" maxlength="19"></td>
<td>

View File

@ -32,9 +32,9 @@ $pg_anchor = '<ul class="anchor">
<tbody>
<?php
// 미수금이 없고 운송장번호가 없는 자료를 구함
$sql = " select *, "._MISU_QUERY_."
$sql = " select *
from {$g4['shop_order_table']}
having misu <= 0 and od_invoice = ''
where od_receipt_price > 0 and od_misu <= 0 and od_invoice = ''
order by od_id desc
limit $max_limit ";
$result = sql_query($sql);
@ -59,7 +59,7 @@ $pg_anchor = '<ul class="anchor">
<tr>
<td class="td_odrnum2"><?php echo $row['od_id']; ?></td>
<td class="td_name"><?php echo $name; ?></td>
<td class="td_bignum"><?php echo display_price($row['od_receipt_amount']); ?></td>
<td class="td_bignum"><?php echo display_price($row['od_receipt_price']); ?></td>
<td class="td_payby"><?php echo $settle_method; ?></td>
<td class="td_smallmng"><a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>">수정</a></td>
</tr>
@ -92,9 +92,9 @@ $pg_anchor = '<ul class="anchor">
<tbody>
<?php
// 미수금이 있고 송장번호가 없는 자료를 구함
$sql = " select *, "._MISU_QUERY_."
$sql = " select *
from {$g4['shop_order_table']}
having misu > 0
where od_misu > 0
order by od_id desc
limit $max_limit ";
$result = sql_query($sql);

View File

@ -898,10 +898,10 @@ $(function(){
</td>
</tr>
<tr>
<th scope="row"><label for="it_sc_amount">기본배송비</label></th>
<th scope="row"><label for="it_sc_price">기본배송비</label></th>
<td>
<?php echo help("무료배송 이외의 설정에 적용되는 배송비 금액입니다."); ?>
<input type="text" name="it_sc_amount" value="<?php echo $it['it_sc_amount']; ?>" id="it_sc_amount" class="frm_input" size="8"> 원
<input type="text" name="it_sc_price" value="<?php echo $it['it_sc_price']; ?>" id="it_sc_price" class="frm_input" size="8"> 원
</td>
</tr>
<tr id="sc_con_minimum">
@ -1426,7 +1426,7 @@ function fitemformcheck(f)
}
if(f.it_sc_type.value != "0") {
if(!f.it_sc_amount.value || f.it_sc_amount.value == "0") {
if(!f.it_sc_price.value || f.it_sc_price.value == "0") {
alert("기본배송비를 입력해 주십시오.");
return false;
}

View File

@ -287,7 +287,7 @@ $sql_common = " ca_id = '$ca_id',
it_stock_qty = '$it_stock_qty',
it_sc_type = '$it_sc_type',
it_sc_method = '$it_sc_method',
it_sc_amount = '$it_sc_amount',
it_sc_price = '$it_sc_price',
it_sc_minimum = '$it_sc_minimum',
it_sc_qty = '$it_sc_qty',
it_head_html = '$it_head_html',
@ -438,7 +438,7 @@ if(is_checked('chk_ca_it_cust_price')) $ca_fields .= " , it_cust_price
if(is_checked('chk_ca_it_point')) $ca_fields .= " , it_point = '$it_point' ";
if(is_checked('chk_ca_it_point_type')) $ca_fields .= " , it_point_type = '$it_point_type' ";
if(is_checked('chk_ca_it_stock_qty')) $ca_fields .= " , it_stock_qty = '$it_stock_qty' ";
if(is_checked('chk_ca_it_sendcost')) $ca_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_amount = '$it_sc_amount', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' ";
if(is_checked('chk_ca_it_sendcost')) $ca_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_price = '$it_sc_price', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' ";
if(is_checked('chk_ca_it_gallery')) $ca_fields .= " , it_gallery = '$it_gallery' ";
if(is_checked('chk_ca_it_head_html')) $ca_fields .= " , it_head_html = '$it_head_html' ";
if(is_checked('chk_ca_it_tail_html')) $ca_fields .= " , it_tail_html = '$it_tail_html' ";
@ -472,7 +472,7 @@ if(is_checked('chk_all_it_cust_price')) $all_fields .= " , it_cust_pric
if(is_checked('chk_all_it_point')) $all_fields .= " , it_point = '$it_point' ";
if(is_checked('chk_all_it_point_type')) $all_fields .= " , it_point_type = '$it_point_type' ";
if(is_checked('chk_all_it_stock_qty')) $all_fields .= " , it_stock_qty = '$it_stock_qty' ";
if(is_checked('chk_all_it_sendcost')) $all_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_amount = '$it_sc_amount', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' ";
if(is_checked('chk_all_it_sendcost')) $all_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_price = '$it_sc_price', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' ";
if(is_checked('chk_all_it_gallery')) $all_fields .= " , it_gallery = '$it_gallery' ";
if(is_checked('chk_all_it_head_html')) $all_fields .= " , it_head_html = '$it_head_html' ";
if(is_checked('chk_all_it_tail_html')) $all_fields .= " , it_tail_html = '$it_tail_html' ";

View File

@ -158,7 +158,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<thead>
<tr>
<th scope="col" rowspan="2">
<label for="chkall" class="sound_only">게시판 전체</label>
<label for="chkall" class="sound_only">상품 전체</label>
<input type="checkbox" name="chkall" value="1" id="chkall" onclick="check_all(this.form)">
</th>
<th scope="col" rowspan="2">상품코드</th>

View File

@ -86,7 +86,7 @@ if ($default['de_card_test']) {
// 상품목록
$sql = " select it_id,
it_name,
cp_amount,
cp_price,
ct_notax
from {$g4['shop_cart_table']}
where od_id = '{$od['od_id']}'
@ -108,7 +108,7 @@ $pg_anchor = '<ul class="anchor">
<section id="anc_sodr_list" class="cbox">
<h2>주문상품 목록</h2>
<?php echo $pg_anchor; ?>
<p>주문일시 <?php echo substr($od['od_time'],0,16); ?> (<?php echo get_yoil($od['od_time']); ?>) / 주문총액 <strong><?php echo number_format($od['od_cart_amount'] + $od['od_send_cost'] + $od['od_send_cost2']); ?></strong>원</p>
<p>주문일시 <?php echo substr($od['od_time'],0,16); ?> (<?php echo get_yoil($od['od_time']); ?>) / 주문총액 <strong><?php echo number_format($od['od_cart_price'] + $od['od_send_cost'] + $od['od_send_cost2']); ?></strong>원</p>
<?php if ($default['de_hope_date_use']) { ?><p>희망배송일은 <?php echo $od['od_hope_date']; ?> (<?php echo get_yoil($od['od_hope_date']); ?>) 입니다.</p><?php } ?>
<?php if($od['od_mobile']) { ?>
<p>모바일 쇼핑몰의 주문입니다.</p>
@ -161,7 +161,7 @@ $pg_anchor = '<ul class="anchor">
<tbody>
<?php
// 상품의 옵션정보
$sql = " select ct_id, it_id, ct_price, ct_qty, ct_option, ct_status, cp_amount, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price
$sql = " select ct_id, it_id, ct_price, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price
from {$g4['shop_cart_table']}
where od_id = '{$od['od_id']}'
and it_id = '{$row['it_id']}'
@ -174,7 +174,7 @@ $pg_anchor = '<ul class="anchor">
else
$opt_price = $opt['ct_price'] + $opt['io_price'];
$ct_amount['소계'] = $opt_price * $opt['ct_qty'];
$ct_price['소계'] = $opt_price * $opt['ct_qty'];
$ct_point['소계'] = $opt['ct_point'] * $opt['ct_qty'];
?>
<tr>
@ -190,7 +190,7 @@ $pg_anchor = '<ul class="anchor">
<input type="text" name="ct_qty[<?php echo $chk_cnt; ?>]" id="ct_qty_<?php echo $chk_cnt; ?>" value="<?php echo $opt['ct_qty']; ?>" required class="frm_input required" size="5">
</td>
<td class="td_bignum"><?php echo number_format($opt_price); ?></td>
<td class="td_num"><?php echo number_format($ct_amount['소계']); ?></td>
<td class="td_num"><?php echo number_format($ct_price['소계']); ?></td>
<td class="td_bignum"><?php echo number_format($ct_point['소계']); ?></td>
<td class="td_sendcost_by"><?php echo $opt['ct_send_cost'] ? '착불' : '선불'; ?></td>
<td class="td_smallmng"><?php echo get_yn($opt['ct_point_use']); ?></td>
@ -239,16 +239,16 @@ $pg_anchor = '<ul class="anchor">
<?php
// 주문금액 = 상품구입금액 + 배송비 + 추가배송비
$amount['주문'] = $od['od_cart_amount'] + $od['od_send_cost'] + $od['od_send_cost2'];
$amount['주문'] = $od['od_cart_price'] + $od['od_send_cost'] + $od['od_send_cost2'];
// 입금액 = 결제금액 + 포인트
$amount['입금'] = $od['od_receipt_amount'] + $od['od_receipt_point'];
$amount['입금'] = $od['od_receipt_price'] + $od['od_receipt_point'];
// 쿠폰금액
$amount['쿠폰'] = $od['od_cart_coupon'] + $od['od_coupon'] + $od['od_send_coupon'];
// 취소금액
$amount['취소'] = $od['od_cancel_amount'];
$amount['취소'] = $od['od_cancel_price'];
// 미수금 = 주문금액 - 취소금액 - 입금금액 - 쿠폰금액
$amount['미수'] = $amount['주문'] - $amount['입금'] - $amount['쿠폰'];
@ -322,7 +322,7 @@ $pg_anchor = '<ul class="anchor">
<?php } ?>
<tr>
<th scope="row"><?php echo $od['od_settle_case']; ?> 입금액</th>
<td><?php echo display_price($od['od_receipt_amount']); ?></td>
<td><?php echo display_price($od['od_receipt_price']); ?></td>
</tr>
<tr>
<th scope="row">입금자</th>
@ -345,7 +345,7 @@ $pg_anchor = '<ul class="anchor">
</tr>
<tr>
<th scope="row"><?php echo $od['od_settle_case']; ?> 결제액</th>
<td><?php echo display_price($od['od_receipt_amount']); ?></td>
<td><?php echo display_price($od['od_receipt_price']); ?></td>
</tr>
<tr>
<th scope="row">결제 확인일시</th>
@ -362,7 +362,7 @@ $pg_anchor = '<ul class="anchor">
<th scope="row" class="sodr_sppay">신용카드 입금액</th>
<td>
<?php if ($od['od_receipt_time'] == "0000-00-00 00:00:00") {?>0원
<?php } else { ?><?php echo display_price($od['od_receipt_amount']); ?>
<?php } else { ?><?php echo display_price($od['od_receipt_price']); ?>
<?php } ?>
</td>
</tr>
@ -395,7 +395,7 @@ $pg_anchor = '<ul class="anchor">
</tr>
<tr>
<th scope="row">취소/환불액</th>
<td><?php echo display_price($od['od_cancel_amount']); ?></td>
<td><?php echo display_price($od['od_cancel_price']); ?></td>
</tr>
<?php
$sql = " select dl_company, dl_url, dl_tel from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
@ -422,7 +422,7 @@ $pg_anchor = '<ul class="anchor">
<?php } ?>
<tr>
<th scope="row">배송일시</th>
<td><?php echo $od['od_invoice_time']; ?></td>
<td><?php echo is_null_time($od['od_invoice_time']) ? $od['od_invoice_time'] : ''; ?></td>
</tr>
<tr>
<th scope="row"><label for="od_send_cost">배송비</label></th>
@ -445,7 +445,7 @@ $pg_anchor = '<ul class="anchor">
</tr>
<?php
if ($amount['미수'] == 0) {
if ($od['od_receipt_amount'] && ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체')) {
if ($od['od_receipt_price'] && ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체')) {
?>
<tr>
<th scope="row">현금영수증</th>
@ -506,9 +506,9 @@ $pg_anchor = '<ul class="anchor">
</tr>
<?php } ?>
<tr>
<th scope="row"><label for="od_receipt_amount"><?php echo $od['od_settle_case']; ?> 입금액</label></th>
<th scope="row"><label for="od_receipt_price"><?php echo $od['od_settle_case']; ?> 입금액</label></th>
<td>
<input type="text" name="od_receipt_amount" value="<?php echo $od['od_receipt_amount']; ?>" id="od_receipt_amount" class="frm_input" size="10"> 원
<input type="text" name="od_receipt_price" value="<?php echo $od['od_receipt_price']; ?>" id="od_receipt_price" class="frm_input" size="10"> 원
<?php
if ($od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌') {
$pg_url = $g4['shop_cardpg'][$default['de_card_pg']];
@ -544,9 +544,9 @@ $pg_anchor = '<ul class="anchor">
<td><?php echo $od['od_bank_account']; ?></td>
</tr>
<tr>
<th scope="row"><label for="od_receipt_amount"><?php echo $od['od_settle_case']; ?> 결제액</label></th>
<th scope="row"><label for="od_receipt_price"><?php echo $od['od_settle_case']; ?> 결제액</label></th>
<td>
<input type="text" name="od_receipt_amount" value="<?php echo $od['od_receipt_amount']; ?>" id="od_receipt_amount" class="frm_input"> 원
<input type="text" name="od_receipt_price" value="<?php echo $od['od_receipt_price']; ?>" id="od_receipt_price" class="frm_input"> 원
<?php $pg_url = $g4['shop_cardpg'][$default['de_card_pg']];?>
<a href="<?php echo $pg_url; ?>" target="_blank">결제대행사</a>
</td>
@ -563,9 +563,9 @@ $pg_anchor = '<ul class="anchor">
<?php if ($od['od_settle_case'] == '신용카드') { ?>
<tr>
<th scope="row" class="sodr_sppay"><label for="od_receipt_amount">신용카드 결제액</label></th>
<th scope="row" class="sodr_sppay"><label for="od_receipt_price">신용카드 결제액</label></th>
<td>
<input type="text" name="od_receipt_amount" value="<?php echo $od['od_receipt_amount']; ?>" id="od_receipt_amount" class="frm_input" size="10"> 원
<input type="text" name="od_receipt_price" value="<?php echo $od['od_receipt_price']; ?>" id="od_receipt_price" class="frm_input" size="10"> 원
<?php $card_url = $g4['shop_cardpg'][$default['de_card_pg']]; ?>
<a href="<?php echo $card_url; ?>" target="_blank">결제대행사</a>
</td>
@ -585,9 +585,9 @@ $pg_anchor = '<ul class="anchor">
<td><input type="text" name="od_receipt_point" value="<?php echo $od['od_receipt_point']; ?>" id="od_receipt_point" class="frm_input" size="10"> 점</td>
</tr>
<tr>
<th scope="row"><label for="od_cancel_amount">취소/환불 금액</label></th>
<th scope="row"><label for="od_cancel_price">취소/환불 금액</label></th>
<td>
<input type="text" name="od_cancel_amount" value="<?php echo $od['od_cancel_amount']; ?>" class="frm_input" size="10"> 원
<input type="text" name="od_cancel_price" value="<?php echo $od['od_cancel_price']; ?>" class="frm_input" size="10"> 원
</td>
</tr>
<tr>

View File

@ -37,7 +37,7 @@ $total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select *, "._MISU_QUERY_."
$sql = " select *
$sql_common
order by $sort1 $sort2
limit $from_record, $rows ";
@ -99,11 +99,11 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<li><a href="<?php echo title_sort("od_id", 1)."&amp;$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_name")."&amp;$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("mb_id")."&amp;$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cart_count", 1)."&amp;$qstr1"; ?>">건수<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cart_amount", 1)."&amp;$qstr1"; ?>">주문합계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cancel_amount", 1)."&amp;$qstr1"; ?>">주문취소<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_receipt_amount")."&amp;$qstr1"; ?>">입금합계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("misu", 1)."&amp;$qstr1"; ?>">미수금<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cart_price", 1)."&amp;$qstr1"; ?>">건수<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cart_price", 1)."&amp;$qstr1"; ?>">주문합계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cancel_price", 1)."&amp;$qstr1"; ?>">주문취소<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_receipt_price")."&amp;$qstr1"; ?>">입금합계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_misu", 1)."&amp;$qstr1"; ?>">미수금<span class="sound_only"> 순 정렬</span></a></li>
</ul>
<table id="sodr_list">
@ -173,11 +173,11 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</a>
</td>
<td class="td_sodr_cnt"><b><?php echo $row['od_cart_count']; ?></b>건<?php if($od_cnt) { ?><br>누적 <?php echo $od_cnt; ?>건<?php } ?></td>
<td class="td_sodr_sum"><?php echo number_format($row['od_cart_amount']); ?></td>
<td><?php echo number_format($row['od_receipt_amount']); ?></td>
<td><?php echo number_format($row['od_cancel_amount']); ?></td>
<td class="td_sodr_sum"><?php echo number_format($row['od_cart_price']); ?></td>
<td><?php echo number_format($row['od_receipt_price']); ?></td>
<td><?php echo number_format($row['od_cancel_price']); ?></td>
<td class="td_sodr_sum"><?php echo number_format($row['couponamount']); ?></td>
<td class="td_sodr_nonpay"><?php echo number_format($row['misu']); ?></td>
<td class="td_sodr_nonpay"><?php echo number_format($row['od_misu']); ?></td>
<td><?php echo $s_receipt_way; ?></td>
<td class="td_mng">
<a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>&amp;<?php echo $qstr; ?>"><span class="sound_only"><?php echo $row['od_id']; ?> </span>수정</a>
@ -186,11 +186,11 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</tr>
<?php
$tot_itemcount += $row['od_cart_count'];
$tot_orderamount += $row['od_cart_amount'];
$tot_ordercancel += $row['od_cancel_amount'];
$tot_receiptamount += $row['od_receipt_amount'];
$tot_orderprice += $row['od_cart_price'];
$tot_ordercancel += $row['od_cancel_price'];
$tot_receiptprice += $row['od_receipt_price'];
$tot_couponamount += $row['couponamount'];
$tot_misu += $row['misu'];
$tot_misu += $row['od_misu'];
}
mysql_free_result($result);
if ($i == 0)
@ -201,8 +201,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<tr class="orderlist">
<th scope="row" colspan="2">합 계</td>
<td><?php echo (int)$tot_itemcount; ?>건</td>
<td><?php echo number_format($tot_orderamount); ?></td>
<td><?php echo number_format($tot_receiptamount); ?></td>
<td><?php echo number_format($tot_orderprice); ?></td>
<td><?php echo number_format($tot_receiptprice); ?></td>
<td><?php echo number_format($tot_ordercancel); ?></td>
<td><?php echo number_format($tot_couponamount); ?></td>
<td><?php echo number_format($tot_misu); ?></td>

View File

@ -37,7 +37,7 @@ $total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select *, "._MISU_QUERY_."
$sql = " select *
$sql_common
order by $sort1 $sort2
limit $from_record, $rows ";
@ -92,10 +92,10 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<li><a href="<?php echo title_sort("od_id", 1)."&amp;$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_name")."&amp;$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cart_count", 1)."&amp;$qstr1"; ?>">건수<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cart_amount", 1)."&amp;$qstr1"; ?>">주문합계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cancel_amount", 1)."&amp;$qstr1"; ?>">주문취소<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_receipt_amount")."&amp;$qstr1"; ?>">입금합계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("misu", 1)."&amp;$qstr1"; ?>">미수금<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cart_price", 1)."&amp;$qstr1"; ?>">주문합계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_cancel_price", 1)."&amp;$qstr1"; ?>">주문취소<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_receipt_price")."&amp;$qstr1"; ?>">입금합계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("od_misu", 1)."&amp;$qstr1"; ?>">미수금<span class="sound_only"> 순 정렬</span></a></li>
</ul>
<ul id="sodr_all_list">
@ -123,9 +123,9 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
$od_mobile = '(M)';
$tot_itemcount += $row['od_cart_count'];
$tot_orderamount += $row['od_cart_amount'];
$tot_ordercancel += $row['od_cancel_amount'];
$tot_receiptamount += $row['od_receipt_amount'];
$tot_orderprice += $row['od_cart_price'];
$tot_ordercancel += $row['od_cancel_price'];
$tot_receiptprice += $row['od_receipt_price'];
$tot_couponamount += $row['couponamount'];
$tot_misu += $row['misu'];
@ -161,15 +161,15 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<dl class="sodr_pay">
<dt class="sodr_pay_1">주문합계</dt>
<dd class="sodr_pay_1"><?php echo number_format($row['od_cart_amount']); ?></dd>
<dd class="sodr_pay_1"><?php echo number_format($row['od_cart_price']); ?></dd>
<dt class="sodr_pay_1">결제수단</dt>
<dd class="sodr_pay_1"><?php echo $s_receipt_way; ?></dd>
<dt class="sodr_pay_1">입금합계</dt>
<dd class="sodr_pay_1"><?php echo number_format($row['od_receipt_amount']); ?></dd>
<dd class="sodr_pay_1"><?php echo number_format($row['od_receipt_price']); ?></dd>
<dt>쿠폰사용</dt>
<dd><?php echo number_format($row['couponamount']); ?></dd>
<dt>주문취소</dt>
<dd><?php echo number_format($row['od_cancel_amount']); ?></dd>
<dd><?php echo number_format($row['od_cancel_price']); ?></dd>
<dt>미수금</dt>
<dd><?php echo number_format($row['misu']); ?></dd>
</dl>
@ -219,8 +219,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
else
$ct_price = ($row3['ct_price'] + $row3['io_price']);
$sub_amount = $row3['ct_qty'] * $ct_price;
$sub_point = $row3['ct_qty'] * $row3['ct_point'];
$sub_price = $row3['ct_qty'] * $ct_price;
$sub_point = $row3['ct_qty'] * $row3['ct_point'];
$ct_send_cost = ($row3['ct_send_cost'] ? '착불' : '선불');
?>
@ -229,7 +229,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<td class="td_bignum"><?php echo number_format($ct_price); ?></td>
<td class="td_num"><?php echo $row3['ct_qty']; ?></td>
<td class="td_num"><?php echo number_format($sub_point); ?></td>
<td class="td_bignum"><?php echo number_format($sub_amount); ?></td>
<td class="td_bignum"><?php echo number_format($sub_price); ?></td>
<td class="td_sendcost_by"><?php echo $ct_send_cost; ?></td>
<td class="td_smallmng"><?php echo $row3['ct_status']; ?></td>
</tr>

View File

@ -45,17 +45,17 @@ if ($od_send_mail)
$is_receipt = false;
// 신용카드 입금
if ($od['od_receipt_amount'] > 0 && $od['od_settle_case'] == '신용카드') {
if ($od['od_receipt_price'] > 0 && $od['od_settle_case'] == '신용카드') {
$card_list['od_receipt_time'] = $od['od_receipt_time'];
$card_list['od_receipt_amount'] = display_price($od['od_receipt_amount']);
$card_list['od_receipt_price'] = display_price($od['od_receipt_price']);
$is_receipt = true;
}
// 무통장 입금
if ($od['od_receipt_amount'] > 0 && $od['od_settle_case'] == '무통장') {
if ($od['od_receipt_price'] > 0 && $od['od_settle_case'] == '무통장') {
$bank_list['od_receipt_time'] = $od['od_receipt_time'];
$bank_list['od_receipt_amount'] = display_price($od['od_receipt_amount']);
$bank_list['od_receipt_price'] = display_price($od['od_receipt_price']);
$bank_list['od_deposit_name'] = $od['od_deposit_name'];
$is_receipt = true;

View File

@ -210,7 +210,7 @@ if (mysql_num_rows($result) == 0)
<?php
$mod = 10;
$tot_total_amount = 0;
$tot_total_price = 0;
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['shop_order_table']} where od_id = '{$row['od_id']}' ";
@ -281,15 +281,15 @@ if (mysql_num_rows($result) == 0)
$sql2 .= " order by it_id, io_type, ct_id ";
$res2 = sql_query($sql2);
$cnt = $sub_tot_qty = $sub_tot_amount = 0;
$cnt = $sub_tot_qty = $sub_tot_price = 0;
while ($row2 = sql_fetch_array($res2))
{
if($row2['io_type'])
$row2_tot_amount = $row2['io_price'] * $row2['ct_qty'];
$row2_tot_price = $row2['io_price'] * $row2['ct_qty'];
else
$row2_tot_amount = ($row2['ct_price'] + $row2['io_price']) * $row2['ct_qty'];
$row2_tot_price = ($row2['ct_price'] + $row2['io_price']) * $row2['ct_qty'];
$sub_tot_qty += $row2['ct_qty'];
$sub_tot_amount += $row2_tot_amount;
$sub_tot_price += $row2_tot_price;
$it_name = stripslashes($row2['it_name']);
$it_name = "$it_name ({$row2['ct_option']})";
@ -307,7 +307,7 @@ if (mysql_num_rows($result) == 0)
<td><?php echo $it_name; ?></td>
<td class="td_bignum"><?php echo number_format($row2['ct_price']); ?></td>
<td class="td_smallnum"><?php echo $fontqty1; ?><?php echo number_format($row2['ct_qty']); ?><?php echo $fontqty2; ?></td>
<td class="td_bignum"><?php echo number_format($row2_tot_amount); ?></td>
<td class="td_bignum"><?php echo number_format($row2_tot_price); ?></td>
<td class="td_sendcost_by"><?php echo $ct_send_cost; ?></td>
</tr>
<?php $cnt++; } ?>
@ -316,14 +316,14 @@ if (mysql_num_rows($result) == 0)
<tr>
<th scope="row" colspan="2">합계</th>
<td><?php echo number_format($sub_tot_qty); ?></td>
<td><?php echo number_format($sub_tot_amount); ?></td>
<td><?php echo number_format($sub_tot_price); ?></td>
<td></td>
</tr>
</tfoot>
</table>
<?php
$tot_tot_qty += $sub_tot_qty;
$tot_tot_amount += $sub_tot_amount;
$tot_tot_price += $sub_tot_price;
if ($od_memo) $od_memo = "<p><strong>비고</strong> $od_memo</p>";
if ($od_shop_memo) $od_shop_memo = "<p><strong>상점메모</strong> $od_shop_memo</p>";
@ -341,7 +341,7 @@ if (mysql_num_rows($result) == 0)
<span>
전체
<strong><?php echo number_format($tot_tot_qty); ?></strong>개
<strong><?php echo number_format($tot_tot_amount); ?></strong>원
<strong><?php echo number_format($tot_tot_price); ?></strong>원
</span>
&lt;출력 끝&gt;
</div>

View File

@ -16,9 +16,9 @@ $sql = " update {$g4['shop_order_table']}
set od_deposit_name = '$od_deposit_name',
od_bank_account = '$od_bank_account',
od_receipt_time = '$od_receipt_time',
od_receipt_amount = '$od_receipt_amount',
od_receipt_price = '$od_receipt_price',
od_receipt_point = '$od_receipt_point',
od_cancel_amount = '$od_cancel_amount',
od_cancel_price = '$od_cancel_price',
dl_id = '$dl_id',
od_invoice = '$od_invoice',
od_invoice_time = '$od_invoice_time' ";

View File

@ -8,11 +8,11 @@ $send_number = preg_replace("/[^0-9]/", "", $default['de_admin_company_tel']); /
if ($default['de_sms_use']) {
if ($od_sms_ipgum_check)
{
if ($od_bank_account && $od_receipt_amount && $od_deposit_name)
if ($od_bank_account && $od_receipt_price && $od_deposit_name)
{
$sms_contents = $default['de_sms_cont4'];
$sms_contents = preg_replace("/{이름}/", $od_name, $sms_contents);
$sms_contents = preg_replace("/{입금액}/", number_format($od_receipt_amount), $sms_contents);
$sms_contents = preg_replace("/{입금액}/", number_format($od_receipt_price), $sms_contents);
$sms_contents = preg_replace("/{주문번호}/", $od_id, $sms_contents);
$sms_contents = preg_replace("/{회사명}/", $default['de_admin_company_name'], $sms_contents);

View File

@ -53,7 +53,7 @@ $sql = " select a.od_id,
b.ct_price,
b.ct_point,
b.ct_option,
(IF(b.io_type = 1, b.io_price * b.ct_qty, (b.ct_price + b.io_price) * b.ct_qty)) as ct_sub_amount,
(IF(b.io_type = 1, b.io_price * b.ct_qty, (b.ct_price + b.io_price) * b.ct_qty)) as ct_sub_price,
(b.ct_qty * b.ct_point) as ct_sub_point,
b.it_id,
b.it_name
@ -62,17 +62,6 @@ $sql = " select a.od_id,
limit $from_record, $rows ";
$result = sql_query($sql);
$lines = array();
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$lines[$i] = $row;
$tot_amount += $row['ct_price'];
$tot_qty += $row['ct_qty'];
$tot_sub_amount += $row['ct_sub_amount'];
$tot_sub_point += $row['ct_sub_point'];
}
$qstr1 = "sel_ca_id=$sel_ca_id&amp;sel_field=$sel_field&amp;search=$search&amp;save_search=$search";
$qstr = "$qstr1&amp;sort1=$sort1&amp;sort2=$sort2&amp;page=$page";
@ -133,7 +122,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<li><a href="<?php echo title_sort("a.mb_id")."&amp;$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("ct_price")."&amp;$qstr1"; ?>">판매가<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("ct_qty")."&amp;$qstr1"; ?>">수량<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("ct_sub_amount")."&amp;$qstr1"; ?>">소계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("ct_sub_price")."&amp;$qstr1"; ?>">소계<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("ct_sub_point")."&amp;$qstr1"; ?>">포인트<span class="sound_only"> 순 정렬</span></a></li>
<li><a href="<?php echo title_sort("ct_status")."&amp;$qstr1"; ?>">상태<span class="sound_only"> 순 정렬</span></a></li>
</ul>
@ -153,52 +142,56 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<th scope="col">수정</th>
</tr>
</thead>
<tfoot>
<tr>
<th scope="row" colspan="4">합 계</td>
<td><?php echo number_format($tot_amount); ?></td>
<td><?php echo number_format($tot_qty); ?></td>
<td><?php echo number_format($tot_sub_amount); ?></td>
<td><?php echo number_format($tot_sub_point); ?></td>
<td colspan="2"></td>
</tr>
</tfoot>
<tbody>
<?php
for ($i=0; $i<count($lines); $i++) {
for ($i=0; $row=sql_fetch_array($result); $i++) {
$href = $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&amp;sort2='.$sort2.'&amp;sel_field=c.it_id&amp;search='.$lines[$i]['it_id'];
$it_name = '<a href="'.$href.'">'.cut_str($lines[$i]['it_name'],35).'</a><br>';
$href = $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&amp;sort2='.$sort2.'&amp;sel_field=c.it_id&amp;search='.$row['it_id'];
$it_name = '<a href="'.$href.'">'.cut_str($row['it_name'],35).'</a><br>';
$od_mobile = '';
if($lines[$i]['od_mobile'])
if($row['od_mobile'])
$od_mobile = '(M)';
?>
<tr>
<td class="td_odrnum2">
<?php echo $od_mobile; ?>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=a.od_id&amp;search=<?php echo $lines[$i]['od_id']; ?>"><?php echo $lines[$i]['od_id']; ?></a><br>
<?php echo $lines[$i]['od_time']; ?>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=a.od_id&amp;search=<?php echo $row['od_id']; ?>"><?php echo $row['od_id']; ?></a><br>
<?php echo $row['od_time']; ?>
</td>
<td class="td_it_img"><a href="<?php echo $href; ?>"><?php echo get_it_image($lines[$i]['it_id'], 50, 50); ?><?php echo $it_name; ?></a><br><?php echo $lines[$i]['ct_option']; ?></td>
<td class="td_it_img"><a href="<?php echo $href; ?>"><?php echo get_it_image($row['it_id'], 50, 50); ?><?php echo $it_name; ?></a><br>옵션:<?php echo $row['ct_option']; ?></td>
<td class="td_name">
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=od_name&amp;search=<?php echo $lines[$i]['od_name']; ?>"><?php echo cut_str($lines[$i]['od_name'],10,""); ?></a>
<?php if ($lines[$i]['od_deposit_name'] != "") echo '<br>'.$lines[$i]['od_deposit_name']?>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=od_name&amp;search=<?php echo $row['od_name']; ?>"><?php echo cut_str($row['od_name'],10,""); ?></a>
<?php if ($row['od_deposit_name'] != "") echo '<br>'.$row['od_deposit_name']?>
</td>
<td class="td_name"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=a.mb_id&amp;search=<?php echo $lines[$i]['mb_id']; ?>"><?php echo $lines[$i]['mb_id']; ?></a></td>
<td><?php echo number_format($lines[$i]['ct_price']); ?></td>
<td><?php echo $lines[$i]['ct_qty']; ?></td>
<td><?php echo number_format($lines[$i]['ct_sub_amount']); ?></td>
<td><?php echo number_format($lines[$i]['ct_sub_point']); ?></td>
<td><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=ct_status&amp;search=<?php echo $lines[$i]['ct_status']; ?>"><?php echo $lines[$i]['ct_status']; ?></a></td>
<td class="td_smallmng"><a href="./orderform.php?od_id=<?php echo $lines[$i]['od_id']; ?>">주문수정</a></td>
<td class="td_name"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=a.mb_id&amp;search=<?php echo $row['mb_id']; ?>"><?php echo $row['mb_id']; ?></a></td>
<td><?php echo number_format($row['ct_price']); ?></td>
<td><?php echo $row['ct_qty']; ?></td>
<td><?php echo number_format($row['ct_sub_price']); ?></td>
<td><?php echo number_format($row['ct_sub_point']); ?></td>
<td><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=ct_status&amp;search=<?php echo $row['ct_status']; ?>"><?php echo $row['ct_status']; ?></a></td>
<td class="td_smallmng"><a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>">주문수정</a></td>
</tr>
<?php
$tot_price += $row['ct_price'];
$tot_qty += $row['ct_qty'];
$tot_sub_price += $row['ct_sub_price'];
$tot_sub_point += $row['ct_sub_point'];
}
if ($i == 0) echo '<tr><td colspan="11" class="empty_table">자료가 한건도 없습니다.</td></tr>';
?>
</tbody>
<tfoot>
<tr>
<th scope="row" colspan="4">합 계</td>
<td><?php echo number_format($tot_price); ?></td>
<td><?php echo number_format($tot_qty); ?></td>
<td><?php echo number_format($tot_sub_price); ?></td>
<td><?php echo number_format($tot_sub_point); ?></td>
<td colspan="2"></td>
</tr>
</tfoot>
</table>
</section>

View File

@ -30,8 +30,8 @@ if(!$row['pp_id'])
<td><input type="text" name="od_id" value="<?php echo $row['od_id']; ?>" id="od_id" class="frm_input"></td>
</tr>
<tr>
<th scope="row"><label for="pp_amount">주문금액</label></th>
<td><input type="text" name="pp_amount" value="" id="pp_amount" required class="required frm_input" size="20"> 원</td>
<th scope="row"><label for="pp_price">주문금액</label></th>
<td><input type="text" name="pp_price" value="" id="pp_price" required class="required frm_input" size="20"> 원</td>
</tr>
</tbody>
</table>
@ -48,7 +48,7 @@ if(!$row['pp_id'])
// <![CDATA[
function form_check(f)
{
if(f.pp_amount.value.replace(/[0-9]/g, "").length > 0) {
if(f.pp_price.value.replace(/[0-9]/g, "").length > 0) {
alert("주문금액은 숫자만 입력해 주십시오");
return false;
}

View File

@ -8,9 +8,9 @@ $_POST = array_map('trim', $_POST);
if(!$_POST['pp_name'])
alert('이름을 입력해 주십시오.');
if(!$_POST['pp_amount'])
if(!$_POST['pp_price'])
alert('주문금액을 입력해 주십시오.');
if(preg_match('/[^0-9]/', $_POST['pp_amount']))
if(preg_match('/[^0-9]/', $_POST['pp_price']))
alert('주문금액은 숫자만 입력해 주십시오.');
if($_POST['od_id']) {
@ -34,7 +34,7 @@ $sql = " insert into {$g4['shop_personalpay_table']}
pp_name = '{$_POST['pp_name']}',
pp_content = '{$row['pp_content']}',
pp_use = '{$row['pp_use']}',
pp_amount = '{$_POST['pp_amount']}',
pp_price = '{$_POST['pp_price']}',
pp_ip = '{$_SERVER['REMOTE_ADDR']}',
pp_time = '".G4_TIME_YMDHIS."' ";
sql_query($sql);

View File

@ -24,7 +24,7 @@ $wrp_tag_end = '';
if($popup == 'yes') { // 팝업창일 때
include_once(G4_PATH.'/head.sub.php');
$pp['od_id'] = $od_id;
$sql = " select od_id, od_name, (od_cart_amount + od_send_cost + od_send_cost2 - od_cart_coupon - od_coupon - od_send_coupon - od_receipt_amount - od_cancel_amount) as misu
$sql = " select od_id, od_name, od_misu
from {$g4['shop_order_table']}
where od_id = '$od_id' ";
$od = sql_fetch($sql);
@ -34,8 +34,8 @@ if($popup == 'yes') { // 팝업창일 때
$pp['pp_name'] = $od['od_name'];
if($od['misu'] > 0)
$pp['pp_amount'] = $od['misu'];
if($od['od_misu'] > 0)
$pp['pp_price'] = $od['od_misu'];
$wrp_tag_st = '<div class="new_win">'.PHP_EOL.'<h1 id="new_win_title">'.$html_title.'</h1>';
$wrp_tag_end = '</div>';
}
@ -67,8 +67,8 @@ else { // 현재페이지일 때
<td><input type="text" name="pp_name" value="<?php echo $pp['pp_name']; ?>" id="pp_name" required class="required frm_input"></td>
</tr>
<tr>
<th scope="row"><label for="pp_amount">주문금액</label></th>
<td><input type="text" name="pp_amount" value="<?php echo $pp['pp_amount']; ?>" id="pp_amount" required class="required frm_input" size="15"> 원</td>
<th scope="row"><label for="pp_price">주문금액</label></th>
<td><input type="text" name="pp_price" value="<?php echo $pp['pp_price']; ?>" id="pp_price" required class="required frm_input" size="15"> 원</td>
</tr>
<tr>
<th scope="row"><label for="od_id">주문번호</label></th>
@ -80,8 +80,8 @@ else { // 현재페이지일 때
</tr>
<?php if($popup != 'yes') { ?>
<tr>
<th scope="row"><label for="pp_receipt_amount">결제금액</label></th>
<td><input type="text" name="pp_receipt_amount" value="<?php echo $pp['pp_receipt_amount'] ? $pp['pp_receipt_amount'] : ''; ?>" id="pp_receipt_amount" class="frm_input" size="15"> 원</td>
<th scope="row"><label for="pp_receipt_price">결제금액</label></th>
<td><input type="text" name="pp_receipt_price" value="<?php echo $pp['pp_receipt_price'] ? $pp['pp_receipt_price'] : ''; ?>" id="pp_receipt_price" class="frm_input" size="15"> 원</td>
</tr>
<tr>
<th scope="row"><label for="pp_settle_case">결제방법</label></th>
@ -138,7 +138,7 @@ else { // 현재페이지일 때
<script>
function form_check(f)
{
if(f.pp_amount.value.replace(/[0-9]/g, "").length > 0) {
if(f.pp_price.value.replace(/[0-9]/g, "").length > 0) {
alert("주문금액은 숫자만 입력해 주십시오");
return false;
}

View File

@ -20,9 +20,9 @@ if($w == 'd') {
if(!$_POST['pp_name'])
alert('이름을 입력해 주십시오.');
if(!$_POST['pp_amount'])
if(!$_POST['pp_price'])
alert('주문금액을 입력해 주십시오.');
if(preg_match('/[^0-9]/', $_POST['pp_amount']))
if(preg_match('/[^0-9]/', $_POST['pp_price']))
alert('주문금액은 숫자만 입력해 주십시오.');
if($_POST['od_id']) {
@ -33,10 +33,10 @@ if($w == 'd') {
}
$sql_common = " pp_name = '{$_POST['pp_name']}',
pp_amount = '{$_POST['pp_amount']}',
pp_price = '{$_POST['pp_price']}',
od_id = '{$_POST['od_id']}',
pp_content = '{$_POST['pp_content']}',
pp_receipt_amount = '{$_POST['pp_receipt_amount']}',
pp_receipt_price = '{$_POST['pp_receipt_price']}',
pp_settle_case = '{$_POST['pp_settle_case']}',
pp_receipt_time = '{$_POST['pp_receipt_time']}',
pp_shop_memo = '{$_POST['pp_shop_memo']}',

View File

@ -129,9 +129,9 @@ $colspan = 8;
</td>
<td class="spp_list_name"><?php echo $row['pp_name']; ?></td>
<td class="td_odrnum3 spp_list_id"><?php echo $od_id; ?></td>
<td class="td_bignum"><?php echo number_format($row['pp_amount']); ?></td>
<td class="td_bignum"><?php echo number_format($row['pp_receipt_amount']); ?></td>
<td class="td_bignum"><?php echo number_format($row['pp_amount'] - $row['pp_receipt_amount']); ?></td>
<td class="td_bignum"><?php echo number_format($row['pp_price']); ?></td>
<td class="td_bignum"><?php echo number_format($row['pp_receipt_price']); ?></td>
<td class="td_bignum"><?php echo number_format($row['pp_price'] - $row['pp_receipt_price']); ?></td>
<td class="td_payby"><?php echo $row['pp_settle_case']; ?></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>

View File

@ -18,7 +18,7 @@ function print_line($save)
<tr class="sale1">
<td><a href="./sale1today.php?date=<?php echo $date; ?>"><?php echo $save['od_date']; ?></a></td>
<td><?php echo number_format($save['ordercount']); ?></td>
<td><?php echo number_format($save['orderamount']); ?></td>
<td><?php echo number_format($save['orderprice']); ?></td>
<td><?php echo number_format($save['ordercoupon']); ?></td>
<td><?php echo number_format($save['receiptbank']); ?></td>
<td><?php echo number_format($save['receiptcard']); ?></td>
@ -32,11 +32,11 @@ function print_line($save)
$sql = " select od_id,
SUBSTRING(od_time,1,10) as od_date,
od_settle_case,
od_receipt_amount,
od_receipt_price,
od_receipt_point,
od_cart_amount,
od_cancel_amount,
(od_cart_amount + od_send_cost + od_send_cost2 - od_cart_coupon - od_coupon - od_send_coupon - od_receipt_amount - od_cancel_amount) as misu,
od_cart_price,
od_cancel_price,
od_misu,
(od_cart_coupon + od_coupon + od_send_coupon) as couponamount
from {$g4['shop_order_table']}
where SUBSTRING(od_time,1,10) between '$fr_date' and '$to_date'
@ -77,26 +77,26 @@ $result = sql_query($sql);
}
$save['ordercount']++;
$save['orderamount'] += $row['od_cart_amount'];
$save['ordercancel'] += $row['od_cancel_amount'];
$save['orderprice'] += $row['od_cart_price'];
$save['ordercancel'] += $row['od_cancel_price'];
$save['ordercoupon'] += $row['couponamount'];
if($row['od_settle_case'] == '무통장' || $row['od_settle_case'] == '가상계좌' || $row['od_settle_case'] == '계좌이체')
$save['receiptbank'] += $row['od_receipt_amount'];
$save['receiptbank'] += $row['od_receipt_price'];
if($row['od_settle_case'] == '신용카드')
$save['receiptcard'] += $row['od_receipt_amount'];
$save['receiptcard'] += $row['od_receipt_price'];
$save['receiptpoint'] += $lines[$i]['od_receipt_point'];
$save['misu'] += $row['misu'];
$save['misu'] += $row['od_misu'];
$tot['ordercount']++;
$tot['orderamount'] += $row['od_cart_amount'];
$tot['ordercancel'] += $row1['od_cancel_amount'];
$tot['orderprice'] += $row['od_cart_price'];
$tot['ordercancel'] += $row1['od_cancel_price'];
$tot['ordercoupon'] += $row['couponamount'];
if($row['od_settle_case'] == '무통장' || $row['od_settle_case'] == '가상계좌' || $row['od_settle_case'] == '계좌이체')
$tot['receiptbank'] += $row['od_receipt_amount'];
$tot['receiptbank'] += $row['od_receipt_price'];
if($row['od_settle_case'] == '신용카드')
$tot['receiptcard'] += $row['od_receipt_amount'];
$tot['receiptcard'] += $row['od_receipt_price'];
$tot['receiptpoint '] += $row['od_receipt_point'];
$tot['misu'] += $row['misu'];
$tot['misu'] += $row['od_misu'];
}
if ($i == 0) {
@ -110,7 +110,7 @@ $result = sql_query($sql);
<tr>
<td>합계</td>
<td><?php echo number_format($tot['ordercount']); ?></td>
<td><?php echo number_format($tot['orderamount']); ?></td>
<td><?php echo number_format($tot['orderprice']); ?></td>
<td><?php echo number_format($tot['ordercoupon']); ?></td>
<td><?php echo number_format($tot['receiptbank']); ?></td>
<td><?php echo number_format($tot['receiptcard']); ?></td>

View File

@ -18,8 +18,8 @@ function print_line($save)
<tr>
<td><a href="./sale1date.php?fr_date=<?php echo $date; ?>01&amp;to_date=<?php echo $date; ?>31"><?php echo $save['od_date']; ?></a></td>
<td><?php echo number_format($save['ordercount']); ?></td>
<td><?php echo number_format($save['orderamount']); ?></td>
<td><?php echo number_format($save['ordercancel'] + $save['dc']); ?></td>
<td><?php echo number_format($save['orderprice']); ?></td>
<td><?php echo number_format($save['ordercoupon']); ?></td>
<td><?php echo number_format($save['receiptbank']); ?></td>
<td><?php echo number_format($save['receiptcard']); ?></td>
<td><?php echo number_format($save['receiptpoint']); ?></td>
@ -33,11 +33,11 @@ $sql = " select od_id,
SUBSTRING(od_time,1,7) as od_date,
od_send_cost,
od_settle_case,
od_receipt_amount,
od_receipt_price,
od_receipt_point,
od_cart_amount,
od_cancel_amount,
(od_cart_amount + od_send_cost + od_send_cost2 - od_cart_coupon - od_coupon - od_send_coupon - od_receipt_amount - od_cancel_amount) as misu,
od_cart_price,
od_cancel_price,
od_misu,
(od_cart_coupon + od_coupon + od_send_coupon) as couponamount
from {$g4['shop_order_table']}
where SUBSTRING(od_time,1,7) between '$fr_month' and '$to_month'
@ -78,26 +78,26 @@ $result = sql_query($sql);
}
$save['ordercount']++;
$save['orderamount'] += $row['od_cart_amount'];
$save['ordercancel'] += $row['od_cancel_amount'];
$save['orderprice'] += $row['od_cart_price'];
$save['ordercancel'] += $row['od_cancel_price'];
$save['ordercoupon'] += $row['couponamount'];
if($row['od_settle_case'] == '무통장' || $row['od_settle_case'] == '가상계좌' || $row['od_settle_case'] == '계좌이체')
$save['receiptbank'] += $row['od_receipt_amount'];
$save['receiptbank'] += $row['od_receipt_price'];
if($row['od_settle_case'] == '신용카드')
$save['receiptcard'] += $row['od_receipt_amount'];
$save['receiptcard'] += $row['od_receipt_price'];
$save['receiptpoint'] += $row['od_receipt_point'];
$save['misu'] += $row['misu'];
$save['misu'] += $row['od_misu'];
$tot['ordercount']++;
$tot['orderamount'] += $row['od_cart_amount'];
$tot['ordercancel'] += $row['od_cancel_amount'];
$tot['orderprice'] += $row['od_cart_price'];
$tot['ordercancel'] += $row['od_cancel_price'];
$tot['ordercoupon'] += $row['couponamount'];
if($row['od_settle_case'] == '무통장' || $row['od_settle_case'] == '가상계좌' || $row['od_settle_case'] == '계좌이체')
$tot['receiptbank'] += $row['od_receipt_amount'];
$tot['receiptbank'] += $row['od_receipt_price'];
if($row['od_settle_case'] == '신용카드')
$tot['receiptcard'] += $row['od_receipt_amount'];
$tot['receiptcard'] += $row['od_receipt_price'];
$tot['receiptpoint'] += $row['od_receipt_point'];
$tot['misu'] += $row['misu'];
$tot['misu'] += $row['od_misu'];
}
if ($i == 0) {
@ -111,7 +111,7 @@ $result = sql_query($sql);
<tr>
<td>합 계</td>
<td><?php echo number_format($tot['ordercount']); ?></td>
<td><?php echo number_format($tot['orderamount']); ?></td>
<td><?php echo number_format($tot['orderprice']); ?></td>
<td><?php echo number_format($tot['ordercoupon']); ?></td>
<td><?php echo number_format($tot['receiptbank']); ?></td>
<td><?php echo number_format($tot['receiptcard']); ?></td>

View File

@ -13,11 +13,11 @@ $sql = " select od_id,
mb_id,
od_name,
od_settle_case,
od_cart_amount,
od_receipt_amount,
od_cart_price,
od_receipt_price,
od_receipt_point,
od_cancel_amount,
(od_cart_amount + od_send_cost + od_send_cost2 - od_cart_coupon - od_coupon - od_send_coupon - od_receipt_amount - od_cancel_amount) as misu,
od_cancel_price,
od_misu,
(od_cart_coupon + od_coupon + od_send_coupon) as couponamount
from {$g4['shop_order_table']}
where SUBSTRING(od_time,1,10) = '$date'
@ -53,36 +53,34 @@ $result = sql_query($sql);
$href = '<a href="./orderlist.php?sel_field=mb_id&amp;search='.$row['mb_id'].'">';
}
$misu = $row['misu'];
$receipt_bank = $receipt_card = 0;
if($row['od_settle_case'] == '무통장' || $row['od_settle_case'] == '가상계좌' || $row['od_settle_case'] == '계좌이체')
$receipt_bank = $row['od_receipt_amount'];
$receipt_bank = $row['od_receipt_price'];
if($row['od_settle_case'] == '신용카드')
$receipt_card = $row['od_receipt_amount'];
$receipt_card = $row['od_receipt_price'];
?>
<tr>
<td class="td_odrnum2"><a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>"><?php echo $row['od_id']; ?></a></td>
<td class="td_name"><?php echo $href; ?><?php echo $row['od_name']; ?></a></td>
<td class="td_num"><?php echo number_format($row['od_cart_amount']); ?></td>
<td class="td_num"><?php echo number_format($row['od_cart_price']); ?></td>
<td class="td_num"><?php echo number_format($row['couponamount']); ?></td>
<td class="td_num"><?php echo number_format($receipt_bank); ?></td>
<td class="td_num"><?php echo number_format($receipt_card); ?></td>
<td class="td_num"><?php echo number_format($row['od_receipt_point']); ?></td>
<td class="td_num"><?php echo number_format($row['od_cancel_amount']); ?></td>
<td class="td_num"><?php echo number_format($misu); ?></td>
<td class="td_num"><?php echo number_format($row['od_cancel_price']); ?></td>
<td class="td_num"><?php echo number_format($row['od_misu']); ?></td>
</tr>
<?php
$tot['orderamount'] += $row['od_cart_amount'];
$tot['ordercancel'] += $row1['od_cancel_amount'];
$tot['orderprice'] += $row['od_cart_price'];
$tot['ordercancel'] += $row1['od_cancel_price'];
$tot['coupon'] += $row['couponamount'] ;
if($row['od_settle_case'] == '무통장' || $row['od_settle_case'] == '가상계좌' || $row['od_settle_case'] == '계좌이체')
$tot['receipt_bank'] += $row['od_receipt_amount'];
$tot['receipt_bank'] += $row['od_receipt_price'];
if($row['od_settle_case'] == '신용카드')
$tot['receipt_card'] += $row['od_receipt_amount'];
$tot['receipt_card'] += $row['od_receipt_price'];
$tot['receipt_point'] += $row['od_receipt_point'];
$tot['misu'] += $misu;
$tot['misu'] += $row['od_misu'];
}
if ($i == 0) {
@ -93,7 +91,7 @@ $result = sql_query($sql);
<tfoot>
<tr>
<td colspan="2">합 계</td>
<td><?php echo number_format($tot['orderamount']); ?></td>
<td><?php echo number_format($tot['orderprice']); ?></td>
<td><?php echo number_format($tot['coupon']); ?></td>
<td><?php echo number_format($tot['receipt_bank']); ?></td>
<td><?php echo number_format($tot['receipt_card']); ?></td>

View File

@ -13,8 +13,8 @@ function print_line($save)
<tr>
<td><a href="./sale1month.php?fr_month=<?php echo $save['od_date']; ?>01&amp;to_month=<?php echo $save['od_date']; ?>12"><?php echo $save['od_date']; ?></a></td>
<td><?php echo number_format($save['ordercount']); ?></td>
<td><?php echo number_format($save['orderamount']); ?></td>
<td><?php echo number_format($save['ordercancel'] + $save['dc']); ?></td>
<td><?php echo number_format($save['orderprice']); ?></td>
<td><?php echo number_format($save['ordercoupon']); ?></td>
<td><?php echo number_format($save['receiptbank']); ?></td>
<td><?php echo number_format($save['receiptcard']); ?></td>
<td><?php echo number_format($save['receiptpoint']); ?></td>
@ -28,11 +28,11 @@ $sql = " select od_id,
SUBSTRING(od_time,1,4) as od_date,
od_send_cost,
od_settle_case,
od_receipt_amount,
od_receipt_price,
od_receipt_point,
od_cart_amount,
od_cancel_amount,
(od_cart_amount + od_send_cost + od_send_cost2 - od_cart_coupon - od_coupon - od_send_coupon - od_receipt_amount - od_cancel_amount) as misu,
od_cart_price,
od_cancel_price,
od_misu,
(od_cart_coupon + od_coupon + od_send_coupon) as couponamount
from {$g4['shop_order_table']}
where SUBSTRING(od_time,1,4) between '$fr_year' and '$to_year'
@ -73,26 +73,26 @@ $result = sql_query($sql);
}
$save['ordercount']++;
$save['orderamount'] += $row['od_cart_amount'];
$save['ordercancel'] += $row['od_cancel_amount'];
$save['orderprice'] += $row['od_cart_price'];
$save['ordercancel'] += $row['od_cancel_price'];
$save['ordercoupon'] += $row['couponamount'];
if($row['od_settle_case'] == '무통장' || $row['od_settle_case'] == '가상계좌' || $row['od_settle_case'] == '계좌이체')
$save['receiptbank'] += $row['od_receipt_amount'];
$save['receiptbank'] += $row['od_receipt_price'];
if($row['od_settle_case'] == '신용카드')
$save['receiptcard'] += $row['od_receipt_amount'];
$save['receiptcard'] += $row['od_receipt_price'];
$save['receiptpoint'] += $row['od_receipt_point'];
$save['misu'] += $row['misu'];
$save['misu'] += $row['od_misu'];
$tot['ordercount']++;
$tot['orderamount'] += $row['od_cart_amount'];
$tot['ordercancel'] += $row1['od_cancel_amount'];
$tot['orderprice'] += $row['od_cart_price'];
$tot['ordercancel'] += $row1['od_cancel_price'];
$tot['ordercoupon'] += $row['couponamount'];
if($row['od_settle_case'] == '무통장' || $row['od_settle_case'] == '가상계좌' || $row['od_settle_case'] == '계좌이체')
$tot['receiptbank'] += $row['od_receipt_amount'];
$tot['receiptbank'] += $row['od_receipt_price'];
if($row['od_settle_case'] == '신용카드')
$tot['receiptcard'] += $row['od_receipt_amount'];
$tot['receiptcard'] += $row['od_receipt_price'];
$tot['receiptpoint'] += $row['od_receipt_point'];
$tot['misu'] += $row['misu'];
$tot['misu'] += $row['od_misu'];
}
if ($i == 0) {
@ -106,7 +106,7 @@ $result = sql_query($sql);
<tr>
<td>합 계</td>
<td><?php echo number_format($tot['ordercount']); ?></td>
<td><?php echo number_format($tot['orderamount']); ?></td>
<td><?php echo number_format($tot['orderprice']); ?></td>
<td><?php echo number_format($tot['ordercoupon']); ?></td>
<td><?php echo number_format($tot['receiptbank']); ?></td>
<td><?php echo number_format($tot['receiptcard']); ?></td>

View File

@ -64,7 +64,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
<td><?php echo $row['sc_name']; ?></td>
<td class="td_bigpostal"><?php echo preg_replace('/([0-9]{3})([0-9]{3})/', '\\1-\\2', $row['sc_zip1']).' ~ '.preg_replace('/([0-9]{3})([0-9]{3})/', '\\1-\\2', $row['sc_zip2']); ?></td>
<td class="td_sendcost_add"><?php echo number_format($row['sc_amount']); ?></td>
<td class="td_sendcost_add"><?php echo number_format($row['sc_price']); ?></td>
</tr>
<?php
}
@ -115,8 +115,8 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="row"><label for="sc_amount">추가배송비<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="sc_amount" id="sc_amount" size="8" required class="required frm_input"> 원</td>
<th scope="row"><label for="sc_price">추가배송비<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="sc_price" id="sc_price" size="8" required class="required frm_input"> 원</td>
</tr>
</tbody>
</table>

View File

@ -23,7 +23,7 @@ if($w == 'd') {
$sc_name = trim($_POST['sc_name']);
$sc_zip1 = preg_replace('/[^0-9]/', '', $_POST['sc_zip1']);
$sc_zip2 = preg_replace('/[^0-9]/', '', $_POST['sc_zip2']);
$sc_amount = preg_replace('/[^0-9]/', '', $_POST['sc_amount']);
$sc_price = preg_replace('/[^0-9]/', '', $_POST['sc_price']);
if(!$sc_name)
alert('지역명을 입력해 주십시오.');
@ -31,13 +31,13 @@ if($w == 'd') {
alert('우편번호 시작을 입력해 주십시오.');
if(!$sc_zip2)
alert('우편번호 끝을 입력해 주십시오.');
if(!$sc_amount)
if(!$sc_price)
alert('추가배송비를 입력해 주십시오.');
$sql = " insert into {$g4['shop_sendcost_table']}
( sc_name, sc_zip1, sc_zip2, sc_amount )
( sc_name, sc_zip1, sc_zip2, sc_price )
values
( '$sc_name', '$sc_zip1', '$sc_zip2', '$sc_amount' ) ";
( '$sc_name', '$sc_zip1', '$sc_zip2', '$sc_price' ) ";
sql_query($sql);
}