Merge branch 'master' of github.com:gnuboard/yc5
This commit is contained in:
@ -375,19 +375,19 @@ $pg_anchor = '<ul class="anchor">
|
||||
<th scope="row"><label for="cf_possible_ip">접근가능 IP</label></th>
|
||||
<td>
|
||||
<?php echo help('입력된 IP의 컴퓨터만 접근할 수 있습니다.<br>123.123.+ 도 입력 가능. (엔터로 구분)') ?>
|
||||
<textarea name="cf_possible_ip" id="cf_possible_ip"><?php echo $config['cf_possible_ip'] ?> </textarea>
|
||||
<textarea name="cf_possible_ip" id="cf_possible_ip"><?php echo $config['cf_possible_ip'] ?></textarea>
|
||||
</td>
|
||||
<th scope="row"><label for="cf_intercept_ip">접근차단 IP</label></th>
|
||||
<td>
|
||||
<?php echo help('입력된 IP의 컴퓨터는 접근할 수 없음.<br>123.123.+ 도 입력 가능. (엔터로 구분)') ?>
|
||||
<textarea name="cf_intercept_ip" id="cf_intercept_ip"><?php echo $config['cf_intercept_ip'] ?> </textarea>
|
||||
<textarea name="cf_intercept_ip" id="cf_intercept_ip"><?php echo $config['cf_intercept_ip'] ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_analytics">방문자분석 스크립트</label></th>
|
||||
<td colspan="3">
|
||||
<?php echo help('방문자분석 스크립트 코드를 입력합니다. 예) 구글 애널리스틱'); ?>
|
||||
<textarea name="cf_analytics" id="cf_analytics"><?php echo $config['cf_analytics']; ?> </textarea>
|
||||
<textarea name="cf_analytics" id="cf_analytics"><?php echo $config['cf_analytics']; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -467,7 +467,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<th scope="row"><label for="cf_filter">단어 필터링</label></th>
|
||||
<td colspan="3">
|
||||
<?php echo help('입력된 단어가 포함된 내용은 게시할 수 없습니다. 단어와 단어 사이는 ,로 구분합니다.') ?>
|
||||
<textarea name="cf_filter" id="cf_filter" rows="7"><?php echo $config['cf_filter'] ?> </textarea>
|
||||
<textarea name="cf_filter" id="cf_filter" rows="7"><?php echo $config['cf_filter'] ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -613,7 +613,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_privacy">개인정보취급방침</label></th>
|
||||
<td colspan="3"><textarea id="cf_privacy" name="cf_privacy" rows="10"><?php echo $config['cf_privacy'] ?> </textarea></td>
|
||||
<td colspan="3"><textarea id="cf_privacy" name="cf_privacy" rows="10"><?php echo $config['cf_privacy'] ?></textarea></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -101,10 +101,12 @@ include_once('./admin.head.php');
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_confirm01 btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./poll_list.php?<?php echo $qstr ?>">목록</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn_confirm01 btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./poll_list.php?<?php echo $qstr ?>">목록</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
98
adm/shop_admin/ajax.orderitem.php
Normal file
98
adm/shop_admin/ajax.orderitem.php
Normal file
@ -0,0 +1,98 @@
|
||||
<?php
|
||||
$sub_menu = '400400';
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
|
||||
$od_id = $_POST['od_id'];
|
||||
|
||||
$sql = " select * from {$g5['g5_shop_order_table']} where od_id = '$od_id' ";
|
||||
$od = sql_fetch($sql);
|
||||
|
||||
if(!$od['od_id'])
|
||||
die('<div>주문정보가 존재하지 않습니다.</div>');
|
||||
|
||||
// 상품목록
|
||||
$sql = " select it_id,
|
||||
it_name,
|
||||
cp_price,
|
||||
ct_notax
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$od_id'
|
||||
group by it_id
|
||||
order by ct_id ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<section id="cart_list">
|
||||
<h2 class="h2_frm">주문상품 목록</h2>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>주문 상품 목록</caption>
|
||||
<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>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">배송비</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 상품이미지
|
||||
$image = get_it_image($row['it_id'], 50, 50);
|
||||
|
||||
// 상품의 옵션정보
|
||||
$sql = " select ct_id, it_id, ct_price, ct_qty, ct_option, ct_status, cp_price, ct_send_cost, io_type, io_price
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$od_id'
|
||||
and it_id = '{$row['it_id']}'
|
||||
order by io_type asc, ct_id asc ";
|
||||
$res = sql_query($sql);
|
||||
$rowspan = mysql_num_rows($res);
|
||||
|
||||
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'];
|
||||
|
||||
// 소계
|
||||
$ct_price['stotal'] = $opt_price * $opt['ct_qty'];
|
||||
$ct_point['stotal'] = $opt['ct_point'] * $opt['ct_qty'];
|
||||
?>
|
||||
<tr>
|
||||
<?php if($k == 0) { ?>
|
||||
<td class="td_itname" rowspan="<?php echo $rowspan; ?>">
|
||||
<a href="./itemform.php?w=u&it_id=<?php echo $row['it_id']; ?>"><?php echo $image; ?> <?php echo stripslashes($row['it_name']); ?></a>
|
||||
<?php if($od['od_tax_flag'] && $row['ct_notax']) echo '[비과세상품]'; ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td class="td_itopt_tl">
|
||||
<?php echo $opt['ct_option']; ?>
|
||||
</td>
|
||||
<td class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
|
||||
<td class="td_cntsmall"><?php echo $opt['ct_qty']; ?></td>
|
||||
<td class="td_num"><?php echo number_format($opt_price); ?></td>
|
||||
<td class="td_num"><?php echo number_format($ct_price['stotal']); ?></td>
|
||||
<td class="td_num"><?php echo number_format($opt['cp_price']); ?></td>
|
||||
<td class="td_num"><?php echo number_format($ct_point['stotal']); ?></td>
|
||||
<td class="td_sendcost_by"><?php echo $opt['ct_send_cost'] ? '착불' : '선불'; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@ -33,7 +33,7 @@ if ($od_status) {
|
||||
$sort1 = "od_receipt_time";
|
||||
$sort2 = "desc";
|
||||
break;
|
||||
case '배송' : // 배송중
|
||||
case '배송' : // 배송중
|
||||
$sort1 = "od_invoice_time";
|
||||
$sort2 = "desc";
|
||||
break;
|
||||
@ -323,7 +323,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
|
||||
비회원
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td headers="th_odrcnt"><?php echo $row['od_cart_count']; ?>건</td>
|
||||
<td headers="th_odrcnt"><a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>&<?php echo $qstr; ?>" id="order-id-<?php echo $row['od_id']; ?>" class="orderitem"><?php echo $row['od_cart_count']; ?>건</a></td>
|
||||
<td headers="th_odrall"><?php echo $od_cnt; ?>건</td>
|
||||
</tr>
|
||||
<tr class="<?php echo $tr_bg; ?>">
|
||||
@ -427,11 +427,47 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" });
|
||||
$("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" });
|
||||
|
||||
// 주문상품보기
|
||||
$(".orderitem").on("click", function() {
|
||||
var $this = $(this);
|
||||
var od_id = $this.attr("id").replace("order-id-", "");
|
||||
|
||||
if($this.next().size())
|
||||
return false;
|
||||
|
||||
$("#orderitemlist").remove();
|
||||
|
||||
$.post(
|
||||
"./ajax.orderitem.php",
|
||||
{ od_id: od_id },
|
||||
function(data) {
|
||||
$this.parent().append("<div id=\"orderitemlist\"><div class=\"itemlist\"></div></div>");
|
||||
$("#orderitemlist .itemlist")
|
||||
.html(data)
|
||||
.append("<div id=\"orderitemlist_close\"><button type=\"button\" id=\"orderitemlist-x\" class=\"btn_frmline\">닫기</button></div>");
|
||||
}
|
||||
);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
// 상품리스트 닫기
|
||||
$(".orderitemlist-x").on("click", function() {
|
||||
$("#orderitemlist").remove();
|
||||
});
|
||||
|
||||
$("body").on("click", function() {
|
||||
$("#orderitemlist").remove();
|
||||
});
|
||||
});
|
||||
|
||||
function set_date(today)
|
||||
function set_date(today)
|
||||
{
|
||||
<?php
|
||||
$date_term = date('w', G5_SERVER_TIME) - 1;
|
||||
?>
|
||||
if (today == "오늘") {
|
||||
document.getElementById("fr_date").value = "<?php echo G5_TIME_YMD; ?>";
|
||||
document.getElementById("to_date").value = "<?php echo G5_TIME_YMD; ?>";
|
||||
@ -439,14 +475,14 @@ function set_date(today)
|
||||
document.getElementById("fr_date").value = "<?php echo date('Y-m-d', G5_SERVER_TIME - 86400); ?>";
|
||||
document.getElementById("to_date").value = "<?php echo date('Y-m-d', G5_SERVER_TIME - 86400); ?>";
|
||||
} else if (today == "이번주") {
|
||||
document.getElementById("fr_date").value = "<?php echo date('Y-m-d', strtotime('last Monday', G5_SERVER_TIME)); ?>";
|
||||
document.getElementById("fr_date").value = "<?php echo date('Y-m-d', strtotime('this Monday', G5_SERVER_TIME - (86400 * $date_term))); ?>";
|
||||
document.getElementById("to_date").value = "<?php echo date('Y-m-d', G5_SERVER_TIME); ?>";
|
||||
} else if (today == "이번달") {
|
||||
document.getElementById("fr_date").value = "<?php echo date('Y-m-01', G5_SERVER_TIME); ?>";
|
||||
document.getElementById("to_date").value = "<?php echo date('Y-m-d', G5_SERVER_TIME); ?>";
|
||||
} else if (today == "지난주") {
|
||||
document.getElementById("fr_date").value = "<?php echo date('Y-m-d', strtotime('last Monday', G5_SERVER_TIME - (86400 * 7))); ?>";
|
||||
document.getElementById("to_date").value = "<?php echo date('Y-m-d', strtotime('last Sunday', G5_SERVER_TIME)); ?>";
|
||||
document.getElementById("fr_date").value = "<?php echo date('Y-m-d', strtotime('last Monday', G5_SERVER_TIME - (86400 * $date_term))); ?>";
|
||||
document.getElementById("to_date").value = "<?php echo date('Y-m-d', strtotime('last Sunday', G5_SERVER_TIME - (86400 * $date_term))); ?>";
|
||||
} else if (today == "지난달") {
|
||||
document.getElementById("fr_date").value = "<?php echo date('Y-m-01', strtotime('-1 Month', G5_SERVER_TIME)); ?>";
|
||||
document.getElementById("to_date").value = "<?php echo date('Y-m-t', strtotime('-1 Month', G5_SERVER_TIME)); ?>";
|
||||
@ -469,10 +505,10 @@ function forderlist_submit(f)
|
||||
|
||||
/*
|
||||
switch (f.od_status.value) {
|
||||
case "" :
|
||||
case "" :
|
||||
alert("변경하실 주문상태를 선택하세요.");
|
||||
return false;
|
||||
case '주문' :
|
||||
case '주문' :
|
||||
|
||||
default :
|
||||
|
||||
@ -494,9 +530,9 @@ function forderlist_submit(f)
|
||||
|
||||
var chk = document.getElementsByName("chk[]");
|
||||
|
||||
for (var i=0; i<chk.length; i++)
|
||||
for (var i=0; i<chk.length; i++)
|
||||
{
|
||||
if (chk[i].checked)
|
||||
if (chk[i].checked)
|
||||
{
|
||||
var k = chk[i].value;
|
||||
var current_settle_case = f.elements['current_settle_case['+k+']'].value;
|
||||
@ -504,21 +540,21 @@ function forderlist_submit(f)
|
||||
|
||||
switch (change_status)
|
||||
{
|
||||
case "입금" :
|
||||
case "입금" :
|
||||
if (!(current_status == "주문" && current_settle_case == "무통장")) {
|
||||
alert("'주문' 상태의 '무통장'(결제수단)인 경우에만 '입금' 처리 가능합니다.");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
case "준비" :
|
||||
case "준비" :
|
||||
if (current_status != "입금") {
|
||||
alert("'입금' 상태의 주문만 '준비'로 변경이 가능합니다.");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
case "배송" :
|
||||
case "배송" :
|
||||
if (current_status != "준비") {
|
||||
alert("'준비' 상태의 주문만 '배송'으로 변경이 가능합니다.");
|
||||
return false;
|
||||
@ -553,7 +589,7 @@ function forderlist_submit(f)
|
||||
|
||||
if (!confirm("선택하신 주문서의 주문상태를 '"+change_status+"'상태로 변경하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
|
||||
f.action = "./orderlistupdate.php";
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@ include_once('./_common.php');
|
||||
//print_r2($_POST); exit;
|
||||
|
||||
// 상품옵션별재고 또는 상품재고에 더하기
|
||||
function add_io_stock($it_id, $ct_qty, $io_id="", $io_type="")
|
||||
function add_io_stock($it_id, $ct_qty, $io_id="", $io_type=0)
|
||||
{
|
||||
global $g5;
|
||||
|
||||
@ -25,7 +25,7 @@ function add_io_stock($it_id, $ct_qty, $io_id="", $io_type="")
|
||||
|
||||
|
||||
// 상품옵션별재고 또는 상품재고에서 빼기
|
||||
function subtract_io_stock($it_id, $ct_qty, $io_id="", $io_type="")
|
||||
function subtract_io_stock($it_id, $ct_qty, $io_id="", $io_type=0)
|
||||
{
|
||||
global $g5;
|
||||
|
||||
@ -58,7 +58,7 @@ function change_status($od_id, $current_status, $change_status)
|
||||
|
||||
|
||||
// 주문서에 입금시 update
|
||||
function order_update_receipt($od_id)
|
||||
function order_update_receipt($od_id)
|
||||
{
|
||||
global $g5;
|
||||
|
||||
@ -78,17 +78,17 @@ function order_update_delivery($od_id, $mb_id, $change_status, $delivery)
|
||||
$sql = " select * from {$g5['g5_shop_cart_table']} where od_id = '$od_id' ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 재고를 이미 사용했거나 재고에서 이미 뺐다면
|
||||
$stock_use = $row['ct_stock_use'];
|
||||
|
||||
|
||||
if ($row['ct_stock_use'])
|
||||
{
|
||||
if ($change_status == '주문' ||
|
||||
$change_status == '취소' ||
|
||||
$change_status == '반품' ||
|
||||
$change_status == '품절')
|
||||
if ($change_status == '주문' ||
|
||||
$change_status == '취소' ||
|
||||
$change_status == '반품' ||
|
||||
$change_status == '품절')
|
||||
{
|
||||
// 재고에 다시 더한다.
|
||||
add_io_stock($row['it_id'], $row['ct_qty'], $row['io_id'], $row['io_type']);
|
||||
@ -98,7 +98,7 @@ function order_update_delivery($od_id, $mb_id, $change_status, $delivery)
|
||||
else
|
||||
{
|
||||
// 재고 오류로 인한 수정
|
||||
if ($change_status == '배송' ||
|
||||
if ($change_status == '배송' ||
|
||||
$change_status == '완료')
|
||||
{
|
||||
// 재고에서 뺀다.
|
||||
@ -108,7 +108,7 @@ function order_update_delivery($od_id, $mb_id, $change_status, $delivery)
|
||||
}
|
||||
|
||||
$point_use = $row['ct_point_use'];
|
||||
|
||||
|
||||
// 회원이면서 포인트가 0보다 크거나 이미 포인트를 부여했다면 뺀다.
|
||||
if ($mb_id && $row['ct_point'] && $row['ct_point_use'])
|
||||
{
|
||||
@ -141,14 +141,14 @@ for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
|
||||
$od = sql_fetch(" select * from {$g5['g5_shop_order_table']} where od_id = '$od_id' ");
|
||||
if (!$od) continue;
|
||||
|
||||
|
||||
//change_order_status($od['od_status'], $_POST['od_status'], $od);
|
||||
//echo $od_id . "<br>";
|
||||
|
||||
$current_status = $od['od_status'];
|
||||
$change_status = $_POST['od_status'];
|
||||
|
||||
switch ($current_status)
|
||||
switch ($current_status)
|
||||
{
|
||||
case '주문' :
|
||||
if ($change_status != '입금') continue;
|
||||
@ -173,7 +173,7 @@ for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
order_update_delivery($od_id, $od['mb_id'], $change_status, $delivery);
|
||||
|
||||
/*
|
||||
$sql = " update {$g5['g5_shop_order_table']}
|
||||
$sql = " update {$g5['g5_shop_order_table']}
|
||||
set od_delivery_company = '$delivery_company',
|
||||
od_invoice = '$invoice',
|
||||
od_invoice_time = '$invoice_time'
|
||||
@ -183,11 +183,11 @@ for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
$sql = " select * from {$g5['g5_shop_cart_table']} where od_id = '$od_id' ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 재고를 이미 사용했거나 재고에서 이미 뺐다면
|
||||
$stock_use = $row['ct_stock_use'];
|
||||
|
||||
|
||||
if ($row['ct_stock_use'])
|
||||
{
|
||||
if ($ct_status == '주문' || $ct_status == '취소' || $ct_status == '반품' || $ct_status == '품절')
|
||||
@ -209,7 +209,7 @@ for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
}
|
||||
|
||||
$point_use = $row['ct_point_use'];
|
||||
|
||||
|
||||
// 회원이면서 포인트가 0보다 크거나 이미 포인트를 부여했다면 뺀다.
|
||||
if ($od['mb_id'] && $row['ct_point'] && $row['ct_point_use'])
|
||||
{
|
||||
@ -233,7 +233,7 @@ for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
change_status($od_id, '배송', '완료');
|
||||
break;
|
||||
|
||||
} // switch end
|
||||
} // switch end
|
||||
|
||||
|
||||
// 주문정보
|
||||
|
||||
@ -55,7 +55,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
<input type="hidden" name="act" value="<?php echo $act ?>">
|
||||
<input type="hidden" name="url" value="<?php echo $_SERVER['HTTP_REFERER'] ?>">
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption><?php echo $act ?>할 게시판을 한개 이상 선택하여 주십시오.</caption>
|
||||
<thead>
|
||||
|
||||
@ -25,7 +25,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
<div id="point" class="new_win">
|
||||
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>포인트 사용내역 목록</caption>
|
||||
<thead>
|
||||
|
||||
@ -95,6 +95,7 @@ if (file_exists($dbconfig_file)) {
|
||||
$connect_db = sql_connect(G5_MYSQL_HOST, G5_MYSQL_USER, G5_MYSQL_PASSWORD) or die('MySQL Connect Error!!!');
|
||||
$select_db = sql_select_db(G5_MYSQL_DB, $connect_db) or die('MySQL DB Error!!!');
|
||||
@mysql_query(" set names utf8 ");
|
||||
if(defined('G5_MYSQL_SET_MODE') && G5_MYSQL_SET_MODE) @mysql_query("SET SESSION sql_mode = ''");
|
||||
if (defined(G5_TIMEZONE)) @mysql_query(" set time_zone = '".G5_TIMEZONE."'");
|
||||
} else {
|
||||
?>
|
||||
|
||||
@ -351,7 +351,9 @@ table .tr_bg1 {background:#f9f9f9}
|
||||
td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center}
|
||||
.td_id {width:150px}
|
||||
.td_idsmall {width:75px}
|
||||
.td_itname {text-align:left !important}
|
||||
.td_itopt {width:200px}
|
||||
.td_itopt_tl {text-align:left !important}
|
||||
.td_img {text-align:center}
|
||||
.td_imgline {width:70px;text-align:center}
|
||||
.td_input input {width:94%}
|
||||
@ -440,7 +442,15 @@ td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center}
|
||||
.scf_sms_cnt {display:block}
|
||||
|
||||
/* 주문내역 */
|
||||
#sodr_list td {text-align:center !important}
|
||||
#sodr_list td {text-align:center}
|
||||
#sodr_list .td_name {text-align:center !important}
|
||||
#orderitemlist {position:relative}
|
||||
#orderitemlist .itemlist {position:absolute;top:0;left:0}
|
||||
|
||||
#orderitemlist {position:relative}
|
||||
#orderitemlist .itemlist {z-index:2;position:absolute;top:0;left:-302px;width:958px;border:1px solid #a2a5a9;background:#f2f5f9}
|
||||
#orderitemlist td {background:#fff}
|
||||
#orderitemlist #orderitemlist_close {padding:0 20px 10px;text-align:right}
|
||||
|
||||
/* 주문내역 수정 */
|
||||
.sodr_nonpay {color:#ff6600}
|
||||
@ -644,6 +654,8 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
||||
.new_win .anchor {margin:0 auto 5px;width:93%}
|
||||
.new_win .tbl_wrap {margin:0 20px 20px;padding:0}
|
||||
|
||||
.new_win .local_sch, .new_win .local_cmd, .new_win .local_desc01, .new_win .local_desc02, .new_win .local_ov {min-width:480px}
|
||||
|
||||
/* 자바스크립트 alert 대안 */
|
||||
#validation_check {margin:100px auto;width:500px}
|
||||
#validation_check h1 {margin-bottom:20px;font-size:1.3em}
|
||||
|
||||
@ -144,7 +144,7 @@ input.btn_submit {padding:0 10px;height:24px;border:0;background:#333;color:#fff
|
||||
button.btn_submit {height:22px;font-size:1em}
|
||||
fieldset .btn_submit {height:22px;font-size:1em}
|
||||
|
||||
a.btn_cancel {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em}
|
||||
a.btn_cancel {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em;vertical-align:middle}
|
||||
a.btn_cancel:focus, a.btn_cancel:hover {text-decoration:none}
|
||||
|
||||
a.btn_frmline, button.btn_frmline {display:inline-block;padding:0 7px 0 5px;height:22px;border:0;background:#333;color:#fff;letter-spacing:-0.1em;text-decoration:none;vertical-align:top;line-height:2em} /* 우편번호검색버튼 등 */
|
||||
@ -162,8 +162,8 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.cnt_cmt {display:inline-block;margin:0 0 0 3px;font-weight:bold}
|
||||
|
||||
/* 기본테이블 */
|
||||
.tbl_wrp table {width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.tbl_wrp caption {padding:10px 0;font-weight:bold;text-align:left}
|
||||
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.tbl_wrap caption {padding:10px 0;font-weight:bold;text-align:left}
|
||||
|
||||
.tbl_head01 {margin:0 0 10px}
|
||||
.tbl_head01 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||
@ -215,7 +215,7 @@ fieldset .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7
|
||||
|
||||
/* 새창 기본 스타일 */
|
||||
.new_win {}
|
||||
.new_win .tbl_wrp {margin:0 20px}
|
||||
.new_win .tbl_wrap {margin:0 20px}
|
||||
.new_win #win_title {margin:0 0 20px;padding:20px;border-top:3px solid #4e5d60;border-bottom:1px solid #e9e9e9;background:#fff;font-size:1.2em}
|
||||
.new_win #win_title .sv {font-size:0.75em;line-height:1.2em}
|
||||
.new_win .win_ul {margin:-20px 0 20px 0;padding:0 20px;border-bottom:1px solid #455255;background:#484848;list-style:none;zoom:1}
|
||||
|
||||
@ -244,37 +244,37 @@ button.btn_frmline2 {font-size:1em;cursor:pointer}
|
||||
.btn_list input, .btn_list button {background: none repeat scroll 0 0 #617D46;border: 0 none;color: #FFFFFF;height: 28px;line-height: 2.2em;padding: 0 15px;vertical-align: middle}
|
||||
|
||||
/* 기본테이블 */
|
||||
.basic_tbl {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.basic_tbl caption {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||
.basic_tbl thead th {padding:12px 0 8px;background:#565e60;color:#fff}
|
||||
.basic_tbl thead a {color:#fff}
|
||||
.basic_tbl thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
.basic_tbl tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff}
|
||||
.basic_tbl tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
|
||||
.basic_tbl td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
|
||||
.basic_tbl a {}
|
||||
.bo_sideview td {padding:6px 4px} /* 사이드뷰 사용하는 테이블 셀 패딩값 */
|
||||
td.empty_table {padding:85px 0;text-align:center}
|
||||
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.tbl_wrap caption {padding:10px 0;font-weight:bold;text-align:left}
|
||||
|
||||
.empty_list {padding:85px 0;text-align:center}
|
||||
|
||||
/* 필수입력 */
|
||||
.required {background:url('../img/wrest.gif') #f5f6fa top right no-repeat !important}
|
||||
.tbl_head01 {margin:0 0 10px}
|
||||
.tbl_head01 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||
.tbl_head01 thead th {padding:12px 0;border-top:1px solid #d1dee2;border-bottom:1px solid #d1dee2;background:#e5ecef;color:#383838;font-size:0.95em;letter-spacing:-0.1em}
|
||||
.tbl_head01 thead a {color:#383838}
|
||||
.tbl_head01 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
.tbl_head01 tfoot th, .tbl_head01 tfoot td {padding:10px 0;border-top:1px solid #c1d1d5;border-bottom:1px solid #c1d1d5;background:#d7e0e2;text-align:center}
|
||||
.tbl_head01 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
|
||||
.tbl_head01 td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
|
||||
.tbl_head01 a {}
|
||||
.tbl_head01 .empty_table {padding:50px 0;text-align:center}
|
||||
|
||||
/* 폼 테이블 */
|
||||
.frm_tbl {margin-bottom:20px;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.frm_tbl caption {padding:10px 0;color:#4b8b99;font-weight:bold;text-align:left}
|
||||
.frm_tbl th {padding-left:10px;width:100px;border-top:1px solid #eee;border-bottom:1px solid #eee;font-weight:normal;text-align:left}
|
||||
.frm_tbl td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
||||
.frm_tbl textarea, .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f5f6fa;vertical-align:middle}
|
||||
.frm_tbl textarea {width:90%;height:150px}
|
||||
.frm_address {display:block;margin-top:5px}
|
||||
.frm_file {display:block;margin-bottom:5px}
|
||||
.frm_tbl #captcha {margin:0;padding:0;border:0;background:transparent}
|
||||
.frm_tbl #captcha input {margin-left:5px;text-align:center}
|
||||
.frm_tbl a {text-decoration:none}
|
||||
.tbl_frm01 {margin:0 0 20px}
|
||||
.tbl_frm01 table {width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.tbl_frm01 th {width:100px;padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#f7f7f7;text-align:left}
|
||||
.tbl_frm01 td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
||||
.tbl_frm01 textarea, .tbl_frm01 .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle}
|
||||
.tbl_frm01 textarea {width:98%;height:100px}
|
||||
/*
|
||||
.tbl_frm01 #captcha {margin:0;padding:0;border:0;background:transparent}
|
||||
.tbl_frm01 #captcha input {margin-left:5px;text-align:center}
|
||||
*/
|
||||
.tbl_frm01 a {text-decoration:none}
|
||||
.tbl_frm01 .frm_info {display:block;padding:0 0 5px;line-height:1.4em}
|
||||
.tbl_frm01 .frm_address {display:block;margin-top:5px}
|
||||
.tbl_frm01 .frm_file {display:block;margin-bottom:5px}
|
||||
|
||||
.frm_info {display:block;padding:0 0 5px;color:#666;line-height:1.3em}
|
||||
fieldset .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle}
|
||||
|
||||
/* 테이블 그리드 padding 0 5px 고려한 넓이 */
|
||||
.grid_1 {width:40px}
|
||||
@ -300,17 +300,17 @@ td.empty_table {padding:85px 0;text-align:center}
|
||||
.td_chk {width:30px;text-align:center}
|
||||
.td_group {width:100px;text-align:center}
|
||||
.td_board {width:120px;text-align:center}
|
||||
.td_smallstat {width:50px;text-align:center}
|
||||
.td_statsmall {width:50px;text-align:center}
|
||||
.td_num {width:50px;text-align:center}
|
||||
.td_bignum {width:100px;text-align:center}
|
||||
.td_numbig {width:100px;text-align:center}
|
||||
.td_mb_id {width:100px;text-align:center}
|
||||
.td_nick {width:100px;text-align:center}
|
||||
.td_name {width:100px;text-align:left}
|
||||
.td_smallname {width:50px;text-align:left}
|
||||
.td_namesmall {width:50px;text-align:left}
|
||||
.td_date {width:60px;text-align:center}
|
||||
.td_datetime {width:110px;text-align:center}
|
||||
.td_smallmng {width:50px;text-align:center}
|
||||
.td_mng {width:80px;text-align:center}
|
||||
.td_mngsmall {width:50px;text-align:center}
|
||||
.td_default {width:60px;text-align:center}
|
||||
|
||||
/* 새창 기본 스타일 */
|
||||
@ -823,5 +823,5 @@ td.empty_table {padding:85px 0;text-align:center}
|
||||
.sev_admin {text-align:right}
|
||||
|
||||
/* 쿠폰 */
|
||||
#coupon .td_bignum {width:150px}
|
||||
#coupon .td_numbig {width:150px}
|
||||
#coupon .td_datetime {width:180px}
|
||||
@ -10,8 +10,8 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
|
||||
header ul, nav ul, footer ul {margin:0;padding:0;list-style:none}
|
||||
legend {position:absolute;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
|
||||
label, input, select, img {vertical-align:middle}
|
||||
input,button {margin:0;padding:0}
|
||||
input[type=text], input[type=password], input[type=submit], input[type=image], button {border-radius:0;font-size:1em}
|
||||
input,button {margin:0;padding:0;font-size:1em}
|
||||
input[type=text], input[type=password], input[type=submit], input[type=image], button {border-radius:0;font-size:1em;-webkit-appearance:none}
|
||||
textarea, select {font-size:1em}
|
||||
textarea {border-radius:0;-webkit-appearance:none}
|
||||
p {margin:0;padding:1em 0;line-height:1.7em;word-break:break-all}
|
||||
@ -32,10 +32,10 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
|
||||
/* 캡챠 자동등록(입력)방지 기본 */
|
||||
#captcha {display:inline-block;position:relative}
|
||||
#captcha legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
|
||||
#captcha audio {display:block;margin:0 0 5px;width:263px}
|
||||
#captcha #captcha_img {width:100px;height:41px;border:1px solid #e9e9e9}
|
||||
#captcha #captcha_reload {margin:0;padding:0;width:70px;height:43px;border:0;background:#e4eaec;vertical-align:middle;overflow:hidden;cursor:pointer}
|
||||
#captcha #captcha_key {margin:0 0 0 4px;padding:0 5px;width:70px;height:41px;border:1px solid #b8c9c2;background:#f7f7f7;font-size:1.333em;font-weight:bold;text-align:center;line-height:2.8em}
|
||||
#captcha audio {display:block;margin:0 0 5px;width:187px}
|
||||
#captcha #captcha_img {width:60px;height:30px;border:1px solid #e9e9e9}
|
||||
#captcha #captcha_reload {margin:0;padding:0 5px;height:32px;border:0;background:#e4eaec;vertical-align:middle;overflow:hidden;cursor:pointer}
|
||||
#captcha #captcha_key {margin:0 0 0 4px;padding:0 5px;width:50px;height:30px;border:1px solid #b8c9c2;background:#f7f7f7;font-size:1.333em;font-weight:bold;text-align:center;line-height:2.8em}
|
||||
#captcha #captcha_info {display:block;margin:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}
|
||||
|
||||
/* 상단 레이아웃 */
|
||||
@ -113,7 +113,7 @@ a.btn02:focus, .btn02:hover {text-decoration:none}
|
||||
input.btn_submit {padding:0 10px;height:2.6em;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;-webkit-appearance:none}
|
||||
fieldset .btn_submit {padding:0 10px;height:1.9em;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;-webkit-appearance:none}
|
||||
|
||||
a.btn_cancel {display:inline-block;padding:0 10px;height:2.5em;border:1px solid #ccc;background:#fafafa;color:#000;font-size:1em;text-decoration:none;line-height:2.5em}
|
||||
a.btn_cancel {display:inline-block;padding:0 10px;height:2.4em;border:1px solid #ccc;background:#fafafa;color:#000;font-size:1em;text-decoration:none;line-height:2.5em;vertical-align:top}
|
||||
|
||||
a.btn_frmline, button.btn_frmline {display:inline-block;padding:0 5px;height:1.9em;border:0;background:#333;color:#fff;letter-spacing:-0.1em;text-decoration:none;vertical-align:top;line-height:1.9em} /* 우편번호검색버튼 등 */
|
||||
|
||||
@ -129,10 +129,11 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.cnt_cmt {display:inline-block;margin:0 0 0 3px;font-weight:bold}
|
||||
|
||||
/* 기본테이블 */
|
||||
.tbl_wrp table {width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.tbl_wrp caption {padding:10px 0;color:#4b8b99;font-weight:bold;text-align:left}
|
||||
.tbl_wrap {margin:0 10px 10px}
|
||||
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.tbl_wrap caption {padding:10px 0;color:#4b8b99;font-weight:bold;text-align:left}
|
||||
|
||||
.tbl_head01 {margin:0 10px 10px}
|
||||
.tbl_head01 {}
|
||||
.tbl_head01 caption {padding:0 0 10px;color:#777;text-align:left}
|
||||
.tbl_head01 thead th {padding:12px 0;border-top:1px solid #d1dee2;border-bottom:1px solid #d1dee2;background:#e5ecef;color:#383838;font-size:0.95em;letter-spacing:-0.1em}
|
||||
.tbl_head01 thead a {color:#383838}
|
||||
@ -144,18 +145,14 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.tbl_head01 .empty_table {padding:10px 0;text-align:center}
|
||||
|
||||
/* 폼 테이블 */
|
||||
.tbl_frm01 {margin:0 10px}
|
||||
.tbl_frm01 {}
|
||||
.tbl_frm01 th {padding:10px 0;width:90px;border:1px solid #e9e9e9;border-left:0;text-align:left}
|
||||
.tbl_frm01 td {padding:10px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
||||
.tbl_frm01 textarea, .frm_input {border:1px solid #b8c9c2;background:#f7f7f7;vertical-align:middle;line-height:1.8em;-webkit-appearance:none}
|
||||
.tbl_frm01 textarea {width:100%;height:150px}
|
||||
/*
|
||||
.tbl_frm01 #captcha {margin:0;padding:0;border:0;background:transparent}
|
||||
.tbl_frm01 #captcha input {margin-left:0.3em;text-align:center}
|
||||
*/
|
||||
.tbl_frm01 textarea {width:100%;height:100px}
|
||||
.tbl_frm01 a {text-decoration:none}
|
||||
.tbl_frm01 .frm_address {display:block;margin-top:5px}
|
||||
.tbl_frm01 .frm_file {display:block;margin-bottom:5px}
|
||||
.tbl_frm01 .frm_file {display:block;margin-bottom:5px;width:100%}
|
||||
.tbl_frm01 .frm_info {display:block;padding:5px 0 0;color:#666;line-height:1.3em}
|
||||
|
||||
/* 필수입력 */
|
||||
@ -177,7 +174,7 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
/* 새창 기본 스타일 */
|
||||
.new_win {}
|
||||
.new_win #win_title {margin:0 0 20px;padding:20px;border-top:3px solid #4e5d60;border-bottom:1px solid #e9e9e9;font-size:1.2em}
|
||||
.new_win .tbl_wrp {margin:0 20px}
|
||||
.new_win .tbl_wrap {margin:0 20px}
|
||||
.new_win .win_ul {margin:-20px 0 20px 0;padding:0 20px;border-bottom:1px solid #455255;background:#484848;list-style:none}
|
||||
.new_win .win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.new_win .win_ul li {float:left;margin-left:-1px}
|
||||
|
||||
@ -3,16 +3,18 @@
|
||||
|
||||
/* 초기화 */
|
||||
html {overflow-y:scroll}
|
||||
body {margin:0;padding:0;background:#fff;color:#000;font-size:0.75em;font-family:"dotum"}
|
||||
body {margin:0;padding:0;font-size:0.75em}
|
||||
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0}
|
||||
h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:"dotum"}
|
||||
h1, h2, h3, h4, h5, h6 {font-size:1em}
|
||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
|
||||
header ul, nav ul, footer ul {margin:0;padding:0;list-style:none}
|
||||
legend {position:absolute;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
|
||||
label, input, select, img {vertical-align:middle}
|
||||
input {margin:0;padding:0;border-radius:0;font-family:"dotum"}
|
||||
button {border-radius:0;font-size:1em;font-family:"dotum"}
|
||||
input[type=text], input[type=password], input[type=submit], input[type=image], button {border-radius:0 !important;font-size:1em} /* 모바일에서만 사용 */
|
||||
p {margin:0;padding:10px 0;line-height:1.7em;word-break:break-all}
|
||||
input,button {margin:0;padding:0;font-size:1em}
|
||||
input[type=text], input[type=password], input[type=submit], input[type=image], button {border-radius:0;font-size:1em;-webkit-appearance:none}
|
||||
textarea, select {font-size:1em}
|
||||
textarea {border-radius:0;-webkit-appearance:none}
|
||||
p {margin:0;padding:1em 0;line-height:1.7em;word-break:break-all}
|
||||
hr {display:none}
|
||||
pre {overflow-x:scroll;font-size:1.1em}
|
||||
a:link, a:visited {color:#000;text-decoration:none}
|
||||
@ -177,8 +179,8 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
|
||||
|
||||
#sit_ov_btn {margin:0;padding:0;text-align:center;list-style:none}
|
||||
#sit_ov_btn li {display:inline-block;margin:0 0 0 1px}
|
||||
#sit_ov_btn a {display:inline-block;padding:10px 0;width:80px;font-size:0.95em;text-align:center;text-decoration:none;letter-spacing:-0.1em}
|
||||
#sit_ov_btn input {margin:0;padding:10px 0;width:80px;border:0;font-size:0.95em;text-align:center;text-decoration:none;letter-spacing:-0.1em}
|
||||
#sit_ov_btn a {display:inline-block;padding:10px;vertical-align:middle;text-decoration:none;letter-spacing:-0.1em}
|
||||
#sit_ov_btn input {margin:0;padding:10px;border:0;letter-spacing:-0.1em}
|
||||
#sit_btn_buy {background:#ff5b89;color:#fff}
|
||||
#sit_btn_cart, #sit_btn_wish {background:#555;color:#fff}
|
||||
#sit_btn_rec {background:#888;color:#fff}
|
||||
@ -341,10 +343,10 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
|
||||
|
||||
/* 장바구니 */
|
||||
#sod_bsk {}
|
||||
.sod_bsk_img {width:90px;text-align:center}
|
||||
.sod_bsk_itopt {margin:5px 0;border:1px solid #e9e9e9;border-bottom:0;background:#f5f6fa}
|
||||
.sod_bsk_img {width:100px;text-align:center}
|
||||
.sod_bsk_itopt {margin:5px 0;border-top:1px dashed #e9e9e9;background:#f5f6fa}
|
||||
.sod_bsk_itopt ul {margin:0;padding:0;list-style:none}
|
||||
.sod_bsk_itopt li {padding:5px;border-bottom:1px solid #e9e9e9}
|
||||
.sod_bsk_itopt li {margin:0 0 1px;padding:5px}
|
||||
.sod_option_btn .mod_options {margin:0 0 10px;padding:5px 0;width:100%;border:0;background:#333;color:#fff}
|
||||
|
||||
#sod_bsk_list {position:relative}
|
||||
@ -356,7 +358,7 @@ html.no-overflowscrolling #mod_option_frm {height:auto;max-height:10000px !impor
|
||||
#sod_bsk_tot dt, #sod_bsk_tot dd {float:left;padding:10px 0;border-bottom:1px solid #e9e9e9}
|
||||
#sod_bsk_tot dt {padding-left:2%;width:48%;font-weight:bold}
|
||||
#sod_bsk_tot dd {margin:0;padding-right:2%;width:47%;text-align:right}
|
||||
.sod_bsk_cnt {background:#333;color:#fff}
|
||||
.sod_bsk_cnt {background:#ff3061;color:#fff}
|
||||
.sod_bsk_point {border-bottom:0 !important}
|
||||
|
||||
#sod_bsk_act {margin:0 0 20px;text-align:center}
|
||||
@ -364,7 +366,7 @@ html.no-overflowscrolling #mod_option_frm {height:auto;max-height:10000px !impor
|
||||
|
||||
/* 위시리스트 */
|
||||
#sod_ws {}
|
||||
#sod_ws .basic_tbl a {padding-right:0;padding-left:0}
|
||||
#sod_ws .tbl_head01 a {padding-right:0;padding-left:0}
|
||||
.sod_ws_img {width:90px;text-align:center}
|
||||
#sod_ws_act {text-align:center}
|
||||
|
||||
@ -378,26 +380,27 @@ html.no-overflowscrolling #it_coupon_frm {height:auto;max-height:10000px !import
|
||||
|
||||
#sod_frm_orderer {margin:15px 0 30px}
|
||||
|
||||
#sod_frm_addr div {position:relative} /* 갤탭 position */
|
||||
#sod_frm_addr div div {position:absolute;top:-25px;left:185px;letter-spacing:-0.1em}
|
||||
#sod_frm_addr div {display:inline-block}
|
||||
|
||||
#sod_frm_same {margin:0 0 10px}
|
||||
|
||||
#sod_frm #od_memo {height:70px}
|
||||
|
||||
#sod_frm_pay {position:relative}
|
||||
#sod_frm_pay .basic_tbl caption {font-size:0;line-height:0;overflow:hidden}
|
||||
#sod_frm_pay .basic_tbl th {width:auto !important;font-weight:bold;text-align:center !important}
|
||||
#sod_frm_pay .basic_tbl td {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 .tbl_head01 caption {font-size:0;line-height:0;overflow:hidden}
|
||||
#sod_frm_pay .tbl_head01 th {width:auto !important;font-weight:bold;text-align:center !important}
|
||||
#sod_frm_pay .tbl_head01 td {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 #sc_coupon_frm, #sod_frm_pay #od_coupon_frm {z-index:10000;position:absolute;top:0;left:0;padding:20px;width:320px;height:auto !important;height:480px;max-height:480px;border:1px solid #000;background:#f5f6fa;overflow-y:scroll}
|
||||
html.no-overflowscrolling #sc_coupon_frm, html.no-overflowscrolling #od_coupon_frm {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */
|
||||
|
||||
#sod_frm_paysel {margin:0 0 15px;padding:10px;border:1px solid #e9e9e9;background:#f5f6fa;text-align:center}
|
||||
#sod_frm_paysel legend {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#settle_bank {margin:10px 0 0}
|
||||
#sod_frm_paysel .frm_input {background:#fff}
|
||||
#sod_frm_paysel div {margin:5px 0 0}
|
||||
|
||||
#sod_frm_escrow {margin:30px 0 0}
|
||||
|
||||
#od_addr1, #od_addr2, #od_email, #od_b_addr1, #od_b_addr2 {width:100%}
|
||||
#sod_frm #od_memo {height:70px}
|
||||
|
||||
/* 주문내역 */
|
||||
#sod_v {}
|
||||
#sod_v .td_stat {width:100px}
|
||||
@ -443,7 +446,7 @@ html.no-overflowscrolling #sc_coupon_frm, html.no-overflowscrolling #od_coupon_f
|
||||
#sod_fin_view {border:1px solid #e9e9e9}
|
||||
#sod_fin_view h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sod_fin_view h3 {margin:0 0 10px}
|
||||
#sod_fin_view .basic_tbl th {padding:0 10px;border-top:1px solid #eee;border-bottom:1px solid #eee;background:#f5f6fa;text-align:left}
|
||||
#sod_fin_view .tbl_head01 th {padding:0 10px;border-top:1px solid #eee;border-bottom:1px solid #eee;background:#f5f6fa;text-align:left}
|
||||
|
||||
#sod_fin_pay {padding:10px;border-bottom:1px solid #e9e9e9}
|
||||
|
||||
@ -471,7 +474,7 @@ html.no-overflowscrolling #sc_coupon_frm, html.no-overflowscrolling #od_coupon_f
|
||||
#scash {}
|
||||
#scash section {padding:10px 0}
|
||||
#scash h2 {margin:0 0 10px;text-align:center}
|
||||
#scash .basic_tbl th {padding:0 10px;border-top:1px solid #eee;border-bottom:1px solid #eee;background:#f5f6fa;text-align:left}
|
||||
#scash .tbl_head01 th {padding:0 10px;border-top:1px solid #eee;border-bottom:1px solid #eee;background:#f5f6fa;text-align:left}
|
||||
#scash_apply {padding:10px 0 15px;text-align:center}
|
||||
#scash_apply button {padding:10px;border:0;background:#565e60;color:#fff}
|
||||
#scash_copy {text-align:center}
|
||||
@ -541,35 +544,46 @@ html.no-overflowscrolling #sc_coupon_frm, html.no-overflowscrolling #od_coupon_f
|
||||
.btn_admin:focus, .btn_admin:hover {text-decoration:none !important}
|
||||
|
||||
/* 기본테이블 */
|
||||
.basic_tbl {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.basic_tbl caption {padding:0 0 10px;color:#777;text-align:left}
|
||||
.basic_tbl thead th {padding:5px 0;background:#565e60;color:#fff}
|
||||
.basic_tbl thead a {color:#fff}
|
||||
.basic_tbl thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
.basic_tbl tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff}
|
||||
.basic_tbl tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
|
||||
.basic_tbl td {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
|
||||
.basic_tbl a {display:block;padding:5px;color:#000;text-decoration:none}
|
||||
.bo_sideview td {} /* 사이드뷰 사용하는 테이블 셀 패딩값 */
|
||||
td.empty_table {padding:30px 0;text-align:center}
|
||||
.tbl_wrap {margin:0 0 10px}
|
||||
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.tbl_wrap caption {padding:10px 0;color:#4b8b99;font-weight:bold;text-align:left}
|
||||
|
||||
/* 필수입력 */
|
||||
.required {background:url('../img/wrest.gif') #f7f7f7 top right no-repeat !important}
|
||||
.tbl_head01 {}
|
||||
.tbl_head01 caption {padding:0 0 10px;color:#777;text-align:left}
|
||||
.tbl_head01 thead th {padding:12px 0;border-top:1px solid #d1dee2;border-bottom:1px solid #d1dee2;background:#e5ecef;color:#383838;font-size:0.95em;letter-spacing:-0.1em}
|
||||
.tbl_head01 thead a {color:#383838}
|
||||
.tbl_head01 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
.tbl_head01 tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff}
|
||||
.tbl_head01 tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
|
||||
.tbl_head01 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
|
||||
.tbl_head01 td {padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
|
||||
.tbl_head01 .empty_table {padding:10px 0;text-align:center}
|
||||
|
||||
/* thead 두 줄 테이블 */
|
||||
.tbl_head02 {}
|
||||
.tbl_head02 table {clear:both;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.tbl_head02 thead th {padding:5px 0;border:1px solid #d1dee2;background:#e5ecef;color:#383838;font-size:0.95em;letter-spacing:-0.1em}
|
||||
.tbl_head02 thead input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
.tbl_head02 thead a {color:#383838;text-decoration:underline}
|
||||
.tbl_head01 tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff}
|
||||
.tbl_head01 tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
|
||||
.tbl_head02 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
|
||||
.tbl_head02 tbody td {padding:5px 3px;line-height:1.4em;word-break:break-all}
|
||||
.tbl_head02 .empty_table {padding:10px 0;text-align:center}
|
||||
|
||||
/* 폼 테이블 */
|
||||
.frm_tbl {margin-bottom:15px;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.frm_tbl caption {padding:10px;color:#4b8b99;font-weight:bold;text-align:left}
|
||||
.frm_tbl th {padding-left:10px;width:110px;border-top:1px solid #eee;border-bottom:1px solid #eee;font-weight:normal;text-align:left}
|
||||
.frm_tbl td {padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
||||
.frm_tbl textarea, .frm_input {border:1px solid #b8c9c2;background:#f7f7f7;vertical-align:middle;line-height:1.8em;-webkit-appearance:none}
|
||||
.frm_tbl textarea {width:90%;height:100px}
|
||||
.frm_address {display:block;margin-top:5px}
|
||||
.frm_file {display:block;margin-bottom:5px}
|
||||
.frm_tbl #captcha {margin:0;padding:0;border:0;background:transparent}
|
||||
.frm_tbl #captcha input {margin-left:5px;text-align:center}
|
||||
.frm_tbl a {text-decoration:none}
|
||||
.tbl_frm01 {}
|
||||
.tbl_frm01 th {padding:10px 0;width:90px;border:1px solid #e9e9e9;border-left:0;text-align:left}
|
||||
.tbl_frm01 td {padding:10px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
||||
.tbl_frm01 textarea, .frm_input {border:1px solid #b8c9c2;background:#f7f7f7;vertical-align:middle;line-height:1.8em;-webkit-appearance:none}
|
||||
.tbl_frm01 textarea {width:100%;height:100px}
|
||||
.tbl_frm01 a {text-decoration:none}
|
||||
.tbl_frm01 .frm_address {display:block;margin-top:5px}
|
||||
.tbl_frm01 .frm_file {display:block;margin-bottom:5px;width:100%}
|
||||
.tbl_frm01 .frm_info {display:block;padding:5px 0 0;color:#666;line-height:1.3em}
|
||||
|
||||
.frm_info {display:block;padding:5px 0 0;color:#666;line-height:1.3em}
|
||||
/* 필수입력 */
|
||||
.required, textarea.required {background:url('../img/wrest.gif') #f7f7f7 top right no-repeat !important}
|
||||
|
||||
/* 테이블 그리드 padding 0 5px 고려한 넓이 */
|
||||
.grid_1 {width:40px}
|
||||
@ -595,16 +609,16 @@ td.empty_table {padding:30px 0;text-align:center}
|
||||
.td_chk {width:50px;text-align:center}
|
||||
.td_group {width:100px;text-align:center}
|
||||
.td_board {width:120px;text-align:center}
|
||||
.td_smallstat {width:50px;text-align:center}
|
||||
.td_statsmall {width:50px;text-align:center}
|
||||
.td_num {width:50px;text-align:center}
|
||||
.td_bignum {width:120px;text-align:center}
|
||||
.td_numbig {width:120px;text-align:center}
|
||||
.td_mb_id {width:100px;text-align:center}
|
||||
.td_nick {width:100px;text-align:center}
|
||||
.td_name {width:100px;text-align:left}
|
||||
.td_smallname {width:100px;text-align:left}
|
||||
.td_namesmall {width:100px;text-align:left}
|
||||
.td_date {width:50px;text-align:center}
|
||||
.td_datetime {width:170px;text-align:center}
|
||||
.td_smallmng {width:50px;text-align:center}
|
||||
.td_mngsmall {width:50px;text-align:center}
|
||||
.td_mng {width:80px;text-align:center}
|
||||
.td_stat {text-align:center}
|
||||
|
||||
|
||||
@ -637,4 +637,12 @@ if(!sql_query(" DESCRIBE `{$g5['g5_shop_order_delete_table']}` ", false)) {
|
||||
PRIMARY KEY (`de_id`)
|
||||
)", true);
|
||||
}
|
||||
|
||||
// 장바구니 테이블에 입금 상태 추가
|
||||
$sql = " SHOW COLUMNS from {$g5['g5_shop_cart_table']} LIKE 'ct_status' ";
|
||||
$row= sql_fetch($sql);
|
||||
if(stripos($row['Type'], 'enum') !== false) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_cart_table']}`
|
||||
CHANGE `ct_status` `ct_status` varchar(255) NOT NULL DEFAULT '' ", true);
|
||||
}
|
||||
?>
|
||||
|
||||
@ -26,7 +26,6 @@ $g5_install = $_POST['g5_install'];
|
||||
$g5_shop_prefix = $_POST['g5_shop_prefix'];
|
||||
$g5_shop_install= $_POST['g5_shop_install'];
|
||||
|
||||
@mysql_query('set names utf8');
|
||||
$dblink = @mysql_connect($mysql_host, $mysql_user, $mysql_pass);
|
||||
if (!$dblink) {
|
||||
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8">'.PHP_EOL;
|
||||
@ -35,7 +34,6 @@ if (!$dblink) {
|
||||
exit;
|
||||
}
|
||||
|
||||
@mysql_query('set names utf8');
|
||||
$select_db = @mysql_select_db($mysql_db, $dblink);
|
||||
if (!$select_db) {
|
||||
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8">'.PHP_EOL;
|
||||
@ -43,6 +41,13 @@ if (!$select_db) {
|
||||
echo '<div><a href="./install_config.php">뒤로가기</a></div>'.PHP_EOL;
|
||||
exit;
|
||||
}
|
||||
|
||||
$mysql_set_mode = 'false';
|
||||
@mysql_query('set names utf8');
|
||||
if(version_compare(mysql_get_server_info(), '5.6.6', '>=') == 1) {
|
||||
@mysql_query("SET SESSION sql_mode = ''");
|
||||
$mysql_set_mode = 'true';
|
||||
}
|
||||
?>
|
||||
|
||||
<h2><?php echo G5_VERSION ?> 설치가 시작되었습니다.</h2>
|
||||
@ -441,7 +446,8 @@ fwrite($f, "if (!defined('_GNUBOARD_')) exit;\n");
|
||||
fwrite($f, "define('G5_MYSQL_HOST', '{$mysql_host}');\n");
|
||||
fwrite($f, "define('G5_MYSQL_USER', '{$mysql_user}');\n");
|
||||
fwrite($f, "define('G5_MYSQL_PASSWORD', '{$mysql_pass}');\n");
|
||||
fwrite($f, "define('G5_MYSQL_DB', '{$mysql_db}');\n\n");
|
||||
fwrite($f, "define('G5_MYSQL_DB', '{$mysql_db}');\n");
|
||||
fwrite($f, "define('G5_MYSQL_SET_MODE', {$mysql_set_mode});\n\n");
|
||||
fwrite($f, "define('G5_TABLE_PREFIX', '{$table_prefix}');\n\n");
|
||||
fwrite($f, "\$g5['write_prefix'] = G5_TABLE_PREFIX.'write_'; // 게시판 테이블명 접두사\n\n");
|
||||
fwrite($f, "\$g5['auth_table'] = G5_TABLE_PREFIX.'auth'; // 관리권한 설정 테이블\n");
|
||||
|
||||
@ -10,104 +10,106 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
<div id="sod_bsk">
|
||||
|
||||
<form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">
|
||||
<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"><input type="checkbox" name="ct_all" value="1" checked="checked"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_point = 0;
|
||||
$tot_sell_price = 0;
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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"><input type="checkbox" name="ct_all" value="1" checked="checked"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_point = 0;
|
||||
$tot_sell_price = 0;
|
||||
|
||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
a.ct_send_cost,
|
||||
b.ca_id
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
$sql .= " order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$it_send_cost = 0;
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
if ($i==0) { // 계속쇼핑
|
||||
$continue_ca_id = $row['ca_id'];
|
||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
a.ct_send_cost,
|
||||
b.ca_id
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
$sql .= " order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$a1 = '<a href="./item.php?it_id='.$row['it_id'].'"><b>';
|
||||
$a2 = '</b></a>';
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
$it_send_cost = 0;
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
$mod_options = '<div class="sod_option_btn"><button type="button" class="mod_options">선택사항수정</button></div>';
|
||||
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
if ($i==0) { // 계속쇼핑
|
||||
$continue_ca_id = $row['ca_id'];
|
||||
}
|
||||
|
||||
$a1 = '<a href="./item.php?it_id='.$row['it_id'].'"><b>';
|
||||
$a2 = '</b></a>';
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
$mod_options = '<div class="sod_option_btn"><button type="button" class="mod_options">선택사항수정</button></div>';
|
||||
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
|
||||
}
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="sod_bsk_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</td>
|
||||
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($sell_price); ?></td>
|
||||
<td class="td_num"><?php echo number_format($sum['point']); ?></td>
|
||||
<td class="td_mngsmall"><input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" checked="checked"></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$tot_sell_price += $sell_price;
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($s_cart_id, 0);
|
||||
}
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="sod_bsk_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</td>
|
||||
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($sell_price); ?></td>
|
||||
<td class="td_num"><?php echo number_format($sum['point']); ?></td>
|
||||
<td class="td_smallmng"><input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" checked="checked"></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$tot_sell_price += $sell_price;
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($s_cart_id, 0);
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$tot_price = $tot_sell_price + $send_cost; // 총계 = 주문상품금액합계 + 배송비
|
||||
|
||||
@ -133,9 +133,6 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
$ca_id = $it['ca_id'];
|
||||
include G5_MSHOP_SKIN_PATH.'/navigation.skin.php';
|
||||
|
||||
if ($is_admin)
|
||||
echo '<div class="sit_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/itemform.php?w=u&it_id='.$it_id.'" class="btn_admin">상품 관리</a></div>';
|
||||
|
||||
// 상단 HTML
|
||||
echo '<div id="sit_hhtml">'.stripslashes($it['it_mobile_head_html']).'</div>';
|
||||
?>
|
||||
|
||||
@ -24,26 +24,29 @@ include_once(G5_PATH.'/head.sub.php');
|
||||
<form name="fitemrecommend" method="post" action="./itemrecommendmail.php" autocomplete="off" onsubmit="return fitemrecommend_check(this);">
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="to_email">추천받는 분 E-mail</label></th>
|
||||
<td><input type="text" name="to_email" id="to_email" required class="frm_input" size="51"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="subject">제목</label></th>
|
||||
<td><input type="text" name="subject" id="subject" required class="frm_input" size="51"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="content">내용</label></th>
|
||||
<td><textarea name="content" id="content" required></textarea></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="to_email">추천받는 분 E-mail</label></th>
|
||||
<td><input type="text" name="to_email" id="to_email" required class="frm_input"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="subject">제목</label></th>
|
||||
<td><input type="text" name="subject" id="subject" required class="frm_input"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="content">내용</label></th>
|
||||
<td><textarea name="content" id="content" required></textarea></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" id="btn_submit" value="보내기" class="btn_submit">
|
||||
|
||||
@ -59,43 +59,45 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
<section id="smb_my_wish">
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/wishlist.php">최근 위시리스트</a></h2>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">보관일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_wish_table']} a,
|
||||
{$g5['g5_shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc
|
||||
limit 0, 3 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_image($row['it_id'], 70, 70, true);
|
||||
?>
|
||||
<div class="tbl_wrap tbl_head01">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">보관일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_wish_table']} a,
|
||||
{$g5['g5_shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc
|
||||
limit 0, 3 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_image($row['it_id'], 70, 70, true);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="smb_my_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 class="td_datetime"><?php echo $row['wi_time']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="smb_my_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 class="td_datetime"><?php echo $row['wi_time']; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="3" class="empty_table">보관 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="3" class="empty_table">보관 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
@ -12,47 +12,50 @@ $order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
|
||||
|
||||
<h1 id="new_win_title">배송지 목록</h1>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
<label for="chk_all" class="sound_only">전체선택</label><input type="checkbox" name="chk_all" id="chk_all">
|
||||
</th>
|
||||
<th scope="col">배송지명</th>
|
||||
<th scope="col">기본<br>배송지</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">전화번호</th>
|
||||
<th scope="col">주소</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sep = chr(30);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$addr = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_chk"><label for="chk_<?php echo $i;?>" class="sound_only">배송지선택</label>
|
||||
<input type="hidden" name="ad_id[<?php echo $i; ?>]" value="<?php echo $row['ad_id'];?>">
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i;?>" id="chk_<?php echo $i;?>">
|
||||
</td>
|
||||
<td class="td_name"><input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject" class="frm_input" size="12" maxlength="20" value="<?php echo $row['ad_subject']; ?>"></td>
|
||||
<td class="td_default"><label for="ad_default<?php echo $i;?>" class="sound_only">기본배송지</label><input type="radio" name="ad_default" value="<?php echo $row['ad_id'];?>" id="ad_default<?php echo $i;?>" <?php if($row['ad_default']) echo 'checked="checked"';?>></td>
|
||||
<td class="td_smallname"><?php echo $row['ad_name']; ?></td>
|
||||
<td class="td_bignum"><?php echo $row['ad_tel']; ?><br><?php echo $row['ad_hp']; ?></td>
|
||||
<td><?php echo sprintf('%s %s', $row['ad_addr1'], $row['ad_addr2']); ?></td>
|
||||
<td class="td_mng">
|
||||
<input type="hidden" value="<?php echo $addr; ?>">
|
||||
<button type="button" class="sel_address btn_frmline">선택</button>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?w=d&ad_id=<?php echo $row['ad_id']; ?>" class="del_address">삭제</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_wrap tbl_head01">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
<label for="chk_all" class="sound_only">전체선택</label><input type="checkbox" name="chk_all" id="chk_all">
|
||||
</th>
|
||||
<th scope="col">배송지명</th>
|
||||
<th scope="col">기본<br>배송지</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">전화번호</th>
|
||||
<th scope="col">주소</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sep = chr(30);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$addr = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_chk"><label for="chk_<?php echo $i;?>" class="sound_only">배송지선택</label>
|
||||
<input type="hidden" name="ad_id[<?php echo $i; ?>]" value="<?php echo $row['ad_id'];?>">
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i;?>" id="chk_<?php echo $i;?>">
|
||||
</td>
|
||||
<td class="td_name"><input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject" class="frm_input" size="10" maxlength="20" value="<?php echo $row['ad_subject']; ?>"></td>
|
||||
<td class="td_default"><label for="ad_default<?php echo $i;?>" class="sound_only">기본배송지</label><input type="radio" name="ad_default" value="<?php echo $row['ad_id'];?>" id="ad_default<?php echo $i;?>" <?php if($row['ad_default']) echo 'checked="checked"';?>></td>
|
||||
<td class="td_namesmall"><?php echo $row['ad_name']; ?></td>
|
||||
<td class="td_numbig"><?php echo $row['ad_tel']; ?><br><?php echo $row['ad_hp']; ?></td>
|
||||
<td><?php echo sprintf('%s %s', $row['ad_addr1'], $row['ad_addr2']); ?></td>
|
||||
<td class="td_mng">
|
||||
<input type="hidden" value="<?php echo $addr; ?>">
|
||||
<button type="button" class="sel_address btn_frmline">선택</button>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?w=d&ad_id=<?php echo $row['ad_id']; ?>" class="del_address">삭제</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_list">
|
||||
<input type="submit" name="act_button" value="선택수정" id="btn_submit">
|
||||
</div>
|
||||
|
||||
@ -36,185 +36,192 @@ $tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정
|
||||
ob_start();
|
||||
?>
|
||||
<p>주문하실 상품을 확인하세요.</p>
|
||||
<table id="sod_list" 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
|
||||
$tot_point = 0;
|
||||
$tot_sell_price = 0;
|
||||
|
||||
$goods = $goods_it_id = "";
|
||||
$goods_count = -1;
|
||||
<div class="tbl_wrap tbl_head01">
|
||||
<table id="sod_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" rowspan="2">상품이미지</th>
|
||||
<th scope="col" colspan="5" id="th_it">상품명</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col" id="th_itall">총수량</th>
|
||||
<th scope="col" id="th_itprice">판매가</th>
|
||||
<th scope="col" id="th_cp">쿠폰</th>
|
||||
<th scope="col" id="th_cnt">소계</th>
|
||||
<th scope="col" id="th_pt">포인트</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_point = 0;
|
||||
$tot_sell_price = 0;
|
||||
|
||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
a.ct_send_cost,
|
||||
b.ca_id,
|
||||
b.ca_id2,
|
||||
b.ca_id3,
|
||||
b.it_notax
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id'
|
||||
and a.ct_select = '1' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
$sql .= " order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
$goods = $goods_it_id = "";
|
||||
$goods_count = -1;
|
||||
|
||||
$good_info = '';
|
||||
$it_send_cost = 0;
|
||||
$it_cp_count = 0;
|
||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
a.ct_send_cost,
|
||||
b.ca_id,
|
||||
b.ca_id2,
|
||||
b.ca_id3,
|
||||
b.it_notax
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id'
|
||||
and a.ct_select = '1' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
$sql .= " order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$comm_tax_mny = 0; // 과세금액
|
||||
$comm_vat_mny = 0; // 부가세
|
||||
$comm_free_mny = 0; // 면세금액
|
||||
$tot_tax_mny = 0;
|
||||
$good_info = '';
|
||||
$it_send_cost = 0;
|
||||
$it_cp_count = 0;
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
$comm_tax_mny = 0; // 과세금액
|
||||
$comm_vat_mny = 0; // 부가세
|
||||
$comm_free_mny = 0; // 면세금액
|
||||
$tot_tax_mny = 0;
|
||||
|
||||
if (!$goods)
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
//$goods = addslashes($row[it_name]);
|
||||
//$goods = get_text($row[it_name]);
|
||||
$goods = preg_replace("/\'|\"|\||\,|\&|\;/", "", $row['it_name']);
|
||||
$goods_it_id = $row['it_id'];
|
||||
}
|
||||
$goods_count++;
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
// 에스크로 상품정보
|
||||
if($default['de_escrow_use']) {
|
||||
if ($i>0)
|
||||
$good_info .= chr(30);
|
||||
$good_info .= "seq=".($i+1).chr(31);
|
||||
$good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31);
|
||||
$good_info .= "good_name=".addslashes($row['it_name']).chr(31);
|
||||
$good_info .= "good_cntx=".$row['ct_qty'].chr(31);
|
||||
$good_info .= "good_amtx=".$row['ct_price'].chr(31);
|
||||
if (!$goods)
|
||||
{
|
||||
//$goods = addslashes($row[it_name]);
|
||||
//$goods = get_text($row[it_name]);
|
||||
$goods = preg_replace("/\'|\"|\||\,|\&|\;/", "", $row['it_name']);
|
||||
$goods_it_id = $row['it_id'];
|
||||
}
|
||||
$goods_count++;
|
||||
|
||||
// 에스크로 상품정보
|
||||
if($default['de_escrow_use']) {
|
||||
if ($i>0)
|
||||
$good_info .= chr(30);
|
||||
$good_info .= "seq=".($i+1).chr(31);
|
||||
$good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31);
|
||||
$good_info .= "good_name=".addslashes($row['it_name']).chr(31);
|
||||
$good_info .= "good_cntx=".$row['ct_qty'].chr(31);
|
||||
$good_info .= "good_amtx=".$row['ct_price'].chr(31);
|
||||
}
|
||||
|
||||
$a1 = '<b>';
|
||||
$a2 = '</b>';
|
||||
$image = get_it_image($row['it_id'], 50, 50);
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
|
||||
}
|
||||
|
||||
// 복합과세금액
|
||||
if($default['de_tax_flag_use']) {
|
||||
if($row['it_notax']) {
|
||||
$comm_free_mny += $sum['price'];
|
||||
} else {
|
||||
$tot_tax_mny += $sum['price'];
|
||||
}
|
||||
}
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
|
||||
// 쿠폰
|
||||
if($is_member) {
|
||||
$cp_button = '';
|
||||
$cp_count = 0;
|
||||
|
||||
$sql = " select cp_id
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$sell_price'
|
||||
and (
|
||||
( cp_method = '0' and cp_target = '{$row['it_id']}' )
|
||||
OR
|
||||
( cp_method = '1' and ( cp_target IN ( '{$row['ca_id']}', '{$row['ca_id2']}', '{$row['ca_id3']}' ) ) )
|
||||
) ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
if(is_used_coupon($member['mb_id'], $cp['cp_id']))
|
||||
continue;
|
||||
|
||||
$cp_count++;
|
||||
}
|
||||
|
||||
if($cp_count) {
|
||||
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
|
||||
$it_cp_count++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td rowspan="2" class="sod_bsk_img"><?php echo $image; ?></td>
|
||||
<td headers ="th_it" colspan="5">
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<input type="hidden" name="it_price[<?php echo $i; ?>]" value="<?php echo $sell_price; ?>">
|
||||
<input type="hidden" name="cp_id[<?php echo $i; ?>]" value="">
|
||||
<input type="hidden" name="cp_price[<?php echo $i; ?>]" value="0">
|
||||
<?php if($default['de_tax_flag_use']) { ?>
|
||||
<input type="hidden" name="it_notax[<?php echo $i; ?>]" value="<?php echo $row['it_notax']; ?>">
|
||||
<?php } ?>
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td headers ="th_itall" class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td headers ="th_itprice" class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td headers ="th_cp" class="td_mngsmall"><?php echo $cp_button; ?></td>
|
||||
<td headers ="th_cnt" class="td_numbig"><span class="ct_sell_price"><?php echo number_format($sell_price); ?></span></td>
|
||||
<td headers ="th_pt" class="td_num"><?php echo number_format($sum['point']); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$tot_sell_price += $sell_price;
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
//echo '<tr><td colspan="'.$colspan.'" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($s_cart_id);
|
||||
}
|
||||
|
||||
$a1 = '<b>';
|
||||
$a2 = '</b>';
|
||||
$image = get_it_image($row['it_id'], 50, 50);
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
|
||||
}
|
||||
|
||||
// 복합과세금액
|
||||
// 복합과세처리
|
||||
if($default['de_tax_flag_use']) {
|
||||
if($row['it_notax']) {
|
||||
$comm_free_mny += $sum['price'];
|
||||
} else {
|
||||
$tot_tax_mny += $sum['price'];
|
||||
}
|
||||
$comm_tax_mny = round(($tot_tax_mny + $send_cost) / 1.1);
|
||||
$comm_vat_mny = ($tot_tax_mny + $send_cost) - $comm_tax_mny;
|
||||
}
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
|
||||
// 쿠폰
|
||||
if($is_member) {
|
||||
$cp_button = '';
|
||||
$cp_count = 0;
|
||||
|
||||
$sql = " select cp_id
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$sell_price'
|
||||
and (
|
||||
( cp_method = '0' and cp_target = '{$row['it_id']}' )
|
||||
OR
|
||||
( cp_method = '1' and ( cp_target IN ( '{$row['ca_id']}', '{$row['ca_id2']}', '{$row['ca_id3']}' ) ) )
|
||||
) ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
if(is_used_coupon($member['mb_id'], $cp['cp_id']))
|
||||
continue;
|
||||
|
||||
$cp_count++;
|
||||
}
|
||||
|
||||
if($cp_count) {
|
||||
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
|
||||
$it_cp_count++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="sod_bsk_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<input type="hidden" name="it_price[<?php echo $i; ?>]" value="<?php echo $sell_price; ?>">
|
||||
<input type="hidden" name="cp_id[<?php echo $i; ?>]" value="">
|
||||
<input type="hidden" name="cp_price[<?php echo $i; ?>]" value="0">
|
||||
<?php if($default['de_tax_flag_use']) { ?>
|
||||
<input type="hidden" name="it_notax[<?php echo $i; ?>]" value="<?php echo $row['it_notax']; ?>">
|
||||
<?php } ?>
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_smallmng"><?php echo $cp_button; ?></td>
|
||||
<td class="td_bignum"><span class="ct_sell_price"><?php echo number_format($sell_price); ?></span></td>
|
||||
<td class="td_num"><?php echo number_format($sum['point']); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$tot_sell_price += $sell_price;
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
//echo '<tr><td colspan="'.$colspan.'" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($s_cart_id);
|
||||
}
|
||||
|
||||
// 복합과세처리
|
||||
if($default['de_tax_flag_use']) {
|
||||
$comm_tax_mny = round(($tot_tax_mny + $send_cost) / 1.1);
|
||||
$comm_vat_mny = ($tot_tax_mny + $send_cost) - $comm_tax_mny;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php if ($goods_count) $goods .= ' 외 '.$goods_count.'건'; ?>
|
||||
|
||||
@ -342,191 +349,193 @@ ob_end_clean();
|
||||
<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>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<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" required class="frm_input required" maxlength="20">
|
||||
영,숫자 3~20자 (주문서 조회시 필요)
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (!$is_member) { // 비회원이면 ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_pwd">비밀번호</label></th>
|
||||
<td>
|
||||
<input type="password" name="od_pwd" id="od_pwd" required class="frm_input required" 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 = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_zip1&frm_zip2=od_zip2&frm_addr1=od_addr1&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="3" 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="3" 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>
|
||||
<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 = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_zip1&frm_zip2=od_zip2&frm_addr1=od_addr1&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="3" 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="3" 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">
|
||||
<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">
|
||||
<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" 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> -->
|
||||
<input type="text" name="od_hope_date" value="" id="od_hope_date" required class="frm_input required" size="11" maxlength="10" readonly="readonly"> 이후로 배송 바랍니다.
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?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> -->
|
||||
<input type="text" name="od_hope_date" value="" id="od_hope_date" required class="frm_input required" size="11" maxlength="10" readonly="readonly"> 이후로 배송 바랍니다.
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="sod_frm_taker">
|
||||
<h2>받으시는 분</h2>
|
||||
|
||||
<table class="frm_tbl">
|
||||
<tbody>
|
||||
<?php
|
||||
if($is_member) {
|
||||
// 배송지 이력
|
||||
$addr_list = '';
|
||||
$sep = chr(30);
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php
|
||||
if($is_member) {
|
||||
// 배송지 이력
|
||||
$addr_list = '';
|
||||
$sep = chr(30);
|
||||
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_same">주문자와 동일</label>'.PHP_EOL;
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_same">주문자와 동일</label>'.PHP_EOL;
|
||||
|
||||
// 기본배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
if($row['ad_id']) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.$val1.'" id="ad_sel_addr_def">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
|
||||
// 기본배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
if($row['ad_id']) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.$val1.'" id="ad_sel_addr_def">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
|
||||
}
|
||||
|
||||
// 최근배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '0'
|
||||
order by ad_id desc
|
||||
limit 2 ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근배송지('.($row['ad_subject'] ? $row['ad_subject'] : $row['ad_name']).')</label>';
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.$val1.'" id="ad_sel_addr_'.($i+1).'"> '.PHP_EOL.$val2.PHP_EOL;
|
||||
}
|
||||
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="new" id="od_sel_addr_new">'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규배송지</label>'.PHP_EOL;
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">배송지선택</th>
|
||||
<td>
|
||||
<?php echo $addr_list; ?>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ad_subject">배송지명</label></th>
|
||||
<td>
|
||||
<input type="text" name="ad_subject" id="ad_subject" class="frm_input" maxlength="20">
|
||||
<input type="checkbox" name="ad_default" id="ad_default" value="1">
|
||||
<label for="ad_default">기본배송지로 설정</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 최근배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '0'
|
||||
order by ad_id desc
|
||||
limit 2 ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근배송지('.($row['ad_subject'] ? $row['ad_subject'] : $row['ad_name']).')</label>';
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.$val1.'" id="ad_sel_addr_'.($i+1).'"> '.PHP_EOL.$val2.PHP_EOL;
|
||||
}
|
||||
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="new" id="od_sel_addr_new">'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규배송지</label>'.PHP_EOL;
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">배송지선택</th>
|
||||
<td>
|
||||
<?php echo $addr_list; ?>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ad_subject">배송지명</label></th>
|
||||
<td>
|
||||
<input type="text" name="ad_subject" id="ad_subject" class="frm_input" maxlength="20">
|
||||
<input type="checkbox" name="ad_default" id="ad_default" value="1">
|
||||
<label for="ad_default">기본배송지로 설정</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<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 = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_b_zip1&frm_zip2=od_b_zip2&frm_addr1=od_b_addr1&frm_addr2=od_b_addr2'; ?>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td id="sod_frm_addr">
|
||||
<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="3" 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="3" maxlength="3">
|
||||
<span id="od_winb_zip" style="display:block"></span>
|
||||
<?php if($addr_list) { ?>
|
||||
<div>
|
||||
<div>
|
||||
?>
|
||||
<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 = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_b_zip1&frm_zip2=od_b_zip2&frm_addr1=od_b_addr1&frm_addr2=od_b_addr2'; ?>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td id="sod_frm_addr">
|
||||
<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="3" 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="3" maxlength="3">
|
||||
<span id="od_winb_zip" style="display:block"></span>
|
||||
<?php if($addr_list) { ?>
|
||||
<span>
|
||||
<input type="checkbox" name="add_address" id="add_address" value="1">
|
||||
<label for="add_address">배송지목록에 추가</label>
|
||||
<input type="checkbox" name="ad_default" id="ad_default" value="1">
|
||||
<label for="ad_default">기본배송지로 설정</label>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<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>
|
||||
<input type="checkbox" name="ad_default" id="ad_default2" value="1">
|
||||
<label for="ad_default2">기본배송지로 설정</label>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<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">
|
||||
<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">
|
||||
<script>
|
||||
// 우편번호 자바스크립트 비활성화 대응을 위한 코드
|
||||
$('<a href="<?php echo $zip_href; ?>" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a>').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>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
@ -571,44 +580,46 @@ ob_end_clean();
|
||||
<section id="sod_frm_pay">
|
||||
<h2>결제정보 입력</h2>
|
||||
|
||||
<table class="frm_tbl">
|
||||
<tbody>
|
||||
<?php if($oc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">주문할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="od_cp_id" value="">
|
||||
<button type="button" id="od_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문할인금액</th>
|
||||
<td><span id="od_cp_price">0</span>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if($sc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">배송비할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="sc_cp_id" value="">
|
||||
<button type="button" id="sc_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송비할인금액</th>
|
||||
<td><span id="sc_cp_price">0</span>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th>총 주문금액</th>
|
||||
<td><span id="od_tot_price"><?php echo number_format($tot_price); ?></span>원</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>추가배송비</th>
|
||||
<td><span id="od_send_cost2">0</span>원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if($oc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">주문할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="od_cp_id" value="">
|
||||
<button type="button" id="od_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문할인금액</th>
|
||||
<td><span id="od_cp_price">0</span>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if($sc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">배송비할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="sc_cp_id" value="">
|
||||
<button type="button" id="sc_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송비할인금액</th>
|
||||
<td><span id="sc_cp_price">0</span>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th>총 주문금액</th>
|
||||
<td><span id="od_tot_price"><?php echo number_format($tot_price); ?></span>원</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>추가배송비</th>
|
||||
<td><span id="od_send_cost2">0</span>원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if (!$default['de_card_point'])
|
||||
@ -680,7 +691,7 @@ ob_end_clean();
|
||||
$point_unit = (int)$default['de_settle_point_unit'];
|
||||
$temp_point = (int)((int)($temp_point / $point_unit) * $point_unit);
|
||||
|
||||
echo '<div><input type="hidden" name="max_temp_point" value="'.$temp_point.'">결제포인트 : <input type="text" id="od_temp_point" name="od_temp_point" value="0" size="10">점 ('.$point_unit.'점 단위로 입력하세요.)</div>';
|
||||
echo '<div><input type="hidden" name="max_temp_point" value="'.$temp_point.'">결제포인트 : <input type="text" id="od_temp_point" name="od_temp_point" value="0" class="frm_input" size="10">점 ('.$point_unit.'점 단위로 입력하세요.)</div>';
|
||||
echo '<div>회원님의 보유포인트('.display_point($member['mb_point']).')중 <strong id="use_max_point">'.display_point($temp_point).'</strong>까지 사용 가능합니다.</div>';
|
||||
$multi_settle++;
|
||||
}
|
||||
|
||||
@ -269,12 +269,12 @@ if ($od_temp_point)
|
||||
|
||||
$i_price = $i_price + $i_send_cost + $i_send_cost2 - $i_temp_point - $i_send_coupon;
|
||||
|
||||
$od_status = '주문';
|
||||
if ($od_settle_case == "무통장")
|
||||
{
|
||||
$od_receipt_point = $i_temp_point;
|
||||
$od_receipt_price = 0;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '주문';
|
||||
}
|
||||
else if ($od_settle_case == "계좌이체")
|
||||
{
|
||||
@ -290,7 +290,8 @@ else if ($od_settle_case == "계좌이체")
|
||||
$od_bank_account = $bank_name;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '입금';
|
||||
if($od_misu == 0)
|
||||
$od_status = '입금';
|
||||
}
|
||||
else if ($od_settle_case == "가상계좌")
|
||||
{
|
||||
@ -305,7 +306,6 @@ else if ($od_settle_case == "가상계좌")
|
||||
$od_deposit_name = $od_name;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '주문';
|
||||
}
|
||||
else if ($od_settle_case == "휴대폰")
|
||||
{
|
||||
@ -318,7 +318,8 @@ else if ($od_settle_case == "휴대폰")
|
||||
$od_bank_account = $commid.' '.$mobile_no;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '입금';
|
||||
if($od_misu == 0)
|
||||
$od_status = '입금';
|
||||
}
|
||||
else if ($od_settle_case == "신용카드")
|
||||
{
|
||||
@ -333,7 +334,8 @@ else if ($od_settle_case == "신용카드")
|
||||
$od_bank_account = $card_name;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '입금';
|
||||
if($od_misu == 0)
|
||||
$od_status = '입금';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -437,15 +439,16 @@ if(!$result) {
|
||||
die_utf8('<p>고객님의 주문 정보를 처리하는 중 오류가 발생해서 주문이 완료되지 않았습니다.</p><p>KCP를 이용한 전자결제(신용카드, 계좌이체, 가상계좌 등)은 자동 취소되었습니다.');
|
||||
}
|
||||
|
||||
// 장바구니 쇼핑에서 주문으로
|
||||
// 장바구니 상태변경
|
||||
// 신용카드로 주문하면서 신용카드 포인트 사용하지 않는다면 포인트 부여하지 않음
|
||||
$cart_status = $od_status;
|
||||
$sql_card_point = "";
|
||||
if ($od_receipt_price > 0 && !$default['de_card_point']) {
|
||||
$sql_card_point = " , ct_point = '0' ";
|
||||
}
|
||||
$sql = "update {$g5['g5_shop_cart_table']}
|
||||
set od_id = '$od_id',
|
||||
ct_status = '주문'
|
||||
ct_status = '$cart_status'
|
||||
$sql_card_point
|
||||
where od_id = '$tmp_cart_id'
|
||||
and ct_select = '1' ";
|
||||
|
||||
@ -6,46 +6,48 @@ 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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *,
|
||||
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
|
||||
from {$g5['g5_shop_order_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by od_id desc
|
||||
$limit ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
?>
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<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 *,
|
||||
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
|
||||
from {$g5['g5_shop_order_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by od_id desc
|
||||
$limit ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uid=<?php echo $uid; ?>"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td class="td_datetime"><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_bignum"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['couponprice']); ?></td>
|
||||
<td class="td_stat"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uid=<?php echo $uid; ?>"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td class="td_datetime"><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_numbig"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
|
||||
<td class="td_numbig"><?php echo display_price($row['couponprice']); ?></td>
|
||||
<td class="td_stat"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="4" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="4" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@ -61,57 +61,59 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
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();
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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 ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
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'];
|
||||
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_price = $opt_price * $opt['ct_qty'];
|
||||
$point = $opt['ct_point'] * $opt['ct_qty'];
|
||||
$sell_price = $opt_price * $opt['ct_qty'];
|
||||
$point = $opt['ct_point'] * $opt['ct_qty'];
|
||||
|
||||
$ct_list[$opt['ct_id']]['name'] = $opt['it_name'];
|
||||
$ct_list[$opt['ct_id']]['option'] = $opt['ct_option'];
|
||||
?>
|
||||
<tr>
|
||||
<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_price); ?></td>
|
||||
<td class="td_num"><?php echo number_format($point); ?></td>
|
||||
<td class="td_smallmng"><?php echo $opt['ct_status']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$ct_list[$opt['ct_id']]['name'] = $opt['it_name'];
|
||||
$ct_list[$opt['ct_id']]['option'] = $opt['ct_option'];
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $opt['ct_option']; ?></td>
|
||||
<td class="td_mngsmall"><?php echo number_format($opt['ct_qty']); ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($opt_price); ?></td>
|
||||
<td class="td_num"><?php echo number_format($sell_price); ?></td>
|
||||
<td class="td_num"><?php echo number_format($point); ?></td>
|
||||
<td class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
|
||||
$st_count1++;
|
||||
if($opt['ct_status'] == '주문')
|
||||
$st_count2++;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
$st_count1++;
|
||||
if($opt['ct_status'] == '주문')
|
||||
$st_count2++;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
@ -212,270 +214,282 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
<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>
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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>
|
||||
|
||||
<tr>
|
||||
<th scope="row">결제방식</th>
|
||||
<td><?php echo $od['od_settle_case']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo $od_receipt_price; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if($od['od_receipt_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">결제일시</th>
|
||||
<td><?php echo $od['od_receipt_time']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 승인번호, 휴대폰번호, KCP 거래번호
|
||||
if($app_no_subj)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php echo $app_no_subj; ?></th>
|
||||
<td><?php echo $app_no; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 계좌정보
|
||||
if($disp_bank)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">입금자명</th>
|
||||
<td><?php echo $od['od_deposit_name']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">입금계좌</th>
|
||||
<td><?php echo $od['od_bank_account']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($disp_receipt) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">영수증</th>
|
||||
<td>
|
||||
<?php
|
||||
if($od['od_settle_case'] == '휴대폰')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no=<?php echo $od['od_tno']; ?>', 'winreceipt', 'width=500,height=690')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($od['od_settle_case'] == '신용카드')
|
||||
{
|
||||
?>
|
||||
<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_tno']; ?>', 'winreceipt', 'width=620,height=800')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
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_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">취소/환불 금액</th>
|
||||
<td><?php echo display_price($od['od_cancel_price']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 현금영수증 발급을 사용하는 경우에만
|
||||
if ($default['de_taxsave_use']) {
|
||||
// 미수금이 없고 현금일 경우에만 현금영수증을 발급 할 수 있습니다.
|
||||
if ($misu_price == 0 && $od['od_receipt_price'] && ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌')) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">현금영수증</th>
|
||||
<td>
|
||||
<tr>
|
||||
<th scope="row">결제방식</th>
|
||||
<td><?php echo $od['od_settle_case']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo $od_receipt_price; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($od['od_cash'])
|
||||
if($od['od_receipt_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<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>
|
||||
<tr>
|
||||
<th scope="row">결제일시</th>
|
||||
<td><?php echo $od['od_receipt_time']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
|
||||
// 승인번호, 휴대폰번호, KCP 거래번호
|
||||
if($app_no_subj)
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('<?php echo G5_SHOP_URL; ?>/taxsave_kcp.php?od_id=<?php echo $od_id; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');">현금영수증을 발급하시려면 클릭하십시오.</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
<tr>
|
||||
<th scope="row"><?php echo $app_no_subj; ?></th>
|
||||
<td><?php echo $app_no; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
// 계좌정보
|
||||
if($disp_bank)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">입금자명</th>
|
||||
<td><?php echo $od['od_deposit_name']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">입금계좌</th>
|
||||
<td><?php echo $od['od_bank_account']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($disp_receipt) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">영수증</th>
|
||||
<td>
|
||||
<?php
|
||||
if($od['od_settle_case'] == '휴대폰')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no=<?php echo $od['od_tno']; ?>', 'winreceipt', 'width=500,height=690')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($od['od_settle_case'] == '신용카드')
|
||||
{
|
||||
?>
|
||||
<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_tno']; ?>', 'winreceipt', 'width=620,height=800')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
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_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">취소/환불 금액</th>
|
||||
<td><?php echo display_price($od['od_cancel_price']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 현금영수증 발급을 사용하는 경우에만
|
||||
if ($default['de_taxsave_use']) {
|
||||
// 미수금이 없고 현금일 경우에만 현금영수증을 발급 할 수 있습니다.
|
||||
if ($misu_price == 0 && $od['od_receipt_price'] && ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌')) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">현금영수증</th>
|
||||
<td>
|
||||
<?php
|
||||
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 G5_SHOP_URL; ?>/taxsave_kcp.php?od_id=<?php echo $od_id; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');">현금영수증을 발급하시려면 클릭하십시오.</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</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) %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>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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) %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>
|
||||
</div>
|
||||
|
||||
</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) %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>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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) %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>
|
||||
</div>
|
||||
</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 {$g5['g5_shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
|
||||
if ($od['od_invoice'] || !$od['misu'])
|
||||
{
|
||||
if (is_array($dl))
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<?php
|
||||
// 배송회사 정보
|
||||
$dl = sql_fetch(" select * from {$g5['g5_shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
|
||||
if ($od['od_invoice'] || !$od['misu'])
|
||||
{
|
||||
// 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
|
||||
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
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td class="empty_table">아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@ -517,7 +531,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
<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 required" size="40" maxlength="100">
|
||||
<input type="text" name="cancel_memo" id="cancel_memo" required class="frm_input required"maxlength="100">
|
||||
<input type="submit" value="확인" class="btn_frmline">
|
||||
|
||||
</form>
|
||||
@ -538,10 +552,10 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
<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_tno']; ?>" 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 G5_SHOP_URL; ?>/settle_kcp_common.php" size="80"><br /><br />
|
||||
<input type="text" name="e_trade_no" value="<?php echo $od['od_tno']; ?>"><br>
|
||||
<input type="text" name="deposit_no" value="<?php echo $deposit_no; ?>"><br>
|
||||
<input type="text" name="req_name" value="<?php echo $od['od_name']; ?>"><br>
|
||||
<input type="text" name="noti_url" value="<?php echo G5_SHOP_URL; ?>/settle_kcp_common.php"><br><br>
|
||||
<input type="submit" value="입금통보 테스트">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
@ -106,26 +106,28 @@ if($default['de_escrow_use']) {
|
||||
<section id="sod_frm_orderer">
|
||||
<h2>개인결제정보</h2>
|
||||
|
||||
<table class="frm_tbl">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>결제금액</th>
|
||||
<td><?php echo display_price($pp['pp_price']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_name">이름</label></th>
|
||||
<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_email">이메일</label></th>
|
||||
<td><input type="text" name="pp_email" value="<?php echo $member['mb_email']; ?>" id="pp_email" required class="required frm_input"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_hp">휴대폰</label></th>
|
||||
<td><input type="text" name="pp_hp" value="<?php echo $member['mb_hp']; ?>" id="pp_hp" class="frm_input"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>결제금액</th>
|
||||
<td><?php echo display_price($pp['pp_price']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_name">이름</label></th>
|
||||
<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_email">이메일</label></th>
|
||||
<td><input type="text" name="pp_email" value="<?php echo $member['mb_email']; ?>" id="pp_email" required class="required frm_input"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_hp">휴대폰</label></th>
|
||||
<td><input type="text" name="pp_hp" value="<?php echo $member['mb_hp']; ?>" id="pp_hp" class="frm_input"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$multi_settle == 0;
|
||||
|
||||
@ -62,88 +62,90 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
<section id="sod_fin_pay">
|
||||
<h3>결제정보</h3>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<?php if($pp['od_id']) { ?>
|
||||
<tr>
|
||||
<th scope="row">주문번호</th>
|
||||
<td><?php echo $pp['od_id']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th scope="row">결제방식</th>
|
||||
<td><?php echo $pp['pp_settle_case']; ?></td>
|
||||
</tr>
|
||||
<?php if($pp['pp_receipt_price'] > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo $pp_receipt_price; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제일시</th>
|
||||
<td><?php echo $pp['pp_receipt_time']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
<div class="tbl_wrap tbl_head01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<?php if($pp['od_id']) { ?>
|
||||
<tr>
|
||||
<th scope="row">주문번호</th>
|
||||
<td><?php echo $pp['od_id']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th scope="row">결제방식</th>
|
||||
<td><?php echo $pp['pp_settle_case']; ?></td>
|
||||
</tr>
|
||||
<?php if($pp['pp_receipt_price'] > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo $pp_receipt_price; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제일시</th>
|
||||
<td><?php echo $pp['pp_receipt_time']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 승인번호, 휴대폰번호, KCP 거래번호
|
||||
if($app_no_subj)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php echo $app_no_subj; ?></th>
|
||||
<td><?php echo $app_no; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
// 승인번호, 휴대폰번호, KCP 거래번호
|
||||
if($app_no_subj)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php echo $app_no_subj; ?></th>
|
||||
<td><?php echo $app_no; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 계좌정보
|
||||
if($disp_bank)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">입금자명</th>
|
||||
<td><?php echo $pp['pp_deposit_name']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">입금계좌</th>
|
||||
<td><?php echo $pp['pp_bank_account']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
// 계좌정보
|
||||
if($disp_bank)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">입금자명</th>
|
||||
<td><?php echo $pp['pp_deposit_name']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">입금계좌</th>
|
||||
<td><?php echo $pp['pp_bank_account']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($disp_receipt) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">영수증</th>
|
||||
<td>
|
||||
<?php
|
||||
if($pp['pp_settle_case'] == '휴대폰')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no=<?php echo $pp['pp_tno']; ?>', 'winreceipt', 'width=500,height=690')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
if($disp_receipt) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">영수증</th>
|
||||
<td>
|
||||
<?php
|
||||
if($pp['pp_settle_case'] == '휴대폰')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no=<?php echo $pp['pp_tno']; ?>', 'winreceipt', 'width=500,height=690')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($pp['pp_settle_case'] == '신용카드')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=<?php echo $pp['pp_tno']; ?>', 'winreceipt', 'width=620,height=800')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
if($pp['pp_settle_case'] == '신용카드')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=<?php echo $pp['pp_tno']; ?>', 'winreceipt', 'width=620,height=800')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@ -178,10 +180,10 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
<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 $pp['pp_tno']; ?>" 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 $pp['pp_deposit_name']; ?>" size="80"><br />
|
||||
<input type="text" name="noti_url" value="<?php echo G5_SHOP_URL; ?>/settle_kcp_common.php" size="80"><br /><br />
|
||||
<input type="text" name="e_trade_no" value="<?php echo $pp['pp_tno']; ?>"><br />
|
||||
<input type="text" name="deposit_no" value="<?php echo $deposit_no; ?>"><br />
|
||||
<input type="text" name="req_name" value="<?php echo $pp['pp_deposit_name']; ?>"><br />
|
||||
<input type="text" name="noti_url" value="<?php echo G5_SHOP_URL; ?>/settle_kcp_common.php"><br /><br />
|
||||
<input type="submit" value="입금통보 테스트">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
@ -15,71 +15,73 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
<input type="hidden" name="sw_direct" value="">
|
||||
<input type="hidden" name="prog" value="wish">
|
||||
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">선택</th>
|
||||
<th scope="col">삭제</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select a.wi_id, a.wi_time, b.*
|
||||
from {$g5['g5_shop_wish_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
order by a.wi_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = mysql_fetch_array($result); $i++) {
|
||||
<div class="tbl_wrap tbl_head01">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">선택</th>
|
||||
<th scope="col">삭제</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select a.wi_id, a.wi_time, b.*
|
||||
from {$g5['g5_shop_wish_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
order by a.wi_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = mysql_fetch_array($result); $i++) {
|
||||
|
||||
$out_cd = '';
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' ";
|
||||
$tmp = sql_fetch($sql);
|
||||
if($tmp['cnt'])
|
||||
$out_cd = 'no';
|
||||
$out_cd = '';
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' ";
|
||||
$tmp = sql_fetch($sql);
|
||||
if($tmp['cnt'])
|
||||
$out_cd = 'no';
|
||||
|
||||
$it_price = get_price($row);
|
||||
$it_price = get_price($row);
|
||||
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
$it_point = get_item_point($row);
|
||||
?>
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
$it_point = get_item_point($row);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="sod_ws_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a>
|
||||
<small>보관일시 <?php echo $row['wi_time']; ?></small>
|
||||
</td>
|
||||
<td class="td_chk">
|
||||
<?php
|
||||
// 품절검사
|
||||
$it_stock_qty = get_it_stock_qty($row['it_id']);
|
||||
if($it_stock_qty <= 0)
|
||||
{
|
||||
?>
|
||||
품절
|
||||
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
||||
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||
<?php } ?>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
|
||||
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
|
||||
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
|
||||
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" value="1">
|
||||
</td>
|
||||
<td class="td_smallmng"><a href="<?php echo G5_SHOP_URL; ?>/wishupdate.php?w=d&wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
<tr>
|
||||
<td class="sod_ws_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a>
|
||||
<small>보관일시 <?php echo $row['wi_time']; ?></small>
|
||||
</td>
|
||||
<td class="td_chk">
|
||||
<?php
|
||||
// 품절검사
|
||||
$it_stock_qty = get_it_stock_qty($row['it_id']);
|
||||
if($it_stock_qty <= 0)
|
||||
{
|
||||
?>
|
||||
품절
|
||||
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
||||
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||
<?php } ?>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
|
||||
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
|
||||
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
|
||||
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" value="1">
|
||||
</td>
|
||||
<td class="td_mngsmall"><a href="<?php echo G5_SHOP_URL; ?>/wishupdate.php?w=d&wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="5" class="empty_table">보관함이 비었습니다.</td></tr>';
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="5" class="empty_table">보관함이 비었습니다.</td></tr>';
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="sod_ws_act">
|
||||
<button type="submit" class="btn01" onclick="return fwishlist_check(document.fwishlist,'');">장바구니 담기</button>
|
||||
|
||||
@ -48,7 +48,7 @@ if ($is_nogood) $colspan++;
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="sw" value="">
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -152,7 +152,7 @@ if ($is_nogood) $colspan++;
|
||||
<option value="wr_name,1"<?php echo get_selected($sfl, 'wr_name,1'); ?>>글쓴이</option>
|
||||
<option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
|
||||
</select>
|
||||
<input name="stx" value="<?php echo stripslashes($stx) ?>" placeholder="검색어(필수)" required class="required frm_input" size="15" maxlength="15">
|
||||
<input name="stx" value="<?php echo stripslashes($stx) ?>" placeholder="검색어(필수)" required id="stx" class="required frm_input" size="15" maxlength="15">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
</fieldset>
|
||||
@ -194,6 +194,9 @@ function fboardlist_submit(f) {
|
||||
if(document.pressed == "선택삭제") {
|
||||
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다"))
|
||||
return false;
|
||||
|
||||
f.removeAttribute("target");
|
||||
f.action = "./board_list_update.php";
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@ -137,9 +137,11 @@
|
||||
#bo_w #wr_email, #bo_w #wr_homepage, #bo_w #wr_subject {width:100%}
|
||||
|
||||
#char_count_desc {display:block;margin:0 0 5px;padding:0}
|
||||
#char_count_wrp {margin:5px 0 0;text-align:right}
|
||||
#char_count_wrap {margin:5px 0 0;text-align:right}
|
||||
#char_count {font-weight:bold}
|
||||
|
||||
#wr_email, #wr_homepage, #wr_subject, .wr_link {width:100%}
|
||||
|
||||
/* 게시판 읽기 */
|
||||
#bo_v {margin-bottom:15px;padding-bottom:15px}
|
||||
|
||||
|
||||
@ -93,7 +93,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="is_good" value="">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
|
||||
@ -50,14 +50,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
echo $option_hidden;
|
||||
?>
|
||||
<div id="bo_w" class="tbl_frm01 tbl_wrp">
|
||||
<div id="bo_w" class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption><?php echo $g5['title'] ?></caption>
|
||||
<tbody>
|
||||
<?php if ($is_name) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
|
||||
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@ -71,14 +71,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php if ($is_email) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_email">이메일</label></th>
|
||||
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
|
||||
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" maxlength="100"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_homepage) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
|
||||
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
|
||||
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@ -103,7 +103,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required" size="50"></td>
|
||||
<td><input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@ -116,7 +116,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
|
||||
<?php if($write_min || $write_max) { ?>
|
||||
<!-- 최소/최대 글자 수 사용 시 -->
|
||||
<div id="char_count_wrp"><span id="char_count"></span>글자</div>
|
||||
<div id="char_count_wrap"><span id="char_count"></span>글자</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -124,7 +124,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_link<?php echo $i ?>">링크 #<?php echo $i ?></label></th>
|
||||
<td><input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input" size="50"></td>
|
||||
<td><input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input wr_link"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@ -134,7 +134,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<td>
|
||||
<input type="file" name="bf_file[]" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
|
||||
<?php if ($is_file_content) { ?>
|
||||
<input type="text" name="bf_content[]" value="<?php echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input" size="50">
|
||||
<input type="text" name="bf_content[]" value="<?php echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input">
|
||||
<?php } ?>
|
||||
<?php if($w == 'u' && $file[$i]['file']) { ?>
|
||||
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
|
||||
|
||||
@ -176,7 +176,7 @@ $(window).on("load", function() {
|
||||
<option value="wr_name,1"<?php echo get_selected($sfl, "wr_name,1"); ?>>글쓴이</option>
|
||||
<option value="wr_name,0"<?php echo get_selected($sfl, "wr_name,0"); ?>>글쓴이(코)</option>
|
||||
</select>
|
||||
<input name="stx" value="<?php echo stripslashes($stx) ?>" placeholder="검색어(필수)" required class="required" size="15" maxlength="15">
|
||||
<input name="stx" value="<?php echo stripslashes($stx) ?>" placeholder="검색어(필수)" required id="stx" class="required" size="15" maxlength="15">
|
||||
<input type="submit" value="검색">
|
||||
</form>
|
||||
</fieldset>
|
||||
@ -218,6 +218,9 @@ function fboardlist_submit(f) {
|
||||
if(document.pressed == "선택삭제") {
|
||||
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다"))
|
||||
return false;
|
||||
|
||||
f.removeAttribute("target");
|
||||
f.action = "./board_list_update.php";
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@ -119,9 +119,11 @@
|
||||
|
||||
/* 게시판 쓰기 */
|
||||
#char_count_desc {display:block;margin:0 0 5px;padding:0}
|
||||
#char_count_wrp {margin:5px 0 0;text-align:right}
|
||||
#char_count_wrap {margin:5px 0 0;text-align:right}
|
||||
#char_count {font-weight:bold}
|
||||
|
||||
#wr_email, #wr_homepage, #wr_subject, .wr_link {width:100%}
|
||||
|
||||
/* 게시판 읽기 */
|
||||
#bo_v {margin-bottom:15px;padding-bottom:15px}
|
||||
|
||||
|
||||
@ -93,7 +93,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="is_good" value="">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
|
||||
@ -50,35 +50,35 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
echo $option_hidden;
|
||||
?>
|
||||
<div id="bo_w" class="tbl_frm01 tbl_wrp">
|
||||
<div id="bo_w" class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption><?php echo $g5['title'] ?></caption>
|
||||
<tbody>
|
||||
<?php if ($is_name) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
|
||||
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_password) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
|
||||
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" size="15" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_email) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_email">이메일</label></th>
|
||||
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
|
||||
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" maxlength="100"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_homepage) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
|
||||
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
|
||||
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@ -103,7 +103,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required" size="50"></td>
|
||||
<td><input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@ -116,7 +116,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
|
||||
<?php if($write_min || $write_max) { ?>
|
||||
<!-- 최소/최대 글자 수 사용 시 -->
|
||||
<div id="char_count_wrp"><span id="char_count"></span>글자</div>
|
||||
<div id="char_count_wrap"><span id="char_count"></span>글자</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -124,7 +124,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_link<?php echo $i ?>">링크 #<?php echo $i ?></label></th>
|
||||
<td><input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input" size="50"></td>
|
||||
<td><input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input wr_link"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@ -134,7 +134,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<td>
|
||||
<input type="file" name="bf_file[]" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
|
||||
<?php if ($is_file_content) { ?>
|
||||
<input type="text" name="bf_content[]" value="<?php echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input" size="50">
|
||||
<input type="text" name="bf_content[]" value="<?php echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input">
|
||||
<?php } ?>
|
||||
<?php if($w == 'u' && $file[$i]['file']) { ?>
|
||||
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
|
||||
|
||||
@ -4,7 +4,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $connect_skin_url ?>/style.css">
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table id="current_connect_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@ -16,7 +16,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="fmail" value="<?php echo $member['mb_email'] ?>">
|
||||
<?php } ?>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>메일쓰기</caption>
|
||||
<tbody>
|
||||
|
||||
@ -13,7 +13,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<li><a href="./memo_form.php">쪽지쓰기</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>
|
||||
전체 <?php echo $kind_title ?>쪽지 <?php echo $total_count ?>통<br>
|
||||
|
||||
@ -14,7 +14,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</ul>
|
||||
|
||||
<form name="fmemoform" action="./memo_form_update.php" onsubmit="return fmemoform_submit(this);" method="post" autocomplete="off">
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>쪽지쓰기</caption>
|
||||
<tbody>
|
||||
|
||||
@ -7,7 +7,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<div id="profile" class="new_win mbskin">
|
||||
<h1 id="win_title"><?php echo $mb_nick ?>님의 프로필</h1>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
@ -22,7 +22,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="mb_nick" value="<?php echo $member['mb_nick'] ?>">
|
||||
<?php } ?>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>사이트 이용정보 입력</caption>
|
||||
<tr>
|
||||
@ -44,7 +44,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>개인정보 입력</caption>
|
||||
<tr>
|
||||
@ -53,7 +53,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php if ($w=="u" && $config['cf_cert_use']) { ?>
|
||||
<span class="frm_info">아이핀 본인확인 후에는 이름이 자동 입력되고 휴대폰 본인확인 후에는 이름과 휴대폰번호가 자동 입력되어 수동으로 입력할수 없게 됩니다.</span>
|
||||
<?php } ?>
|
||||
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name'] ?>" <?php echo $required ?> <?php if ($w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>" size="10">
|
||||
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name'] ?>" <?php echo $required ?> <?php if ($w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>">
|
||||
<?php
|
||||
if($config['cf_cert_use']) {
|
||||
if($config['cf_cert_ipin'])
|
||||
@ -161,7 +161,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>기타 개인설정</caption>
|
||||
<?php if ($config['cf_use_signature']) { ?>
|
||||
|
||||
@ -7,7 +7,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<div id="scrap" class="new_win mbskin">
|
||||
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>스크랩 목록</caption>
|
||||
<thead>
|
||||
|
||||
@ -11,7 +11,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>제목 확인 및 댓글 쓰기</caption>
|
||||
<tbody>
|
||||
|
||||
@ -30,7 +30,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<!-- } 전체게시물 검색 끝 -->
|
||||
|
||||
<!-- 전체게시물 목록 시작 { -->
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table id="new_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@ -8,9 +8,8 @@
|
||||
.ol a.btn_admin {display:inline-block;margin:0 0 5px;padding:0 10px;border:1px solid #e8180c;background:#e8180c;color:#fff;text-decoration:none;line-height:2em;vertical-align:middle} /* 관리자 전용 버튼 */
|
||||
.ol a.btn_admin:focus, .ol a.btn_admin:hover {text-decoration:none}
|
||||
|
||||
#ol_before input[type=text],
|
||||
#ol_before input[type=password] {display:block;margin-bottom:5px;padding:0;width:80%;height:1.8em;border:1px solid #b8c9c2;background:#f7f7f7;vertical-align:middle;line-height:1.8em;-webkit-appearance:none}
|
||||
#ol_before input[type=submit] {position:absolute;top:0;right:5px;padding:0 !important;width:18%;height:4em;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;cursor:pointer;-webkit-appearance:none}
|
||||
#ol_before input[type=text], #ol_before input[type=password] {display:block;margin-bottom:5px;padding:0;width:80%;height:1.8em;border:1px solid #b8c9c2;background:#f7f7f7;vertical-align:middle;line-height:1.8em}
|
||||
#ol_before input[type=submit] {position:absolute;top:0;right:5px;padding:0 !important;width:18%;height:4.3em;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;cursor:pointer}
|
||||
#ol_svc {margin:5px 0;text-align:right}
|
||||
#ol_svc a {display:inline-block;margin:0 0 0 5px;color:#000;text-decoration:none;vertical-align:middle}
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<?php if ($is_member) { ?><input type="hidden" name="pc_name" value="<?php echo cut_str($member['mb_nick'],255) ?>"><?php } ?>
|
||||
<h3><?php echo $po_etc ?></h3>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table id="poll_result_wcmt">
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
|
||||
@ -23,7 +23,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
</div>
|
||||
<div>
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo $text_stx ?>" class="frm_input" required class="required" size="14" maxlength="20">
|
||||
<input type="text" name="stx" value="<?php echo $text_stx ?>" class="frm_input" required class="required" maxlength="20">
|
||||
<input type="submit" class="btn_submit" value="검색">
|
||||
|
||||
<script>
|
||||
|
||||
@ -13,22 +13,24 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_subject">제목</label></th>
|
||||
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_question">질문</label></th>
|
||||
<td><?php echo editor_html('iq_question', $qa['iq_question']); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_subject">제목</label></th>
|
||||
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_question">질문</label></th>
|
||||
<td><?php echo editor_html('iq_question', $qa['iq_question']); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
|
||||
@ -13,54 +13,56 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="is_id" value="<?php echo $is_id; ?>">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="is_subject">제목</label></th>
|
||||
<td><input type="text" name="is_subject" value="<?php echo get_text($use['is_subject']); ?>" id="is_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
||||
<td><?php echo editor_html('is_content', $use['is_content']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">평가</th>
|
||||
<td>
|
||||
<ul id="sit_use_write_star">
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
||||
<label for="is_score10">매우만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star5.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8">만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star4.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6">보통</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star3.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4">불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star2.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2">매우불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star1.png">
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="is_subject">제목</label></th>
|
||||
<td><input type="text" name="is_subject" value="<?php echo get_text($use['is_subject']); ?>" id="is_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
||||
<td><?php echo editor_html('is_content', $use['is_content']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">평가</th>
|
||||
<td>
|
||||
<ul id="sit_use_write_star">
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
||||
<label for="is_score10">매우만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star5.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8">만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star4.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6">보통</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star3.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4">불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star2.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2">매우불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star1.png">
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
|
||||
@ -38,7 +38,7 @@ function editor_html($id, $content, $is_dhtml_editor=true)
|
||||
}
|
||||
|
||||
$ckeditor_class = $is_dhtml_editor ? "ckeditor" : "";
|
||||
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$ckeditor_class\" style=\"width:100%;\" maxlength=\"65536\">$content</textarea>";
|
||||
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$ckeditor_class\" maxlength=\"65536\">$content</textarea>";
|
||||
$html .= "\n<span class=\"sound_only\">웹 에디터 끝</span>";
|
||||
return $html;
|
||||
}
|
||||
|
||||
202
shop/cart.php
202
shop/cart.php
@ -26,111 +26,113 @@ include_once('./_head.php');
|
||||
<div id="sod_bsk">
|
||||
|
||||
<form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">
|
||||
<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">
|
||||
<label for="ct_all" class="sound_only">상품 전체</label>
|
||||
<input type="checkbox" name="ct_all" value="1" id="ct_all" checked="checked">
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_point = 0;
|
||||
$tot_sell_price = 0;
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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">
|
||||
<label for="ct_all" class="sound_only">상품 전체</label>
|
||||
<input type="checkbox" name="ct_all" value="1" id="ct_all" checked="checked">
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_point = 0;
|
||||
$tot_sell_price = 0;
|
||||
|
||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
a.ct_send_cost,
|
||||
b.ca_id,
|
||||
b.ca_id2,
|
||||
b.ca_id3
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
$sql .= " order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$it_send_cost = 0;
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
if ($i==0) { // 계속쇼핑
|
||||
$continue_ca_id = $row['ca_id'];
|
||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
a.ct_send_cost,
|
||||
b.ca_id,
|
||||
b.ca_id2,
|
||||
b.ca_id3
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
$sql .= " order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$a1 = '<a href="./item.php?it_id='.$row['it_id'].'"><b>';
|
||||
$a2 = '</b></a>';
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
$it_send_cost = 0;
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
$mod_options = '<div class="sod_option_btn"><button type="button" class="mod_options">선택사항수정</button></div>';
|
||||
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
if ($i==0) { // 계속쇼핑
|
||||
$continue_ca_id = $row['ca_id'];
|
||||
}
|
||||
|
||||
$a1 = '<a href="./item.php?it_id='.$row['it_id'].'"><b>';
|
||||
$a2 = '</b></a>';
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
$mod_options = '<div class="sod_option_btn"><button type="button" class="mod_options">선택사항수정</button></div>';
|
||||
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
|
||||
}
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="sod_bsk_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_numbig"><span id="sell_price_<?php echo $i; ?>"><?php echo number_format($sell_price); ?></span></td>
|
||||
<td class="td_numbig"><?php echo number_format($point); ?></td>
|
||||
<td class="td_chk">
|
||||
<label for="ct_chk_<?php echo $i; ?>" class="sound_only">상품</label>
|
||||
<input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" id="ct_chk_<?php echo $i; ?>" checked="checked">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$tot_sell_price += $sell_price;
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($s_cart_id, 0);
|
||||
}
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="sod_bsk_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_bignum"><span id="sell_price_<?php echo $i; ?>"><?php echo number_format($sell_price); ?></span></td>
|
||||
<td class="td_bignum"><?php echo number_format($point); ?></td>
|
||||
<td class="td_chk">
|
||||
<label for="ct_chk_<?php echo $i; ?>" class="sound_only">상품</label>
|
||||
<input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" id="ct_chk_<?php echo $i; ?>" checked="checked">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$tot_sell_price += $sell_price;
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($s_cart_id, 0);
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$tot_price = $tot_sell_price + $send_cost; // 총계 = 주문상품금액합계 + 배송비
|
||||
|
||||
@ -20,57 +20,59 @@ $result = sql_query($sql);
|
||||
<div id="coupon" class="new_win">
|
||||
<h1 id="new_win_title"><?php echo $g5['title'] ?></h1>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">적용대상</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">사용기한</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$cp_count = 0;
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
if(is_used_coupon($member['mb_id'], $row['cp_id']))
|
||||
continue;
|
||||
<div class="tbl_wrap tbl_head01">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">적용대상</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">사용기한</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$cp_count = 0;
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
if(is_used_coupon($member['mb_id'], $row['cp_id']))
|
||||
continue;
|
||||
|
||||
if($row['cp_method'] == 1) {
|
||||
$sql = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '{$row['cp_target']}' ";
|
||||
$ca = sql_fetch($sql);
|
||||
$cp_target = $ca['ca_name'].'의 상품할인';
|
||||
} else if($row['cp_method'] == 2) {
|
||||
$cp_target = '결제금액 할인';
|
||||
} else if($row['cp_method'] == 3) {
|
||||
$cp_target = '배송비 할인';
|
||||
} else {
|
||||
$sql = " select it_name from {$g5['g5_shop_item_table']} where it_id = '{$row['cp_target']}' ";
|
||||
$it = sql_fetch($sql);
|
||||
$cp_target = $it['it_name'].' 상품할인';
|
||||
if($row['cp_method'] == 1) {
|
||||
$sql = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '{$row['cp_target']}' ";
|
||||
$ca = sql_fetch($sql);
|
||||
$cp_target = $ca['ca_name'].'의 상품할인';
|
||||
} else if($row['cp_method'] == 2) {
|
||||
$cp_target = '결제금액 할인';
|
||||
} else if($row['cp_method'] == 3) {
|
||||
$cp_target = '배송비 할인';
|
||||
} else {
|
||||
$sql = " select it_name from {$g5['g5_shop_item_table']} where it_id = '{$row['cp_target']}' ";
|
||||
$it = sql_fetch($sql);
|
||||
$cp_target = $it['it_name'].' 상품할인';
|
||||
}
|
||||
|
||||
if($row['cp_type'])
|
||||
$cp_price = $row['cp_price'].'%';
|
||||
else
|
||||
$cp_price = number_format($row['cp_price']).'원';
|
||||
|
||||
$cp_count++;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['cp_subject']; ?></td>
|
||||
<td><?php echo $cp_target; ?></td>
|
||||
<td class="td_numbig"><?php echo $cp_price; ?></td>
|
||||
<td class="td_datetime"><?php echo substr($row['cp_start'], 2, 8); ?> ~ <?php echo substr($row['cp_end'], 2, 8); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($row['cp_type'])
|
||||
$cp_price = $row['cp_price'].'%';
|
||||
else
|
||||
$cp_price = number_format($row['cp_price']).'원';
|
||||
|
||||
$cp_count++;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['cp_subject']; ?></td>
|
||||
<td><?php echo $cp_target; ?></td>
|
||||
<td class="td_bignum"><?php echo $cp_price; ?></td>
|
||||
<td class="td_datetime"><?php echo substr($row['cp_start'], 2, 8); ?> ~ <?php echo substr($row['cp_end'], 2, 8); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if(!$cp_count)
|
||||
echo '<tr><td colspan="4" class="empty_table">사용할 수 있는 쿠폰이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
if(!$cp_count)
|
||||
echo '<tr><td colspan="4" class="empty_table">사용할 수 있는 쿠폰이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
|
||||
</div>
|
||||
|
||||
@ -21,11 +21,12 @@ include_once(G5_PATH.'/head.sub.php');
|
||||
<div id="sit_rec_new" class="new_win">
|
||||
<h1><?php echo $g5['title']; ?></h1>
|
||||
|
||||
<div class="cbox">
|
||||
<form name="fitemrecommend" method="post" action="./itemrecommendmail.php" autocomplete="off" onsubmit="return fitemrecommend_check(this);">
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<table class="frm_tbl">
|
||||
<form name="fitemrecommend" method="post" action="./itemrecommendmail.php" autocomplete="off" onsubmit="return fitemrecommend_check(this);">
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
@ -45,14 +46,14 @@ include_once(G5_PATH.'/head.sub.php');
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" id="btn_submit" value="보내기" class="btn_submit">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" id="btn_submit" value="보내기" class="btn_submit">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
@ -83,43 +83,45 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
<section id="smb_my_wish">
|
||||
<h2>최근 위시리스트</h2>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">보관일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_wish_table']} a,
|
||||
{$g5['g5_shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc
|
||||
limit 0, 3 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_image($row['it_id'], 70, 70, true);
|
||||
?>
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">보관일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_wish_table']} a,
|
||||
{$g5['g5_shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc
|
||||
limit 0, 3 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_image($row['it_id'], 70, 70, true);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="smb_my_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 class="td_datetime"><?php echo $row['wi_time']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="smb_my_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 class="td_datetime"><?php echo $row['wi_time']; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="3" class="empty_table">보관 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="3" class="empty_table">보관 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="smb_my_more">
|
||||
<a href="./wishlist.php" class="btn01">위시리스트 더보기</a>
|
||||
|
||||
@ -50,47 +50,50 @@ $order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
|
||||
|
||||
<h1 id="new_win_title">배송지 목록</h1>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
<label for="chk_all" class="sound_only">전체선택</label><input type="checkbox" name="chk_all" id="chk_all">
|
||||
</th>
|
||||
<th scope="col">배송지명</th>
|
||||
<th scope="col">기본<br>배송지</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">전화번호</th>
|
||||
<th scope="col">주소</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sep = chr(30);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$addr = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_chk"><label for="chk_<?php echo $i;?>" class="sound_only">배송지선택</label>
|
||||
<input type="hidden" name="ad_id[<?php echo $i; ?>]" value="<?php echo $row['ad_id'];?>">
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i;?>" id="chk_<?php echo $i;?>">
|
||||
</td>
|
||||
<td class="td_name"><input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject" class="frm_input" size="12" maxlength="20" value="<?php echo $row['ad_subject']; ?>"></td>
|
||||
<td class="td_default"><label for="ad_default<?php echo $i;?>" class="sound_only">기본배송지</label><input type="radio" name="ad_default" value="<?php echo $row['ad_id'];?>" id="ad_default<?php echo $i;?>" <?php if($row['ad_default']) echo 'checked="checked"';?>></td>
|
||||
<td class="td_smallname"><?php echo $row['ad_name']; ?></td>
|
||||
<td class="td_bignum"><?php echo $row['ad_tel']; ?><br><?php echo $row['ad_hp']; ?></td>
|
||||
<td><?php echo sprintf('%s %s', $row['ad_addr1'], $row['ad_addr2']); ?></td>
|
||||
<td class="td_mng">
|
||||
<input type="hidden" value="<?php echo $addr; ?>">
|
||||
<button type="button" class="sel_address btn_frmline">선택</button>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?w=d&ad_id=<?php echo $row['ad_id']; ?>" class="del_address">삭제</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
<label for="chk_all" class="sound_only">전체선택</label><input type="checkbox" name="chk_all" id="chk_all">
|
||||
</th>
|
||||
<th scope="col">배송지명</th>
|
||||
<th scope="col">기본<br>배송지</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">전화번호</th>
|
||||
<th scope="col">주소</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sep = chr(30);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$addr = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_chk"><label for="chk_<?php echo $i;?>" class="sound_only">배송지선택</label>
|
||||
<input type="hidden" name="ad_id[<?php echo $i; ?>]" value="<?php echo $row['ad_id'];?>">
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i;?>" id="chk_<?php echo $i;?>">
|
||||
</td>
|
||||
<td class="td_name"><input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject" class="frm_input" size="12" maxlength="20" value="<?php echo $row['ad_subject']; ?>"></td>
|
||||
<td class="td_default"><label for="ad_default<?php echo $i;?>" class="sound_only">기본배송지</label><input type="radio" name="ad_default" value="<?php echo $row['ad_id'];?>" id="ad_default<?php echo $i;?>" <?php if($row['ad_default']) echo 'checked="checked"';?>></td>
|
||||
<td class="td_namesmall"><?php echo $row['ad_name']; ?></td>
|
||||
<td class="td_numbig"><?php echo $row['ad_tel']; ?><br><?php echo $row['ad_hp']; ?></td>
|
||||
<td><?php echo sprintf('%s %s', $row['ad_addr1'], $row['ad_addr2']); ?></td>
|
||||
<td class="td_mng">
|
||||
<input type="hidden" value="<?php echo $addr; ?>">
|
||||
<button type="button" class="sel_address btn_frmline">선택</button>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?w=d&ad_id=<?php echo $row['ad_id']; ?>" class="del_address">삭제</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_list">
|
||||
<input type="submit" name="act_button" value="선택수정" id="btn_submit">
|
||||
</div>
|
||||
|
||||
@ -21,47 +21,49 @@ $count = mysql_num_rows($result);
|
||||
<!-- 쿠폰 선택 시작 { -->
|
||||
<div id="od_coupon_frm">
|
||||
<?php if($count > 0) { ?>
|
||||
<table class="basic_tbl">
|
||||
<caption>쿠폰 선택</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">적용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 사용한 쿠폰인지 체크
|
||||
if(is_used_coupon($member['mb_id'], $row['cp_id']))
|
||||
continue;
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>쿠폰 선택</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">적용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 사용한 쿠폰인지 체크
|
||||
if(is_used_coupon($member['mb_id'], $row['cp_id']))
|
||||
continue;
|
||||
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($price * ($row['cp_price'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_price'];
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($price * ($row['cp_price'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_price'];
|
||||
}
|
||||
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="o_cp_id[]" value="<?php echo $row['cp_id']; ?>">
|
||||
<input type="hidden" name="o_cp_prc[]" value="<?php echo $dc; ?>">
|
||||
<input type="hidden" name="o_cp_subj[]" value="<?php echo $row['cp_subject']; ?>">
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td class="td_numbig"><?php echo number_format($dc); ?></td>
|
||||
<td class="td_mngsmall"><button type="button" class="od_cp_apply btn_frmline">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="o_cp_id[]" value="<?php echo $row['cp_id']; ?>">
|
||||
<input type="hidden" name="o_cp_prc[]" value="<?php echo $dc; ?>">
|
||||
<input type="hidden" name="o_cp_subj[]" value="<?php echo $row['cp_subject']; ?>">
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td class="td_bignum"><?php echo number_format($dc); ?></td>
|
||||
<td class="td_smallmng"><button type="button" class="od_cp_apply btn_frmline">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
echo '<p>사용할 수 있는 쿠폰이 없습니다.</p>';
|
||||
|
||||
@ -166,183 +166,186 @@ function get_intall_file()
|
||||
<div id="sod_frm">
|
||||
<!-- 주문상품 확인 시작 { -->
|
||||
<p>주문하실 상품을 확인하세요.</p>
|
||||
<table id="sod_list" 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
|
||||
$tot_point = 0;
|
||||
$tot_sell_price = 0;
|
||||
|
||||
$goods = $goods_it_id = "";
|
||||
$goods_count = -1;
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table id="sod_list">
|
||||
<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
|
||||
$tot_point = 0;
|
||||
$tot_sell_price = 0;
|
||||
|
||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
a.ct_send_cost,
|
||||
b.ca_id,
|
||||
b.ca_id2,
|
||||
b.ca_id3,
|
||||
b.it_notax
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id'
|
||||
and a.ct_select = '1' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
$sql .= " order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
$goods = $goods_it_id = "";
|
||||
$goods_count = -1;
|
||||
|
||||
$good_info = '';
|
||||
$it_send_cost = 0;
|
||||
$it_cp_count = 0;
|
||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
a.ct_send_cost,
|
||||
b.ca_id,
|
||||
b.ca_id2,
|
||||
b.ca_id3,
|
||||
b.it_notax
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id'
|
||||
and a.ct_select = '1' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
$sql .= " order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$comm_tax_mny = 0; // 과세금액
|
||||
$comm_vat_mny = 0; // 부가세
|
||||
$comm_free_mny = 0; // 면세금액
|
||||
$tot_tax_mny = 0;
|
||||
$good_info = '';
|
||||
$it_send_cost = 0;
|
||||
$it_cp_count = 0;
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
$comm_tax_mny = 0; // 과세금액
|
||||
$comm_vat_mny = 0; // 부가세
|
||||
$comm_free_mny = 0; // 면세금액
|
||||
$tot_tax_mny = 0;
|
||||
|
||||
if (!$goods)
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
//$goods = addslashes($row[it_name]);
|
||||
//$goods = get_text($row[it_name]);
|
||||
$goods = preg_replace("/\'|\"|\||\,|\&|\;/", "", $row['it_name']);
|
||||
$goods_it_id = $row['it_id'];
|
||||
}
|
||||
$goods_count++;
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
// 에스크로 상품정보
|
||||
if($default['de_escrow_use']) {
|
||||
if ($i>0)
|
||||
$good_info .= chr(30);
|
||||
$good_info .= "seq=".($i+1).chr(31);
|
||||
$good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31);
|
||||
$good_info .= "good_name=".addslashes($row['it_name']).chr(31);
|
||||
$good_info .= "good_cntx=".$row['ct_qty'].chr(31);
|
||||
$good_info .= "good_amtx=".$row['ct_price'].chr(31);
|
||||
if (!$goods)
|
||||
{
|
||||
//$goods = addslashes($row[it_name]);
|
||||
//$goods = get_text($row[it_name]);
|
||||
$goods = preg_replace("/\'|\"|\||\,|\&|\;/", "", $row['it_name']);
|
||||
$goods_it_id = $row['it_id'];
|
||||
}
|
||||
$goods_count++;
|
||||
|
||||
// 에스크로 상품정보
|
||||
if($default['de_escrow_use']) {
|
||||
if ($i>0)
|
||||
$good_info .= chr(30);
|
||||
$good_info .= "seq=".($i+1).chr(31);
|
||||
$good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31);
|
||||
$good_info .= "good_name=".addslashes($row['it_name']).chr(31);
|
||||
$good_info .= "good_cntx=".$row['ct_qty'].chr(31);
|
||||
$good_info .= "good_amtx=".$row['ct_price'].chr(31);
|
||||
}
|
||||
|
||||
$image = get_it_image($row['it_id'], 50, 50);
|
||||
|
||||
$it_name = '<b>' . stripslashes($row['it_name']) . '</b>';
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
|
||||
}
|
||||
|
||||
// 복합과세금액
|
||||
if($default['de_tax_flag_use']) {
|
||||
if($row['it_notax']) {
|
||||
$comm_free_mny += $sum['price'];
|
||||
} else {
|
||||
$tot_tax_mny += $sum['price'];
|
||||
}
|
||||
}
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
|
||||
// 쿠폰
|
||||
if($is_member) {
|
||||
$cp_button = '';
|
||||
$cp_count = 0;
|
||||
|
||||
$sql = " select cp_id
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$sell_price'
|
||||
and (
|
||||
( cp_method = '0' and cp_target = '{$row['it_id']}' )
|
||||
OR
|
||||
( cp_method = '1' and ( cp_target IN ( '{$row['ca_id']}', '{$row['ca_id2']}', '{$row['ca_id3']}' ) ) )
|
||||
) ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
if(is_used_coupon($member['mb_id'], $cp['cp_id']))
|
||||
continue;
|
||||
|
||||
$cp_count++;
|
||||
}
|
||||
|
||||
if($cp_count) {
|
||||
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
|
||||
$it_cp_count++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="sod_bsk_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<input type="hidden" name="it_price[<?php echo $i; ?>]" value="<?php echo $sell_price; ?>">
|
||||
<input type="hidden" name="cp_id[<?php echo $i; ?>]" value="">
|
||||
<input type="hidden" name="cp_price[<?php echo $i; ?>]" value="0">
|
||||
<?php if($default['de_tax_flag_use']) { ?>
|
||||
<input type="hidden" name="it_notax[<?php echo $i; ?>]" value="<?php echo $row['it_notax']; ?>">
|
||||
<?php } ?>
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_mngsmall"><?php echo $cp_button; ?></td>
|
||||
<td class="td_numbig"><span class="ct_sell_price"><?php echo number_format($sell_price); ?></span></td>
|
||||
<td class="td_numbig"><?php echo number_format($point); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$tot_sell_price += $sell_price;
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
//echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($s_cart_id);
|
||||
}
|
||||
|
||||
$image = get_it_image($row['it_id'], 50, 50);
|
||||
|
||||
$it_name = '<b>' . stripslashes($row['it_name']) . '</b>';
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
|
||||
}
|
||||
|
||||
// 복합과세금액
|
||||
// 복합과세처리
|
||||
if($default['de_tax_flag_use']) {
|
||||
if($row['it_notax']) {
|
||||
$comm_free_mny += $sum['price'];
|
||||
} else {
|
||||
$tot_tax_mny += $sum['price'];
|
||||
}
|
||||
$comm_tax_mny = round(($tot_tax_mny + $send_cost) / 1.1);
|
||||
$comm_vat_mny = ($tot_tax_mny + $send_cost) - $comm_tax_mny;
|
||||
}
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
|
||||
// 쿠폰
|
||||
if($is_member) {
|
||||
$cp_button = '';
|
||||
$cp_count = 0;
|
||||
|
||||
$sql = " select cp_id
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$sell_price'
|
||||
and (
|
||||
( cp_method = '0' and cp_target = '{$row['it_id']}' )
|
||||
OR
|
||||
( cp_method = '1' and ( cp_target IN ( '{$row['ca_id']}', '{$row['ca_id2']}', '{$row['ca_id3']}' ) ) )
|
||||
) ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
if(is_used_coupon($member['mb_id'], $cp['cp_id']))
|
||||
continue;
|
||||
|
||||
$cp_count++;
|
||||
}
|
||||
|
||||
if($cp_count) {
|
||||
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
|
||||
$it_cp_count++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="sod_bsk_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<input type="hidden" name="it_price[<?php echo $i; ?>]" value="<?php echo $sell_price; ?>">
|
||||
<input type="hidden" name="cp_id[<?php echo $i; ?>]" value="">
|
||||
<input type="hidden" name="cp_price[<?php echo $i; ?>]" value="0">
|
||||
<?php if($default['de_tax_flag_use']) { ?>
|
||||
<input type="hidden" name="it_notax[<?php echo $i; ?>]" value="<?php echo $row['it_notax']; ?>">
|
||||
<?php } ?>
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_smallmng"><?php echo $cp_button; ?></td>
|
||||
<td class="td_bignum"><span class="ct_sell_price"><?php echo number_format($sell_price); ?></span></td>
|
||||
<td class="td_bignum"><?php echo number_format($point); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$tot_sell_price += $sell_price;
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
//echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($s_cart_id);
|
||||
}
|
||||
|
||||
// 복합과세처리
|
||||
if($default['de_tax_flag_use']) {
|
||||
$comm_tax_mny = round(($tot_tax_mny + $send_cost) / 1.1);
|
||||
$comm_vat_mny = ($tot_tax_mny + $send_cost) - $comm_tax_mny;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php if ($goods_count) $goods .= ' 외 '.$goods_count.'건'; ?>
|
||||
<!-- } 주문상품 확인 끝 -->
|
||||
@ -615,77 +618,79 @@ function get_intall_file()
|
||||
<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>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<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>
|
||||
<span class="frm_info">영,숫자 3~20자 (주문서 조회시 필요)</span>
|
||||
<input type="password" name="od_pwd" id="od_pwd" required class="frm_input required" maxlength="20">
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (!$is_member) { // 비회원이면 ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="od_pwd">비밀번호</label></th>
|
||||
<td>
|
||||
<span class="frm_info">영,숫자 3~20자 (주문서 조회시 필요)</span>
|
||||
<input type="password" name="od_pwd" id="od_pwd" required class="frm_input required" maxlength="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 = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_zip1&frm_zip2=od_zip2&frm_addr1=od_addr1&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>
|
||||
<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 = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_zip1&frm_zip2=od_zip2&frm_addr1=od_addr1&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="3" 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="3" 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> -->
|
||||
<input type="text" name="od_hope_date" value="" id="od_hope_date" required class="frm_input required" size="11" maxlength="10" readonly="readonly"> 이후로 배송 바랍니다.
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?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> -->
|
||||
<input type="text" name="od_hope_date" value="" id="od_hope_date" required class="frm_input required" size="11" maxlength="10" readonly="readonly"> 이후로 배송 바랍니다.
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 주문하시는 분 입력 끝 -->
|
||||
|
||||
@ -693,105 +698,107 @@ function get_intall_file()
|
||||
<section id="sod_frm_taker">
|
||||
<h2>받으시는 분</h2>
|
||||
|
||||
<table class="frm_tbl">
|
||||
<tbody>
|
||||
<?php
|
||||
if($is_member) {
|
||||
// 배송지 이력
|
||||
$addr_list = '';
|
||||
$sep = chr(30);
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php
|
||||
if($is_member) {
|
||||
// 배송지 이력
|
||||
$addr_list = '';
|
||||
$sep = chr(30);
|
||||
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_same">주문자와 동일</label>'.PHP_EOL;
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_same">주문자와 동일</label>'.PHP_EOL;
|
||||
|
||||
// 기본배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
if($row['ad_id']) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.$val1.'" id="ad_sel_addr_def">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
|
||||
// 기본배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
if($row['ad_id']) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.$val1.'" id="ad_sel_addr_def">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
|
||||
}
|
||||
|
||||
// 최근배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '0'
|
||||
order by ad_id desc
|
||||
limit 2 ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근배송지('.($row['ad_subject'] ? $row['ad_subject'] : $row['ad_name']).')</label>';
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.$val1.'" id="ad_sel_addr_'.($i+1).'"> '.PHP_EOL.$val2.PHP_EOL;
|
||||
}
|
||||
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="new" id="od_sel_addr_new">'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규배송지</label>'.PHP_EOL;
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">배송지선택</th>
|
||||
<td>
|
||||
<?php echo $addr_list; ?>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ad_subject">배송지명</label></th>
|
||||
<td>
|
||||
<input type="text" name="ad_subject" id="ad_subject" class="frm_input" maxlength="20">
|
||||
<input type="checkbox" name="ad_default" id="ad_default" value="1">
|
||||
<label for="ad_default">기본배송지로 설정</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 최근배송지
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '0'
|
||||
order by ad_id desc
|
||||
limit 2 ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근배송지('.($row['ad_subject'] ? $row['ad_subject'] : $row['ad_name']).')</label>';
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="'.$val1.'" id="ad_sel_addr_'.($i+1).'"> '.PHP_EOL.$val2.PHP_EOL;
|
||||
}
|
||||
|
||||
$addr_list .= '<input type="radio" name="ad_sel_addr" value="new" id="od_sel_addr_new">'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규배송지</label>'.PHP_EOL;
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">배송지선택</th>
|
||||
<td>
|
||||
<?php echo $addr_list; ?>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ad_subject">배송지명</label></th>
|
||||
<td>
|
||||
<input type="text" name="ad_subject" id="ad_subject" class="frm_input" maxlength="20">
|
||||
<input type="checkbox" name="ad_default" id="ad_default" value="1">
|
||||
<label for="ad_default">기본배송지로 설정</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<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 = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_b_zip1&frm_zip2=od_b_zip2&frm_addr1=od_b_addr1&frm_addr2=od_b_addr2'; ?>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td id="sod_frm_addr">
|
||||
<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="3" 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="3" 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>
|
||||
?>
|
||||
<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 = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_b_zip1&frm_zip2=od_b_zip2&frm_addr1=od_b_addr1&frm_addr2=od_b_addr2'; ?>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td id="sod_frm_addr">
|
||||
<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="3" 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="3" 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>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 받으시는 분 입력 끝 -->
|
||||
|
||||
@ -838,44 +845,46 @@ function get_intall_file()
|
||||
<section id="sod_frm_pay">
|
||||
<h2>결제정보</h2>
|
||||
|
||||
<table class="frm_tbl">
|
||||
<tbody>
|
||||
<?php if($oc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">주문할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="od_cp_id" value="">
|
||||
<button type="button" id="od_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문할인금액</th>
|
||||
<td><span id="od_cp_price">0</span>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if($sc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">배송비할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="sc_cp_id" value="">
|
||||
<button type="button" id="sc_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송비할인금액</th>
|
||||
<td><span id="sc_cp_price">0</span>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th>총 주문금액</th>
|
||||
<td><span id="od_tot_price"><?php echo number_format($tot_price); ?></span>원</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>추가배송비</th>
|
||||
<td><span id="od_send_cost2">0</span>원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if($oc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">주문할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="od_cp_id" value="">
|
||||
<button type="button" id="od_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문할인금액</th>
|
||||
<td><span id="od_cp_price">0</span>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if($sc_cnt > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row">배송비할인쿠폰</th>
|
||||
<td>
|
||||
<input type="hidden" name="sc_cp_id" value="">
|
||||
<button type="button" id="sc_coupon_btn" class="btn_frmline">쿠폰적용</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송비할인금액</th>
|
||||
<td><span id="sc_cp_price">0</span>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th>총 주문금액</th>
|
||||
<td><span id="od_tot_price"><?php echo number_format($tot_price); ?></span>원</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>추가배송비</th>
|
||||
<td><span id="od_send_cost2">0</span>원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if (!$default['de_card_point'])
|
||||
|
||||
@ -264,12 +264,12 @@ if ($od_temp_point)
|
||||
|
||||
$i_price = $i_price + $i_send_cost + $i_send_cost2 - $i_temp_point - $i_send_coupon;
|
||||
|
||||
$od_status = '주문';
|
||||
if ($od_settle_case == "무통장")
|
||||
{
|
||||
$od_receipt_point = $i_temp_point;
|
||||
$od_receipt_price = 0;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '주문';
|
||||
}
|
||||
else if ($od_settle_case == "계좌이체")
|
||||
{
|
||||
@ -285,7 +285,8 @@ else if ($od_settle_case == "계좌이체")
|
||||
$od_bank_account = $bank_name;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '입금';
|
||||
if($od_misu == 0)
|
||||
$od_status = '입금';
|
||||
}
|
||||
else if ($od_settle_case == "가상계좌")
|
||||
{
|
||||
@ -300,7 +301,6 @@ else if ($od_settle_case == "가상계좌")
|
||||
$od_deposit_name = $depositor;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '주문';
|
||||
}
|
||||
else if ($od_settle_case == "휴대폰")
|
||||
{
|
||||
@ -313,7 +313,8 @@ else if ($od_settle_case == "휴대폰")
|
||||
$od_bank_account = $commid.' '.$mobile_no;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '입금';
|
||||
if($od_misu == 0)
|
||||
$od_status = '입금';
|
||||
}
|
||||
else if ($od_settle_case == "신용카드")
|
||||
{
|
||||
@ -328,7 +329,8 @@ else if ($od_settle_case == "신용카드")
|
||||
$od_bank_account = $card_name;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = '입금';
|
||||
if($od_misu == 0)
|
||||
$od_status = '입금';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -431,15 +433,16 @@ if(!$result) {
|
||||
die_utf8('<p>고객님의 주문 정보를 처리하는 중 오류가 발생해서 주문이 완료되지 않았습니다.</p><p>KCP를 이용한 전자결제(신용카드, 계좌이체, 가상계좌 등)은 자동 취소되었습니다.');
|
||||
}
|
||||
|
||||
// 장바구니 쇼핑에서 주문으로
|
||||
// 장바구니 상태변경
|
||||
// 신용카드로 주문하면서 신용카드 포인트 사용하지 않는다면 포인트 부여하지 않음
|
||||
$cart_status = $od_status;
|
||||
$sql_card_point = "";
|
||||
if ($od_receipt_price > 0 && !$default['de_card_point']) {
|
||||
$sql_card_point = " , ct_point = '0' ";
|
||||
}
|
||||
$sql = "update {$g5['g5_shop_cart_table']}
|
||||
set od_id = '$od_id',
|
||||
ct_status = '주문'
|
||||
ct_status = '$cart_status'
|
||||
$sql_card_point
|
||||
where od_id = '$tmp_cart_id'
|
||||
and ct_select = '1' ";
|
||||
|
||||
@ -7,51 +7,53 @@ 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>
|
||||
<th scope="col">미입금액</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *,
|
||||
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
|
||||
from {$g5['g5_shop_order_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by od_id desc
|
||||
$limit ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
?>
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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
|
||||
$sql = " select *,
|
||||
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
|
||||
from {$g5['g5_shop_order_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by od_id desc
|
||||
$limit ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uid=<?php echo $uid; ?>"><?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_num"><?php echo $row['od_cart_count']; ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['couponprice']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['od_misu']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uid=<?php echo $uid; ?>"><?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_num"><?php echo $row['od_cart_count']; ?></td>
|
||||
<td class="td_numbig"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
|
||||
<td class="td_numbig"><?php echo display_price($row['couponprice']); ?></td>
|
||||
<td class="td_numbig"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
<td class="td_numbig"><?php echo display_price($row['od_misu']); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="7" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="7" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- } 주문 내역 목록 끝 -->
|
||||
@ -76,57 +76,59 @@ if(openwin != null) {
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
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();
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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 ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
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'];
|
||||
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_price = $opt_price * $opt['ct_qty'];
|
||||
$point = $opt['ct_point'] * $opt['ct_qty'];
|
||||
$sell_price = $opt_price * $opt['ct_qty'];
|
||||
$point = $opt['ct_point'] * $opt['ct_qty'];
|
||||
|
||||
$ct_list[$opt['ct_id']]['name'] = $opt['it_name'];
|
||||
$ct_list[$opt['ct_id']]['option'] = $opt['ct_option'];
|
||||
?>
|
||||
<tr>
|
||||
<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_price); ?></td>
|
||||
<td class="td_num"><?php echo number_format($point); ?></td>
|
||||
<td class="td_smallmng"><?php echo $opt['ct_status']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$ct_list[$opt['ct_id']]['name'] = $opt['it_name'];
|
||||
$ct_list[$opt['ct_id']]['option'] = $opt['ct_option'];
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $opt['ct_option']; ?></td>
|
||||
<td class="td_mngsmall"><?php echo number_format($opt['ct_qty']); ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($opt_price); ?></td>
|
||||
<td class="td_num"><?php echo number_format($sell_price); ?></td>
|
||||
<td class="td_num"><?php echo number_format($point); ?></td>
|
||||
<td class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
|
||||
$st_count1++;
|
||||
if($opt['ct_status'] == '주문')
|
||||
$st_count2++;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
$st_count1++;
|
||||
if($opt['ct_status'] == '주문')
|
||||
$st_count2++;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
@ -226,7 +228,8 @@ if(openwin != null) {
|
||||
<section id="sod_fin_pay">
|
||||
<h3>결제정보</h3>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
@ -364,131 +367,140 @@ if(openwin != null) {
|
||||
|
||||
<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) %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>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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) %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>
|
||||
</div>
|
||||
</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) %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>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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) %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>
|
||||
</div>
|
||||
</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 {$g5['g5_shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
|
||||
if ($od['od_invoice'] || !$od['misu'])
|
||||
{
|
||||
if (is_array($dl))
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<?php
|
||||
// 배송회사 정보
|
||||
$dl = sql_fetch(" select * from {$g5['g5_shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
|
||||
if ($od['od_invoice'] || !$od['misu'])
|
||||
{
|
||||
// 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
|
||||
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
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td class="empty_table">아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
@ -42,47 +42,49 @@ $count = mysql_num_rows($result);
|
||||
<!-- 쿠폰 선택 시작 { -->
|
||||
<div id="it_coupon_frm">
|
||||
<?php if($count > 0) { ?>
|
||||
<table class="basic_tbl">
|
||||
<caption>쿠폰 선택</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">적용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 사용한 쿠폰인지 체크
|
||||
if(is_used_coupon($member['mb_id'], $row['cp_id']))
|
||||
continue;
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>쿠폰 선택</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">적용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 사용한 쿠폰인지 체크
|
||||
if(is_used_coupon($member['mb_id'], $row['cp_id']))
|
||||
continue;
|
||||
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($item_price * ($row['cp_price'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_price'];
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($item_price * ($row['cp_price'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_price'];
|
||||
}
|
||||
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="f_cp_id[]" value="<?php echo $row['cp_id']; ?>">
|
||||
<input type="hidden" name="f_cp_prc[]" value="<?php echo $dc; ?>">
|
||||
<input type="hidden" name="f_cp_subj[]" value="<?php echo $row['cp_subject']; ?>">
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td class="td_numbig"><?php echo number_format($dc); ?></td>
|
||||
<td class="td_mngsmall"><button type="button" class="cp_apply btn_frmline">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="f_cp_id[]" value="<?php echo $row['cp_id']; ?>">
|
||||
<input type="hidden" name="f_cp_prc[]" value="<?php echo $dc; ?>">
|
||||
<input type="hidden" name="f_cp_subj[]" value="<?php echo $row['cp_subject']; ?>">
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td class="td_bignum"><?php echo number_format($dc); ?></td>
|
||||
<td class="td_smallmng"><button type="button" class="cp_apply btn_frmline">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
echo '<p>사용할 수 있는 쿠폰이 없습니다.</p>';
|
||||
|
||||
@ -22,50 +22,52 @@ $count = mysql_num_rows($result);
|
||||
<!-- 쿠폰선택 시작 { -->
|
||||
<div id="sc_coupon_frm">
|
||||
<?php if($count > 0) { ?>
|
||||
<table class="basic_tbl">
|
||||
<caption>쿠폰 선택</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">적용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 사용한 쿠폰인지 체크
|
||||
if(is_used_coupon($member['mb_id'], $row['cp_id']))
|
||||
continue;
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>쿠폰 선택</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">적용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 사용한 쿠폰인지 체크
|
||||
if(is_used_coupon($member['mb_id'], $row['cp_id']))
|
||||
continue;
|
||||
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($send_cost * ($row['cp_price'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_price'];
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($send_cost * ($row['cp_price'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_price'];
|
||||
}
|
||||
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
|
||||
if($dc > $send_cost)
|
||||
$dc = $send_cost;
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="s_cp_id[]" value="<?php echo $row['cp_id']; ?>">
|
||||
<input type="hidden" name="s_cp_prc[]" value="<?php echo $dc; ?>">
|
||||
<input type="hidden" name="s_cp_subj[]" value="<?php echo $row['cp_subject']; ?>">
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td class="td_numbig"><?php echo number_format($dc); ?></td>
|
||||
<td class="td_mngsmall"><button type="button" class="sc_cp_apply btn_frmline">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
|
||||
if($dc > $send_cost)
|
||||
$dc = $send_cost;
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="s_cp_id[]" value="<?php echo $row['cp_id']; ?>">
|
||||
<input type="hidden" name="s_cp_prc[]" value="<?php echo $dc; ?>">
|
||||
<input type="hidden" name="s_cp_subj[]" value="<?php echo $row['cp_subject']; ?>">
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td class="td_bignum"><?php echo number_format($dc); ?></td>
|
||||
<td class="td_smallmng"><button type="button" class="sc_cp_apply btn_frmline">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
echo '<p>사용할 수 있는 쿠폰이 없습니다.</p>';
|
||||
|
||||
@ -347,26 +347,28 @@ function get_intall_file()
|
||||
<section id="sod_frm_pay">
|
||||
<h2>개인결제정보</h2>
|
||||
|
||||
<table class="frm_tbl">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>결제금액</th>
|
||||
<td><?php echo display_price($pp['pp_price']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_name">이름</label></th>
|
||||
<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_email">이메일</label></th>
|
||||
<td><input type="text" name="pp_email" value="<?php echo $member['mb_email']; ?>" id="pp_email" required class="required frm_input"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_hp">휴대폰</label></th>
|
||||
<td><input type="text" name="pp_hp" value="<?php echo $member['mb_hp']; ?>" id="pp_hp" class="frm_input"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>결제금액</th>
|
||||
<td><?php echo display_price($pp['pp_price']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_name">이름</label></th>
|
||||
<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_email">이메일</label></th>
|
||||
<td><input type="text" name="pp_email" value="<?php echo $member['mb_email']; ?>" id="pp_email" required class="required frm_input"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_hp">휴대폰</label></th>
|
||||
<td><input type="text" name="pp_hp" value="<?php echo $member['mb_hp']; ?>" id="pp_hp" class="frm_input"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if (!$default['de_card_point'])
|
||||
|
||||
@ -75,88 +75,90 @@ if(openwin != null) {
|
||||
<section id="sod_fin_pay">
|
||||
<h3>결제정보</h3>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<?php if($pp['od_id']) { ?>
|
||||
<tr>
|
||||
<th scope="row">주문번호</th>
|
||||
<td><?php echo $pp['od_id']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th scope="row">결제방식</th>
|
||||
<td><?php echo $pp['pp_settle_case']; ?></td>
|
||||
</tr>
|
||||
<?php if($pp_receipt_price) { ?>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo $pp_receipt_price; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제일시</th>
|
||||
<td><?php echo is_null_time($pp['pp_receipt_time']) ? $pp['pp_receipt_time'] : ''; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<?php if($pp['od_id']) { ?>
|
||||
<tr>
|
||||
<th scope="row">주문번호</th>
|
||||
<td><?php echo $pp['od_id']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th scope="row">결제방식</th>
|
||||
<td><?php echo $pp['pp_settle_case']; ?></td>
|
||||
</tr>
|
||||
<?php if($pp_receipt_price) { ?>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo $pp_receipt_price; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제일시</th>
|
||||
<td><?php echo is_null_time($pp['pp_receipt_time']) ? $pp['pp_receipt_time'] : ''; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 승인번호, 휴대폰번호, KCP 거래번호
|
||||
if($app_no_subj)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php echo $app_no_subj; ?></th>
|
||||
<td><?php echo $app_no; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
// 승인번호, 휴대폰번호, KCP 거래번호
|
||||
if($app_no_subj)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php echo $app_no_subj; ?></th>
|
||||
<td><?php echo $app_no; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 계좌정보
|
||||
if($disp_bank)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">입금자명</th>
|
||||
<td><?php echo $pp['pp_deposit_name']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">입금계좌</th>
|
||||
<td><?php echo $pp['pp_bank_account']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
// 계좌정보
|
||||
if($disp_bank)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">입금자명</th>
|
||||
<td><?php echo $pp['pp_deposit_name']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">입금계좌</th>
|
||||
<td><?php echo $pp['pp_bank_account']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($disp_receipt) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">영수증</th>
|
||||
<td>
|
||||
<?php
|
||||
if($pp['pp_settle_case'] == '휴대폰')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no=<?php echo $pp['pp_tno']; ?>', 'winreceipt', 'width=500,height=690')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
if($disp_receipt) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">영수증</th>
|
||||
<td>
|
||||
<?php
|
||||
if($pp['pp_settle_case'] == '휴대폰')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no=<?php echo $pp['pp_tno']; ?>', 'winreceipt', 'width=500,height=690')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($pp['pp_settle_case'] == '신용카드')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=<?php echo $pp['pp_tno']; ?>', 'winreceipt', 'width=620,height=800')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
if($pp['pp_settle_case'] == '신용카드')
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=<?php echo $pp['pp_tno']; ?>', 'winreceipt', 'width=620,height=800')">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
@ -104,44 +104,46 @@ $total_count = $row['cnt'];
|
||||
$ca_temp = '<a href="./list.php?ca_id='.substr($save['ca_id'],0,2).'">'.$row2['ca_name'].'</a> > ';
|
||||
}
|
||||
?>
|
||||
<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>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</td>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">판매가격</td>
|
||||
<th scope="col">포인트</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<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>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</td>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">판매가격</td>
|
||||
<th scope="col">포인트</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $i<$save['cnt']; $i++) {
|
||||
$sql = " select it_id,
|
||||
it_name,
|
||||
it_price,
|
||||
it_tel_inq,
|
||||
it_point,
|
||||
it_type1,
|
||||
it_type2,
|
||||
it_type3,
|
||||
it_type4,
|
||||
it_type5
|
||||
from {$g5['g5_shop_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
$row = sql_fetch($sql);
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $i<$save['cnt']; $i++) {
|
||||
$sql = " select it_id,
|
||||
it_name,
|
||||
it_price,
|
||||
it_tel_inq,
|
||||
it_point,
|
||||
it_type1,
|
||||
it_type2,
|
||||
it_type3,
|
||||
it_type4,
|
||||
it_type5
|
||||
from {$g5['g5_shop_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$image = get_it_image($row['it_id'], (int)($default['de_simg_width']), (int)($default['de_simg_height']), true);
|
||||
?>
|
||||
<tr>
|
||||
<td class="ssch_it_img"><?php echo $image; ?></td>
|
||||
<td><?php echo get_text($row['it_name']); ?></td>
|
||||
<td class="ssch_num"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></td>
|
||||
<td class="ssch_num"><?php echo display_point($row['it_point']); ?></td>
|
||||
</tr>
|
||||
<?php } // for 끝 ?>
|
||||
</tbody>
|
||||
</table>
|
||||
$image = get_it_image($row['it_id'], (int)($default['de_simg_width']), (int)($default['de_simg_height']), true);
|
||||
?>
|
||||
<tr>
|
||||
<td class="ssch_it_img"><?php echo $image; ?></td>
|
||||
<td><?php echo get_text($row['it_name']); ?></td>
|
||||
<td class="ssch_num"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></td>
|
||||
<td class="ssch_num"><?php echo display_point($row['it_point']); ?></td>
|
||||
</tr>
|
||||
<?php } // for 끝 ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php } // function 끝 ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -159,7 +159,6 @@ if(!$default['de_card_test']) {
|
||||
$sql = " update {$g5['g5_shop_order_table']}
|
||||
set od_receipt_price = od_receipt_price + '$ipgm_mnyx',
|
||||
od_receipt_time = '$tx_tm',
|
||||
od_status = '입금',
|
||||
od_shop_memo = concat(od_shop_memo, \"\\n개인결제 ".$row['pp_id']." 로 결제완료 - ".$receipt_time."\")
|
||||
where od_id = '{$row['od_id']}' ";
|
||||
$result = sql_query($sql, FALSE);
|
||||
@ -168,8 +167,7 @@ if(!$default['de_card_test']) {
|
||||
// 주문서 UPDATE
|
||||
$sql = " update {$g5['g5_shop_order_table']}
|
||||
set od_receipt_price = '$ipgm_mnyx',
|
||||
od_receipt_time = '$tx_tm',
|
||||
od_status = '입금'
|
||||
od_receipt_time = '$tx_tm'
|
||||
where od_id = '$order_no'
|
||||
and od_tno = '$tno' ";
|
||||
$result = sql_query($sql, FALSE);
|
||||
@ -191,6 +189,14 @@ if(!$default['de_card_test']) {
|
||||
$sql .= " , od_status = '입금' ";
|
||||
$sql .= " where od_id = '$od_id' ";
|
||||
sql_query($sql, FALSE);
|
||||
|
||||
// 장바구니 상태변경
|
||||
if($info['od_misu'] == 0) {
|
||||
$sql = " update {$g5['g5_shop_cart_table']}
|
||||
set ct_status = '입금'
|
||||
where od_id = '$od_id' ";
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
|
||||
@ -137,34 +137,36 @@ $amt_tax = (int)($amt_tot - $amt_sup);
|
||||
<section>
|
||||
<h2>주문정보</h2>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">주문 번호</th>
|
||||
<td><?php echo $od['od_id']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">상품 정보</th>
|
||||
<td><?php echo $goods_name; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문자 이름</th>
|
||||
<td><?php echo $od['od_name']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문자 E-Mail</th>
|
||||
<td><?php echo $od['od_email']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문자 전화번호</th>
|
||||
<td><?php echo $od['od_tel']; ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">주문 번호</th>
|
||||
<td><?php echo $od['od_id']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">상품 정보</th>
|
||||
<td><?php echo $goods_name; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문자 이름</th>
|
||||
<td><?php echo $od['od_name']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문자 E-Mail</th>
|
||||
<td><?php echo $od['od_email']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문자 전화번호</th>
|
||||
<td><?php echo $od['od_tel']; ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
@ -184,52 +186,54 @@ $amt_tax = (int)($amt_tot - $amt_sup);
|
||||
<input type="hidden" name="amt_svc">
|
||||
<input type="hidden" name="amt_tax">
|
||||
|
||||
<table class="basic_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">원 거래 시각</th>
|
||||
<td><?php echo $trad_time; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">발행 용도</th>
|
||||
<td>
|
||||
<input type="radio" name="tr_code" value="0" onClick="jsf__chk_tr_code( this.form )" checked>소득공제용
|
||||
<input type="radio" name="tr_code" value="1" onClick="jsf__chk_tr_code( this.form )">지출증빙용
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<label for="id_info">
|
||||
<span id="span_tr_code_0" style="display:inline">주민(휴대폰)번호</span>
|
||||
<span id="span_tr_code_1" style="display:none">사업자번호</span>
|
||||
</label>
|
||||
</th>
|
||||
<td>
|
||||
<input type="text" name="id_info" id="id_info" class="frm_input" size="16" maxlength="13"> ("-" 생략)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">거래금액 총합</th>
|
||||
<td><?php echo number_format($amt_tot); ?>원</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">공급가액</th>
|
||||
<td><?php echo number_format($amt_sup); ?>원<!-- ((거래금액 총합 * 10) / 11) --></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">봉사료</th>
|
||||
<td><?php echo number_format($amt_svc); ?>원</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">부가가치세</th>
|
||||
<td><?php echo number_format($amt_tax); ?>원<!-- 거래금액 총합 - 공급가액 - 봉사료 --></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">원 거래 시각</th>
|
||||
<td><?php echo $trad_time; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">발행 용도</th>
|
||||
<td>
|
||||
<input type="radio" name="tr_code" value="0" onClick="jsf__chk_tr_code( this.form )" checked>소득공제용
|
||||
<input type="radio" name="tr_code" value="1" onClick="jsf__chk_tr_code( this.form )">지출증빙용
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<label for="id_info">
|
||||
<span id="span_tr_code_0" style="display:inline">주민(휴대폰)번호</span>
|
||||
<span id="span_tr_code_1" style="display:none">사업자번호</span>
|
||||
</label>
|
||||
</th>
|
||||
<td>
|
||||
<input type="text" name="id_info" id="id_info" class="frm_input" size="16" maxlength="13"> ("-" 생략)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">거래금액 총합</th>
|
||||
<td><?php echo number_format($amt_tot); ?>원</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">공급가액</th>
|
||||
<td><?php echo number_format($amt_sup); ?>원<!-- ((거래금액 총합 * 10) / 11) --></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">봉사료</th>
|
||||
<td><?php echo number_format($amt_svc); ?>원</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">부가가치세</th>
|
||||
<td><?php echo number_format($amt_tax); ?>원<!-- 거래금액 총합 - 공급가액 - 봉사료 --></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="scash_apply">
|
||||
<span id="show_pay_btn">
|
||||
|
||||
@ -21,68 +21,71 @@ include_once('./_head.php');
|
||||
<input type="hidden" name="sw_direct" value="">
|
||||
<input type="hidden" name="prog" value="wish">
|
||||
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select a.wi_id, a.wi_time, b.* from {$g5['g5_shop_wish_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) ";
|
||||
$sql .= " where a.mb_id = '{$member['mb_id']}' order by a.wi_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = mysql_fetch_array($result); $i++) {
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<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.wi_id, a.wi_time, b.* from {$g5['g5_shop_wish_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) ";
|
||||
$sql .= " where a.mb_id = '{$member['mb_id']}' order by a.wi_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = mysql_fetch_array($result); $i++) {
|
||||
|
||||
$out_cd = '';
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' ";
|
||||
$tmp = sql_fetch($sql);
|
||||
if($tmp['cnt'])
|
||||
$out_cd = 'no';
|
||||
$out_cd = '';
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' ";
|
||||
$tmp = sql_fetch($sql);
|
||||
if($tmp['cnt'])
|
||||
$out_cd = 'no';
|
||||
|
||||
$it_price = get_price($row);
|
||||
$it_price = get_price($row);
|
||||
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
$it_point = get_item_point($row);
|
||||
?>
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
$it_point = get_item_point($row);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<?php
|
||||
// 품절검사
|
||||
$it_stock_qty = get_it_stock_qty($row['it_id']);
|
||||
if($it_stock_qty <= 0)
|
||||
{
|
||||
?>
|
||||
품절
|
||||
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
||||
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||
<?php } ?>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
|
||||
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
|
||||
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
|
||||
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" 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 class="td_datetime"><?php echo $row['wi_time']; ?></td>
|
||||
<td class="td_smallmng"><a href="./wishupdate.php?w=d&wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<?php
|
||||
// 품절검사
|
||||
$it_stock_qty = get_it_stock_qty($row['it_id']);
|
||||
if($it_stock_qty <= 0)
|
||||
{
|
||||
?>
|
||||
품절
|
||||
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
||||
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||
<?php } ?>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
|
||||
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
|
||||
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
|
||||
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" 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 class="td_datetime"><?php echo $row['wi_time']; ?></td>
|
||||
<td class="td_mngsmall"><a href="./wishupdate.php?w=d&wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="5" class="empty_table">보관함이 비었습니다.</td></tr>';
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="5" class="empty_table">보관함이 비었습니다.</td></tr>';
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="sod_ws_act">
|
||||
<button type="submit" class="btn01" onclick="return fwishlist_check(document.fwishlist,'');">장바구니 담기</button>
|
||||
|
||||
@ -53,7 +53,7 @@ if ($is_nogood) $colspan++;
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="sw" value="">
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
|
||||
<thead>
|
||||
@ -180,7 +180,7 @@ if ($is_nogood) $colspan++;
|
||||
<option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
|
||||
</select>
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required class="frm_input required" size="15" maxlength="15">
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required id="stx" class="frm_input required" size="15" maxlength="15">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
</fieldset>
|
||||
@ -223,6 +223,9 @@ function fboardlist_submit(f) {
|
||||
if(document.pressed == "선택삭제") {
|
||||
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다"))
|
||||
return false;
|
||||
|
||||
f.removeAttribute("target");
|
||||
f.action = "./board_list_update.php";
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@ -138,7 +138,7 @@
|
||||
|
||||
/* 게시판 쓰기 */
|
||||
#char_count_desc {display:block;margin:0 0 5px;padding:0}
|
||||
#char_count_wrp {margin:5px 0 0;text-align:right}
|
||||
#char_count_wrap {margin:5px 0 0;text-align:right}
|
||||
#char_count {font-weight:bold}
|
||||
|
||||
#autosave_wrapper {position:relative}
|
||||
|
||||
@ -101,7 +101,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="is_good" value="">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
|
||||
@ -53,7 +53,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
echo $option_hidden;
|
||||
?>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if ($is_name) { ?>
|
||||
@ -132,7 +132,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
|
||||
<?php if($write_min || $write_max) { ?>
|
||||
<!-- 최소/최대 글자 수 사용 시 -->
|
||||
<div id="char_count_wrp"><span id="char_count"></span>글자</div>
|
||||
<div id="char_count_wrap"><span id="char_count"></span>글자</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -174,7 +174,7 @@ include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
<option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
|
||||
</select>
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required class="frm_input required" size="15" maxlength="15">
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required id="stx" class="frm_input required" size="15" maxlength="15">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
</fieldset>
|
||||
@ -217,6 +217,9 @@ function fboardlist_submit(f) {
|
||||
if(document.pressed == "선택삭제") {
|
||||
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다"))
|
||||
return false;
|
||||
|
||||
f.removeAttribute("target");
|
||||
f.action = "./board_list_update.php";
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@ -131,7 +131,7 @@
|
||||
|
||||
/* 게시판 쓰기 */
|
||||
#char_count_desc {display:block;margin:0 0 5px;padding:0}
|
||||
#char_count_wrp {margin:5px 0 0;text-align:right}
|
||||
#char_count_wrap {margin:5px 0 0;text-align:right}
|
||||
#char_count {font-weight:bold}
|
||||
|
||||
#autosave_wrapper {position:relative}
|
||||
|
||||
@ -101,7 +101,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="is_good" value="">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
|
||||
@ -53,7 +53,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
echo $option_hidden;
|
||||
?>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if ($is_name) { ?>
|
||||
@ -132,7 +132,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
|
||||
<?php if($write_min || $write_max) { ?>
|
||||
<!-- 최소/최대 글자 수 사용 시 -->
|
||||
<div id="char_count_wrp"><span id="char_count"></span>글자</div>
|
||||
<div id="char_count_wrap"><span id="char_count"></span>글자</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<link rel="stylesheet" href="<?php echo $connect_skin_url ?>/style.css">
|
||||
|
||||
<!-- 현재접속자 목록 시작 { -->
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table id="current_connect_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@ -14,7 +14,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<li><a href="./memo_form.php">쪽지쓰기</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>
|
||||
전체 <?php echo $kind_title ?>쪽지 <?php echo $total_count ?>통<br>
|
||||
|
||||
@ -15,7 +15,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</ul>
|
||||
|
||||
<form name="fmemoform" action="<?php echo $memo_action_url; ?>" onsubmit="return fmemoform_submit(this);" method="post" autocomplete="off">
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>쪽지쓰기</caption>
|
||||
<tbody>
|
||||
|
||||
@ -8,7 +8,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<div id="profile" class="new_win mbskin">
|
||||
<h1 id="win_title"><?php echo $mb_nick ?>님의 프로필</h1>
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
@ -24,7 +24,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="mb_nick" value="<?php echo $member['mb_nick'] ?>">
|
||||
<?php } ?>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>사이트 이용정보 입력</caption>
|
||||
<tbody>
|
||||
@ -48,7 +48,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>개인정보 입력</caption>
|
||||
<tbody>
|
||||
@ -167,7 +167,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>기타 개인설정</caption>
|
||||
<tbody>
|
||||
|
||||
@ -8,7 +8,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<div id="scrap" class="new_win mbskin">
|
||||
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
||||
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>스크랩 목록</caption>
|
||||
<thead>
|
||||
|
||||
@ -12,7 +12,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>제목 확인 및 댓글 쓰기</caption>
|
||||
<tbody>
|
||||
|
||||
@ -33,7 +33,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<!-- } 전체게시물 검색 끝 -->
|
||||
|
||||
<!-- 전체게시물 목록 시작 { -->
|
||||
<div class="tbl_head01 tbl_wrp">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@ -63,7 +63,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<?php if ($is_member) { ?><input type="hidden" name="pc_name" value="<?php echo cut_str($member['mb_nick'],255) ?>"><?php } ?>
|
||||
<h3><?php echo $po_etc ?></h3>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrp">
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table id="poll_result_wcmt">
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
|
||||
@ -60,28 +60,31 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="po_id" value="<?php echo $po_id ?>">
|
||||
<input type="hidden" name="w" value="">
|
||||
<input type="hidden" name="skin_dir" value="<?php echo $skin_dir ?>">
|
||||
<?php if ($is_member) { ?><input type="hidden" name="pc_name" value="<?php echo cut_str($member['mb_nick'],255) ?>"><?php } ?>
|
||||
<?php if ($is_member) { ?><input type="hidden" name="pc_name" value="<?php echo cut_str($member['mb_nick'],255) ?>"><?php } ?>
|
||||
<h3><?php echo $po_etc ?></h3>
|
||||
<table id="poll_result_wcmt" class="frm_tbl">
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="pc_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="pc_name" id="pc_name" required class="frm_input required" size="10"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="pc_idea">의견<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" id="pc_idea" name="pc_idea" required class="frm_input required" size="47" maxlength="100"></td>
|
||||
</tr>
|
||||
<?php if ($is_guest) { ?>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td><?php echo captcha_html(); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table id="poll_result_wcmt">
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="pc_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="pc_name" id="pc_name" required class="frm_input required" size="10"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="pc_idea">의견<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" id="pc_idea" name="pc_idea" required class="frm_input required" size="47" maxlength="100"></td>
|
||||
</tr>
|
||||
<?php if ($is_guest) { ?>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td><?php echo captcha_html(); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" class="btn_submit" value="의견남기기">
|
||||
|
||||
@ -13,22 +13,24 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_subject">제목</label></th>
|
||||
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_question">질문</label></th>
|
||||
<td><?php echo editor_html('iq_question', get_text($qa['iq_question'])); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_subject">제목</label></th>
|
||||
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_question">질문</label></th>
|
||||
<td><?php echo editor_html('iq_question', get_text($qa['iq_question'])); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
|
||||
@ -13,54 +13,56 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="is_id" value="<?php echo $is_id; ?>">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="is_subject">제목</label></th>
|
||||
<td><input type="text" name="is_subject" value="<?php echo get_text($use['is_subject']); ?>" id="is_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
||||
<td><?php echo editor_html('is_content', get_text($use['is_content'])); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">평가</th>
|
||||
<td>
|
||||
<ul id="sit_use_write_star">
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
||||
<label for="is_score10">매우만족</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star5.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8">만족</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star4.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6">보통</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star3.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4">불만</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star2.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2">매우불만</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star1.png">
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="is_subject">제목</label></th>
|
||||
<td><input type="text" name="is_subject" value="<?php echo get_text($use['is_subject']); ?>" id="is_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
||||
<td><?php echo editor_html('is_content', get_text($use['is_content'])); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">평가</th>
|
||||
<td>
|
||||
<ul id="sit_use_write_star">
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
||||
<label for="is_score10">매우만족</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star5.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8">만족</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star4.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6">보통</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star3.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4">불만</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star2.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2">매우불만</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star1.png">
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
|
||||
Reference in New Issue
Block a user