사용하지 않는 메뉴 삭제
This commit is contained in:
@ -5,8 +5,6 @@ $menu['menu400'] = array (
|
||||
array('400000', '쇼핑몰관리', G5_ADMIN_URL.'/shop_admin/', 'shop_config'),
|
||||
array('400100', '쇼핑몰설정', G5_ADMIN_URL.'/shop_admin/configform.php', 'scf_config'),
|
||||
array('400400', '주문내역', G5_ADMIN_URL.'/shop_admin/orderlist.php', 'scf_order', 1),
|
||||
array('400410', '주문개별내역', G5_ADMIN_URL.'/shop_admin/orderstatuslist.php', 'scf_order_by', 1),
|
||||
array('400420', '주문통합내역', G5_ADMIN_URL.'/shop_admin/orderlist2.php', 'scf_order_all', 1),
|
||||
array('400440', '개인결제관리', G5_ADMIN_URL.'/shop_admin/personalpaylist.php', 'scf_personalpay', 1),
|
||||
array('400200', '분류관리', G5_ADMIN_URL.'/shop_admin/categorylist.php', 'scf_cate'),
|
||||
array('400300', '상품관리', G5_ADMIN_URL.'/shop_admin/itemlist.php', 'scf_item'),
|
||||
@ -16,7 +14,6 @@ $menu['menu400'] = array (
|
||||
array('400610', '상품유형관리', G5_ADMIN_URL.'/shop_admin/itemtypelist.php', 'scf_item_type'),
|
||||
array('400500', '상품옵션재고관리', G5_ADMIN_URL.'/shop_admin/optionstocklist.php', 'scf_item_option'),
|
||||
array('400650', '쿠폰관리', G5_ADMIN_URL.'/shop_admin/couponlist.php', 'scf_coupon'),
|
||||
array('400500', '배송일괄처리', G5_ADMIN_URL.'/shop_admin/deliverylist.php', 'scf_deli', 1),
|
||||
array('400750', '추가배송비관리', G5_ADMIN_URL.'/shop_admin/sendcostlist.php', 'scf_sendcost', 1)
|
||||
);
|
||||
?>
|
||||
@ -1,235 +0,0 @@
|
||||
<?php
|
||||
$sub_menu = '400500';
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
|
||||
$g5['title'] = '배송일괄처리';
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
//sql_query(" update {$g5['g5_shop_cart_table']} set ct_status = '완료' where ct_status = '배송' ");
|
||||
|
||||
// 배송회사리스트 ---------------------------------------------
|
||||
$delivery_options = '<option value="">선택하세요</option>'.PHP_EOL;
|
||||
$sql = " select * from {$g5['g5_shop_delivery_table']} order by dl_order ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$delivery_options .= '<option value="'.$row['dl_id'].'">'.$row['dl_company'].'</option>'.PHP_EOL;
|
||||
}
|
||||
// 배송회사리스트 end ---------------------------------------------
|
||||
|
||||
$where = " where ";
|
||||
$sql_search = "";
|
||||
if ($search != "") {
|
||||
if ($sel_field != "") {
|
||||
$sql_search .= " $where $sel_field like '%$search%' ";
|
||||
$where = " and ";
|
||||
}
|
||||
}
|
||||
|
||||
$sql_search .= " $where od_status in ('준비', '배송') ";
|
||||
|
||||
if ($sel_ca_id != "") {
|
||||
$sql_search .= " $where ca_id like '$sel_ca_id%' ";
|
||||
}
|
||||
|
||||
if ($sel_field == "") $sel_field = "od_id";
|
||||
|
||||
$sql_common = " from {$g5['g5_shop_order_table']} $sql_search ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
if ($chk_misu) {
|
||||
$sql = " select * $sql_common where od_misu <= 0 ";
|
||||
$result = sql_query($sql);
|
||||
$total_count = mysql_num_rows($result);
|
||||
}
|
||||
else {
|
||||
$row = sql_fetch("select count(od_id) as cnt from {$g5['g5_shop_order_table']} $sql_search ");
|
||||
$total_count = $row['cnt'];
|
||||
}
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
if (!$sort1) {
|
||||
$sort1 = "od_id";
|
||||
}
|
||||
|
||||
if (!$sort2) {
|
||||
$sort2 = "desc";
|
||||
}
|
||||
|
||||
if ($sort2 == "desc") {
|
||||
$unsort2 == "asc";
|
||||
} else {
|
||||
$unsort2 == "desc";
|
||||
}
|
||||
|
||||
$qstr1 = 'sel_ca_id='.$sel_ca_id.'&sel_field='.$sel_field.'&search='.$search.'&chk_misu='.$chk_misu;
|
||||
$qstr = $qstr1.'&sort1='.$sort1.'&sort2='.$sort2.'&page='.$page;
|
||||
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</a>';
|
||||
?>
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
<?php echo $listall; ?>
|
||||
전체 주문내역 <?php echo $total_count; ?>건
|
||||
</div>
|
||||
|
||||
<form name="flist" autocomplete="off" class="local_sch01 local_sch">
|
||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
||||
|
||||
<input type="checkbox" name="chk_misu" value="1" id="chk_misu" <?php echo $chk_misu?'checked="checked"':''; ?> />
|
||||
<label for="chk_misu">미수금없음</label>
|
||||
|
||||
<label for="sel_field" class="sound_only">검색대상</label>
|
||||
<select name="sel_field">
|
||||
<option value="od_id" <?php echo get_selected($sel_field, 'od_id'); ?>>주문번호</option>
|
||||
<option value="od_name" <?php echo get_selected($sel_field, 'od_name'); ?>>주문자</option>
|
||||
<option value="od_invoice" <?php echo get_selected($sel_field, 'od_invoice'); ?>>운송장번호</option>
|
||||
</select>
|
||||
|
||||
<label for="search" class="sound_only">검색어</label>
|
||||
<input type="text" name="search" value="<?php echo $search; ?>" id="search" class="frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
|
||||
<div class="local_desc01 local_desc">
|
||||
<ul>
|
||||
<li>주문액은 취소, 반품, 품절이 포함된 금액이 아닙니다.</li>
|
||||
<li>입금액은 환불/취소가 포함된 금액이 아닙니다.</li>
|
||||
<li>배송일시, 배송회사는 입력의 편의성을 위하여 기본값으로 설정되어 있습니다. 운송장번호만 없는것이 미배송 주문자료입니다.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<form name="fdeliverylist" method="post" onsubmit="return fdeliverylist_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="sel_ca_id" value="<?php echo $sel_ca_id; ?>">
|
||||
<input type="hidden" name="sel_field" value="<?php echo $sel_field; ?>">
|
||||
<input type="hidden" name="search" value="<?php echo $search; ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
||||
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption><?php echo $g5['title']; ?> 목록</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
<label for="chkall" class="sound_only">주문 전체</label>
|
||||
<input type="checkbox" name="chkall" value="1" id="chkall" onclick="check_all(this.form)">
|
||||
</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_id",1) . "&$qstr1"; ?>">주문번호</a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_name") . "&$qstr1"; ?>">주문자</a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_cart_price",1) . "&$qstr1"; ?>">주문액</a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_receipt_price",1) . "&$qstr1"; ?>">입금액</a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_misu",1) . "&$qstr1"; ?>">미수금</a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_hope_date",1) . "&$qstr1"; ?>">희망배송일</a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_invoice_time") . "&$qstr1"; ?>">배송일시</a></th>
|
||||
<th scope="col">배송업체</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_invoice", 1) . "&$qstr1"; ?>">운송장번호</a></th>
|
||||
<th scope="col">완료상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select * $sql_common ";
|
||||
if ($chk_misu)
|
||||
$sql .= " where od_misu <= 0 ";
|
||||
$sql .= " order by $sort1 $sort2
|
||||
limit $from_record, {$config['cf_page_rows']} ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$invoice_time = G5_TIME_YMDHIS;
|
||||
if (!is_null_time($row['od_invoice_time']))
|
||||
$invoice_time = $row['od_invoice_time'];
|
||||
|
||||
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
$name = get_sideview($row['mb_id'], $row['mb_name'], $row['mb_email'], $row['mb_homepage']);
|
||||
|
||||
if ($default['de_hope_date_use'])
|
||||
$hope_date = substr($row['od_hope_date'],2,8).' ('.get_yoil($row['od_hope_date']).')';
|
||||
else
|
||||
$hope_date = "사용안함";
|
||||
|
||||
$tr_bg = 'tr_bg'.($i%2);
|
||||
?>
|
||||
<tr class="<?php echo $tr_bg; ?>">
|
||||
<td>
|
||||
<input type="hidden" name="od_id[<?php echo $i ?>]" value="<?php echo $row['od_id'] ?>" id="od_id_<?php echo $i ?>">
|
||||
<label for="chk_<?php echo $i; ?>" class="sound_only">주문번호 <?php echo $row['od_id']; ?></label>
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
|
||||
</td>
|
||||
<td>
|
||||
<!-- <input type="hidden" name="od_id[<?php echo $i; ?>]" value="<?php echo $row['od_id']; ?>"> -->
|
||||
<input type="hidden" name="od_tno[<?php echo $i; ?>]" value="<?php echo $row['od_tno']; ?>">
|
||||
<input type="hidden" name="od_escrow[<?php echo $i; ?>]" value="<?php echo $row['od_escrow']; ?>">
|
||||
<a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td class="td_name"><?php echo $row['od_name']; ?></td>
|
||||
<td class="td_numsum"><?php echo display_price($row['od_cart_price']); ?></td>
|
||||
<td class="td_numincome"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
<td class="td_numrdy"><?php echo display_price($row['od_misu']); ?></td>
|
||||
<td class="td_mngsmall"><?php echo $hope_date; ?></td>
|
||||
<td class="td_datetime td_input"><input type="text" name="od_invoice_time[<?php echo $i; ?>]" value="<?php echo $invoice_time; ?>" class="frm_input" size="20" maxlength="19"></td>
|
||||
<td class="td_delicom">
|
||||
<label for="dl_id_<?php echo $i; ?>" class="sound_only">배송업체</label>
|
||||
<select name="dl_id[<?php echo $i; ?>]" id="dl_id_<?php echo $i; ?>">
|
||||
<?php echo conv_selected_option($delivery_options, $row['dl_id']); ?>
|
||||
</select>
|
||||
</td>
|
||||
<td class="td_input">
|
||||
<!-- 값이 바뀌었는지 비교하기 위하여 저장 -->
|
||||
<input type="hidden" name="save_dl_id[<?php echo $i; ?>]" value="<?php echo $row['dl_id']; ?>">
|
||||
<input type="hidden" name="save_od_invoice[<?php echo $i; ?>]" value="<?php echo $row['od_invoice']; ?>">
|
||||
<input type="text" name="od_invoice[<?php echo $i; ?>]" value="<?php echo $row['od_invoice']; ?>" class="frm_input" size="10">
|
||||
</td>
|
||||
<td><input type="checkbox" name="od_status" value="1"></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="11" class="empty_table">자료가 한건도 없습니다.</td></tr>';
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="local_cmd01 local_cmd">
|
||||
<input type="checkbox" name="od_send_mail" value="1" id="od_send_mail" checked>
|
||||
<label for="od_send_mail">메일발송</label>
|
||||
<input type="checkbox" name="send_sms" value="1" id="od_send_sms" checked>
|
||||
<label for="od_send_sms">SMS</label>
|
||||
<input type="checkbox" name="send_escrow" value="1" id="od_send_escrow">
|
||||
<label for="od_send_escrow">에스크로배송시작</label>
|
||||
</div>
|
||||
|
||||
<div class="btn_confirm01 btn_confirm">
|
||||
<input type="submit" value="선택수정" class="btn_submit" onclick="document.pressed=this.value">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
||||
|
||||
<script>
|
||||
function fdeliverylist_submit(f)
|
||||
{
|
||||
if (!is_checked("chk[]")) {
|
||||
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
f.action = "./deliverylistupdate.php";
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
@ -1,138 +0,0 @@
|
||||
<?php
|
||||
$sub_menu = '400500';
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
include_once(G5_LIB_PATH.'/icode.sms.lib.php');
|
||||
|
||||
check_demo();
|
||||
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
define("_ORDERMAIL_", true);
|
||||
|
||||
$admin = get_admin('super');
|
||||
|
||||
if ($config['cf_sms_use'] == "icode")
|
||||
{
|
||||
$SMS = new SMS;
|
||||
$SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);
|
||||
}
|
||||
|
||||
if($_POST['send_escrow']) {
|
||||
$sql = " select dl_id, dl_company from {$g5['g5_shop_delivery_table']} order by dl_id asc ";
|
||||
$result = sql_query($sql);
|
||||
$dl_comp = array();
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
if($row['dl_id'] && $row['dl_company'])
|
||||
$dl_comp[$row['dl_id']] = $row['dl_company'];
|
||||
}
|
||||
|
||||
$arr_tno = array();
|
||||
$arr_corp = array();
|
||||
$arr_numb = array();
|
||||
$arr_idx = 0;
|
||||
}
|
||||
|
||||
for ($m=0; $m<count($_POST['od_id']); $m++)
|
||||
{
|
||||
// 배송회사와 운송장번호가 있는것만 수정
|
||||
if ($_POST['dl_id'][$m] && trim($_POST['od_invoice'][$m]))
|
||||
{
|
||||
$sql = "update {$g5['g5_shop_order_table']}
|
||||
set od_invoice_time = '{$_POST['od_invoice_time'][$m]}',
|
||||
dl_id = '{$_POST['dl_id'][$m]}',
|
||||
od_invoice = '{$_POST['od_invoice'][$m]}'
|
||||
where od_id = '{$_POST['od_id'][$m]}' ";
|
||||
sql_query($sql);
|
||||
|
||||
// 이전에 입력한 배송회사, 운송장번호가 틀리다면 메일 발송
|
||||
if ($_POST['save_od_invoice'][$m] != trim($_POST['od_invoice'][$m]) || $_POST['save_dl_id'][$m] != $_POST['dl_id'][$m])
|
||||
{
|
||||
$od_id = $_POST['od_id'][$m];
|
||||
|
||||
// 장바구니 상태가 '주문', '준비' 일 경우 '배송' 으로 상태를 변경
|
||||
$sql = " update {$g5['g5_shop_cart_table']}
|
||||
set ct_status = '배송'
|
||||
where ct_status in ('주문', '준비')
|
||||
and od_id = '$od_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
include "./ordermail.inc.php";
|
||||
|
||||
// 재고 반영
|
||||
$sql2 = " select it_id, ct_id, ct_stock_use, ct_qty from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$od_id'
|
||||
and ct_stock_use = '0' ";
|
||||
$result2 = sql_query($sql2);
|
||||
for ($k=0; $row2=mysql_fetch_array($result2); $k++)
|
||||
{
|
||||
$sql3 =" update {$g5['g5_shop_item_table']} set it_stock_qty = it_stock_qty - '{$row2['ct_qty']}' where it_id = '{$row2['it_id']}' ";
|
||||
sql_query($sql3);
|
||||
|
||||
$sql4 = " update {$g5['g5_shop_cart_table']}
|
||||
set ct_stock_use = '1',
|
||||
ct_history = CONCAT(ct_history,'\n배송일괄|$now|$REMOTE_ADDR')
|
||||
where od_id = '$od_id'
|
||||
and ct_id = '{$row2['ct_id']}' ";
|
||||
sql_query($sql4);
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// 일괄배송처리시 SMS 문자 일괄전송
|
||||
if ($default['de_sms_use4'] && $_POST['send_sms'])
|
||||
{
|
||||
$sql = " select od_id, od_name, od_invoice, od_hp, dl_id from {$g5['g5_shop_order_table']} where od_id = '$od_id' ";
|
||||
$od = sql_fetch($sql);
|
||||
|
||||
$sql = " select dl_company from {$g5['g5_shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
|
||||
$dl = sql_fetch($sql);
|
||||
|
||||
$sms_contents = $default['de_sms_cont4'];
|
||||
$sms_contents = preg_replace("/{이름}/", $od['od_name'], $sms_contents);
|
||||
$sms_contents = preg_replace("/{택배회사}/", $dl['dl_company'], $sms_contents);
|
||||
$sms_contents = preg_replace("/{운송장번호}/", $od['od_invoice'], $sms_contents);
|
||||
$sms_contents = preg_replace("/{주문번호}/", $od['od_id'], $sms_contents);
|
||||
$sms_contents = preg_replace("/{회사명}/", $default['de_admin_company_name'], $sms_contents);
|
||||
|
||||
$receive_number = preg_replace("/[^0-9]/", "", $od['od_hp']); // 수신자번호 (받는사람 핸드폰번호 ... 여기서는 주문자님의 핸드폰번호임)
|
||||
$send_number = preg_replace("/[^0-9]/", "", $default['de_admin_company_tel']); // 발신자번호
|
||||
|
||||
if ($config['cf_sms_use'] == "icode")
|
||||
{
|
||||
$SMS->Add($receive_number, $send_number, $config['cf_icode_id'], stripslashes($sms_contents), "");
|
||||
}
|
||||
}
|
||||
//---------------------------------------
|
||||
|
||||
// 에스크로배송연동
|
||||
if($_POST['send_escrow'] && $_POST['od_tno'][$m] && $_POST['od_escrow'][$m]) {
|
||||
$arr_tno[$arr_idx] = $_POST['od_tno'][$m];
|
||||
$arr_numb[$arr_idx] = $_POST['od_invoice'][$m];
|
||||
$arr_corp[$arr_idx] = $dl_comp[$_POST['dl_id'][$m]];
|
||||
$arr_idx++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = "update {$g5['g5_shop_order_table']}
|
||||
set od_invoice_time = '',
|
||||
dl_id = '',
|
||||
od_invoice = ''
|
||||
where od_id = '{$_POST['od_id'][$m]}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
if ($config['cf_sms_use'] == "icode")
|
||||
{
|
||||
$SMS->Send();
|
||||
}
|
||||
|
||||
if($_POST['send_escrow']) {
|
||||
$cust_ip = getenv('REMOTE_ADDR');
|
||||
include_once('./orderescrow.inc.php');
|
||||
}
|
||||
|
||||
goto_url("./deliverylist.php?sort1=$sort1&sort2=$sort2&sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&page=$page");
|
||||
?>
|
||||
@ -1,304 +0,0 @@
|
||||
<?php
|
||||
$sub_menu = '400420';
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
|
||||
$g5['title'] = '주문통합내역';
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$where = " where ";
|
||||
$sql_search = "";
|
||||
if ($search != "")
|
||||
{
|
||||
if ($sel_field != "")
|
||||
{
|
||||
$sql_search .= " $where $sel_field like '%$search%' ";
|
||||
$where = " and ";
|
||||
}
|
||||
|
||||
if ($save_search != $search)
|
||||
$page = 1;
|
||||
}
|
||||
|
||||
if ($sel_field == "") $sel_field = "od_id";
|
||||
if ($sort1 == "") $sort1 = "od_id";
|
||||
if ($sort2 == "") $sort2 = "desc";
|
||||
|
||||
$sql_common = " from {$g5['g5_shop_order_table']}
|
||||
$sql_search ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$row = sql_fetch("select count(od_id) as cnt " . $sql_common);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *,
|
||||
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
|
||||
$sql_common
|
||||
order by $sort1 $sort2
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search";
|
||||
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</a>';
|
||||
?>
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
<?php echo $listall; ?>
|
||||
전체 주문내역 <?php echo $total_count; ?>건
|
||||
</div>
|
||||
|
||||
<form name="frmorderlist" class="local_sch01 local_sch">
|
||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
||||
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
||||
<input type="hidden" name="save_search" value="<?php echo $search; ?>">
|
||||
|
||||
<label for="sel_field" class="sound_only">검색대상</label>
|
||||
<select name="sel_field" id="sel_field">
|
||||
<option value="od_id" <?php echo get_selected($sel_field, 'od_id'); ?>>주문번호</option>
|
||||
<option value="mb_id" <?php echo get_selected($sel_field, 'mb_id'); ?>>회원 ID</option>
|
||||
<option value="od_name" <?php echo get_selected($sel_field, 'od_name'); ?>>주문자</option>
|
||||
<option value="od_b_name" <?php echo get_selected($sel_field, 'od_b_name'); ?>>받는분</option>
|
||||
<option value="od_deposit_name" <?php echo get_selected($sel_field, 'od_deposit_name'); ?>>입금자</option>
|
||||
<option value="od_invoice" <?php echo get_selected($sel_field, 'od_invoice'); ?>>운송장번호</option>
|
||||
</select>
|
||||
|
||||
<label for="search" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="search" value="<?php echo $search; ?>" id="search" class="frm_input" autocomplete="off">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
|
||||
</form>
|
||||
|
||||
<div class="local_desc01 local_desc">
|
||||
<p>
|
||||
<strong>주의!</strong> 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="btn_add01 btn_add">
|
||||
<a href="./orderprint.php" class="btn_add01 btn_add_optional">주문내역출력</a>
|
||||
</div>
|
||||
|
||||
<ul id="sodr_sort">
|
||||
<li><a href="<?php echo title_sort("od_id", 1)."&$qstr1"; ?>"<?php if ($sort1 == 'od_id') echo ' class="sort_on"'; ?>>주문번호</a></li>
|
||||
<li><a href="<?php echo title_sort("od_name")."&$qstr1"; ?>"<?php if ($sort1 == 'od_name') echo ' class="sort_on"'; ?>>주문자</a></li>
|
||||
<li><a href="<?php echo title_sort("od_cart_count", 1)."&$qstr1"; ?>"<?php if ($sort1 == 'od_cart_count') echo ' class="sort_on"'; ?>>건수</a></li>
|
||||
<li><a href="<?php echo title_sort("od_cart_price", 1)."&$qstr1"; ?>"<?php if ($sort1 == 'od_cart_price') echo ' class="sort_on"'; ?>>주문합계</a></li>
|
||||
<li><a href="<?php echo title_sort("od_cancel_price", 1)."&$qstr1"; ?>"<?php if ($sort1 == 'od_cancel_price') echo ' class="sort_on"'; ?>>주문취소</a></li>
|
||||
<li><a href="<?php echo title_sort("od_receipt_price")."&$qstr1"; ?>"<?php if ($sort1 == 'od_receipt_price') echo ' class="sort_on"'; ?>>입금합계</a></li>
|
||||
<li><a href="<?php echo title_sort("od_misu", 1)."&$qstr1"; ?>"<?php if ($sort1 == 'od_misu') echo ' class="sort_on"'; ?>>미수금</a></li>
|
||||
</ul>
|
||||
|
||||
<section id="sodr_all">
|
||||
<h2><?php echo $g5['title']; ?> 목록</h2>
|
||||
|
||||
<?php
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++) // for 부모 시작
|
||||
{
|
||||
// 결제 수단
|
||||
$s_receipt_way = $s_br = "";
|
||||
if ($row['od_settle_case'])
|
||||
{
|
||||
$s_receipt_way = $row['od_settle_case'];
|
||||
$s_br = '+';
|
||||
}
|
||||
else
|
||||
{
|
||||
$s_receipt_way = '결제수단없음';
|
||||
$s_br = '+';
|
||||
}
|
||||
|
||||
if ($row['od_receipt_point'] > 0)
|
||||
$s_receipt_way .= $s_br.'포인트';
|
||||
|
||||
$od_mobile = '';
|
||||
if($row['od_mobile'])
|
||||
$od_mobile = '(M)';
|
||||
|
||||
$tot_itemcount += $row['od_cart_count'];
|
||||
$tot_orderprice += ($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']);
|
||||
$tot_ordercancel += $row['od_cancel_price'];
|
||||
$tot_receiptprice += $row['od_receipt_price'];
|
||||
$tot_couponprice += $row['couponprice'];
|
||||
$tot_misu += $row['od_misu'];
|
||||
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
?>
|
||||
<div class="sodr_all_list">
|
||||
<dl class="sodr_basic">
|
||||
<dt>주문번호</dt>
|
||||
<dd>
|
||||
<strong>
|
||||
<?php echo $od_mobile; ?>
|
||||
<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>
|
||||
</strong>
|
||||
</dd>
|
||||
<dt>주문일시</dt>
|
||||
<dd><?php echo date('y년 m월 d일 H시 i분 s초', strtotime($row['od_time'])); ?></dd>
|
||||
<dt>건수</dt>
|
||||
<dd><?php echo $row['od_cart_count']; ?>건</dd>
|
||||
</dl>
|
||||
|
||||
<dl class="sodr_person">
|
||||
<dt>주문자</dt>
|
||||
<dd>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1;?>&sort2=<?php echo $sort2; ?>&sel_field=od_name&search=<?php echo $row['od_name']; ?>">
|
||||
<strong><?php echo cut_str($row['od_name'],30,""); ?></strong> (<?php if ($row['mb_id']) echo $row['mb_id']; else echo '비회원'; ?>)
|
||||
</a>
|
||||
</dd>
|
||||
<?php if ($od_deposit_name) { ?>
|
||||
<dt>입금자</dt>
|
||||
<dd><?php echo $od_deposit_name; ?></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
|
||||
<dl class="sodr_pay">
|
||||
<dt>주문합계</dt>
|
||||
<dd><?php echo number_format($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></dd>
|
||||
<dt>입금합계</dt>
|
||||
<dd><?php echo number_format($row['od_receipt_price']); ?></dd>
|
||||
<dt>결제수단</dt>
|
||||
<dd><?php echo $s_receipt_way; ?></dd>
|
||||
<dt>쿠폰사용</dt>
|
||||
<dd><?php echo number_format($row['couponprice']); ?></dd>
|
||||
<dt>주문취소</dt>
|
||||
<dd><?php echo number_format($row['od_cancel_price']); ?></dd>
|
||||
<dt>미수금</dt>
|
||||
<dd><?php echo number_format($row['misu']); ?></dd>
|
||||
</dl>
|
||||
|
||||
<div class="tbl_head01">
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
// 상품개별출력
|
||||
$sql2 = " select it_id, it_name
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '{$row['od_id']}'
|
||||
group by it_id
|
||||
order by ct_id asc ";
|
||||
$result2 = sql_query($sql2);
|
||||
|
||||
for ($k=0;$row2=sql_fetch_array($result2);$k++) { // for 자식 시작
|
||||
$href = G5_SHOP_URL.'/item.php?it_id='.$row2['it_id'];
|
||||
?>
|
||||
|
||||
<?php
|
||||
// 옵션항목
|
||||
$sql3 = " select *
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '{$row['od_id']}'
|
||||
and it_id = '{$row2['it_id']}'
|
||||
order by io_type asc, ct_id asc ";
|
||||
$result3 = sql_query($sql3);
|
||||
$rowspan = mysql_num_rows($result3);
|
||||
|
||||
for($j=0;$row3=sql_fetch_array($result3);$j++) { // for 손자 시작
|
||||
if($row3['io_type'])
|
||||
$ct_price = $row3['io_price'];
|
||||
else
|
||||
$ct_price = ($row3['ct_price'] + $row3['io_price']);
|
||||
|
||||
$sub_price = $row3['ct_qty'] * $ct_price;
|
||||
$sub_point = $row3['ct_qty'] * $row3['ct_point'];
|
||||
$ct_send_cost = ($row3['ct_send_cost'] ? '착불' : '선불');
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<?php if($j == 0) { ?>
|
||||
<td rowspan="<?php echo $rowspan; ?>"><a href="<?php echo $href; ?>" target="_blank"><?php echo get_it_image($row2['it_id'], 50, 50); ?> <strong><?php echo cut_str($row2['it_name'],35); ?></strong><span class="sound_only"> 새창</span></a></td>
|
||||
<?php } ?>
|
||||
<td class="td_itopt"><?php echo $row3['ct_option']; ?></td>
|
||||
<td class="td_num"><?php echo number_format($ct_price); ?></td>
|
||||
<td class="td_numsmall"><?php echo $row3['ct_qty']; ?></td>
|
||||
<td class="td_num"><?php echo number_format($sub_point); ?></td>
|
||||
<td class="td_num"><?php echo number_format($sub_price); ?></td>
|
||||
<td class="td_sendcost_by"><?php echo $ct_send_cost; ?></td>
|
||||
<td class="td_mngsmall"><?php echo $row3['ct_status']; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php } // for 손자 끝 ?>
|
||||
|
||||
<?php
|
||||
} // for 자식 끝
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_list03 btn_list">
|
||||
<a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>&<?php echo $qstr; ?>">주문 수정</a>
|
||||
<a href="./orderdelete.php?od_id=<?php echo $row['od_id']; ?>&mb_id=<?php echo $row['mb_id']; ?>&<?php echo $qstr; ?>&list=2" onclick="return delete_confirm();">주문 삭제</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
} // for 부모 끝
|
||||
|
||||
if ($i == 0)
|
||||
echo '<div class="sodr_empty">자료가 한건도 없습니다.</div>';
|
||||
?>
|
||||
|
||||
</section>
|
||||
|
||||
<section id="sodr_total">
|
||||
<h2>합계</h2>
|
||||
<div class="local_desc02 local_desc">
|
||||
<p>현재 <?php echo $page;?>페이지의 주문내역 합계입니다.</p>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php echo (int)$tot_itemcount; ?>건</td>
|
||||
<td><?php echo number_format($tot_orderprice); ?></td>
|
||||
<td><?php echo number_format($tot_couponprice); ?></td>
|
||||
<td><?php echo number_format($tot_ordercancel); ?></td>
|
||||
<td><?php echo number_format($tot_receiptprice); ?></td>
|
||||
<td><?php echo number_format($tot_misu); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
@ -1,196 +0,0 @@
|
||||
<?php
|
||||
$sub_menu = '400410';
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
|
||||
$g5['title'] = '주문개별내역';
|
||||
if ($sel_field == 'ct_status') $g5['title'] .= ' ('.$search.')';
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$where = " where ";
|
||||
$sql_search = "";
|
||||
if ($search != "") {
|
||||
if ($sel_field == "c.ca_id") {
|
||||
$sql_search .= " $where $sel_field like '$search%' ";
|
||||
$where = " and ";
|
||||
} else if ($sel_field != "") {
|
||||
$sql_search .= " $where $sel_field like '%$search%' ";
|
||||
$where = " and ";
|
||||
}
|
||||
|
||||
if ($save_search != $search)
|
||||
$page = 1;
|
||||
}
|
||||
|
||||
if ($sel_field == "") $sel_field = "a.od_id";
|
||||
if ($sort1 == "") $sort1 = "a.od_id";
|
||||
if ($sort2 == "") $sort2 = "desc";
|
||||
|
||||
$sql_common = " from {$g5['g5_shop_order_table']} a
|
||||
left join {$g5['g5_shop_cart_table']} b on (a.od_id = b.od_id)
|
||||
left join {$g5['g5_shop_item_table']} c on (b.it_id = c.it_id)
|
||||
$sql_search ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select count(*) as cnt " . $sql_common;
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select a.od_id,
|
||||
a.mb_id,
|
||||
a.od_name,
|
||||
a.od_deposit_name,
|
||||
a.od_time,
|
||||
a.od_mobile,
|
||||
b.ct_status,
|
||||
b.ct_qty,
|
||||
b.ct_price,
|
||||
b.ct_point,
|
||||
b.ct_option,
|
||||
(IF(b.io_type = 1, b.io_price * b.ct_qty, (b.ct_price + b.io_price) * b.ct_qty)) as ct_sub_price,
|
||||
(b.ct_qty * b.ct_point) as ct_sub_point,
|
||||
b.it_id,
|
||||
b.it_name
|
||||
$sql_common
|
||||
order by $sort1 $sort2
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search";
|
||||
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</a>';
|
||||
?>
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
<?php echo $listall; ?>
|
||||
전체 주문내역 <?php echo $total_count; ?>건
|
||||
</div>
|
||||
|
||||
<form name="frmorderlist" class="local_sch01 local_sch">
|
||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
||||
<input type="hidden" name="save_search" value="<?php echo $search; ?>">
|
||||
<label for="sel_field" class="sound_only">검색대상</label>
|
||||
<select name="sel_field" id="sel_field">
|
||||
<option value="a.od_id" <?php echo get_selected($sel_field, 'a.od_id'); ?>>주문번호</option>
|
||||
<option value="od_name" <?php echo get_selected($sel_field, 'od_name'); ?>>주문자</option>
|
||||
<option value="a.mb_id" <?php echo get_selected($sel_field, 'a.mb_id'); ?>>회원 ID</option>
|
||||
<option value="od_deposit_name" <?php echo get_selected($sel_field, 'od_deposit_name'); ?>>입금자</option>
|
||||
<option value="c.it_id" <?php echo get_selected($sel_field, 'c,it_id'); ?>>상품코드</option>
|
||||
<option value="c.ca_id" <?php echo get_selected($sel_field, 'c.ca_id'); ?>>분류코드</option>
|
||||
<option value="ct_status" <?php echo get_selected($sel_field, 'ct_status'); ?>>상태</option>
|
||||
</select>
|
||||
<label for="search" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="search" value="<?php echo $search; ?>" id="search" required class="required frm_input" autocomplete="off">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
|
||||
</form>
|
||||
|
||||
<div class="btn_add01 btn_add">
|
||||
<a href="./orderprint.php" class="btn_add01 btn_add_optional">주문내역출력</a>
|
||||
</div>
|
||||
|
||||
<ul class="anchor">
|
||||
<li><a href="<?php echo $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&sort2='.$sort2.'&sel_field=ct_status&search='.urlencode("준비"); ?>">준비</a></li>
|
||||
<li><a href="<?php echo $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&sort2='.$sort2.'&sel_field=ct_status&search='.urlencode("주문"); ?>">주문</a></li>
|
||||
<li><a href="<?php echo $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&sort2='.$sort2.'&sel_field=ct_status&search='.urlencode("배송"); ?>">배송</a></li>
|
||||
<li><a href="<?php echo $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&sort2='.$sort2.'&sel_field=ct_status&search='.urlencode("완료"); ?>">완료</a></li>
|
||||
<li><a href="<?php echo $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&sort2='.$sort2.'&sel_field=ct_status&search='.urlencode("취소"); ?>">취소</a></li>
|
||||
<li><a href="<?php echo $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&sort2='.$sort2.'&sel_field=ct_status&search='.urlencode("반품"); ?>">반품</a></li>
|
||||
<li><a href="<?php echo $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&sort2='.$sort2.'&sel_field=ct_status&search='.urlencode("품절"); ?>">품절</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tbl_head02 tbl_wrap">
|
||||
<table>
|
||||
<caption><?php echo $g5['title']; ?> 목록</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><a href="<?php echo title_sort("a.od_id")."&$qstr1"; ?>">주문번호</a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("it_name")."&$qstr1"; ?>">상품명</a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_name")."&$qstr1"; ?>">주문자</a></th>
|
||||
<th scope="col" rowspan="2"><a href="<?php echo title_sort("a.mb_id")."&$qstr1"; ?>">회원ID</a></th>
|
||||
<th scope="col" rowspan="2"><a href="<?php echo title_sort("ct_price")."&$qstr1"; ?>">판매가</a></th>
|
||||
<th scope="col" rowspan="2"><a href="<?php echo title_sort("ct_qty")."&$qstr1"; ?>">수량</a></th>
|
||||
<th scope="col" rowspan="2"><a href="<?php echo title_sort("ct_sub_price")."&$qstr1"; ?>">소계</a></th>
|
||||
<th scope="col" rowspan="2"><a href="<?php echo title_sort("ct_sub_point")."&$qstr1"; ?>">포인트</a></th>
|
||||
<th scope="col" rowspan="2"><a href="<?php echo title_sort("ct_status")."&$qstr1"; ?>">상태</a></th>
|
||||
<th scope="col" rowspan="2">관리</th>
|
||||
</tr>
|
||||
<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++) {
|
||||
|
||||
$href = $_SERVER['PHP_SELF'].'?sort1='.$sort1.'&sort2='.$sort2.'&sel_field=c.it_id&search='.$row['it_id'];
|
||||
$it_name = '<a href="'.$href.'">'.cut_str($row['it_name'],35).'</a><br>';
|
||||
|
||||
$od_mobile = '';
|
||||
if($row['od_mobile'])
|
||||
$od_mobile = '(M)';
|
||||
|
||||
$tr_bg = 'tr_bg'.($i%2);
|
||||
?>
|
||||
<tr class="<?php echo $tr_bg; ?>">
|
||||
<td class="td_odrnum2">
|
||||
<?php echo $od_mobile; ?>
|
||||
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&sort2=<?php echo $sort2; ?>&sel_field=a.od_id&search=<?php echo $row['od_id']; ?>"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td class="td_it_img"><a href="<?php echo $href; ?>"><?php echo get_it_image($row['it_id'], 50, 50); ?><?php echo $it_name; ?></a></td>
|
||||
<td class="td_name">
|
||||
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&sort2=<?php echo $sort2; ?>&sel_field=od_name&search=<?php echo $row['od_name']; ?>"><?php echo cut_str($row['od_name'],10,""); ?></a>
|
||||
</td>
|
||||
<td rowspan="2" class="td_name"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&sort2=<?php echo $sort2; ?>&sel_field=a.mb_id&search=<?php echo $row['mb_id']; ?>"><?php echo $row['mb_id']; ?></a></td>
|
||||
<td rowspan="2" class="td_num"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td rowspan="2" class="td_cntsmall"><?php echo $row['ct_qty']; ?></td>
|
||||
<td rowspan="2" class="td_numsum"><?php echo number_format($row['ct_sub_price']); ?></td>
|
||||
<td rowspan="2" class="td_num"><?php echo number_format($row['ct_sub_point']); ?></td>
|
||||
<td rowspan="2" class="td_odrstatus"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&sort2=<?php echo $sort2; ?>&sel_field=ct_status&search=<?php echo $row['ct_status']; ?>"><?php echo $row['ct_status']; ?></a></td>
|
||||
<td rowspan="2" class="td_mngsmall"><a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>">수정</a></td>
|
||||
</tr>
|
||||
<tr<?php echo ' '.$tr_bg; ?>>
|
||||
<td class="td_date"><?php echo $row['od_time']; ?></td>
|
||||
<td><?php echo $row['ct_option']; ?></td>
|
||||
<td><?php if ($row['od_deposit_name'] != "") echo $row['od_deposit_name']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$tot_price += $row['ct_price'];
|
||||
$tot_qty += $row['ct_qty'];
|
||||
$tot_sub_price += $row['ct_sub_price'];
|
||||
$tot_sub_point += $row['ct_sub_point'];
|
||||
}
|
||||
|
||||
if ($i == 0) echo '<tr><td colspan="11" class="empty_table">자료가 한건도 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="row" colspan="4">합 계</td>
|
||||
<td><?php echo number_format($tot_price); ?></td>
|
||||
<td><?php echo number_format($tot_qty); ?></td>
|
||||
<td><?php echo number_format($tot_sub_price); ?></td>
|
||||
<td><?php echo number_format($tot_sub_point); ?></td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
@ -580,22 +580,6 @@ CREATE TABLE IF NOT EXISTS `g5_shop_new_win` (
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g5_shop_onlinecalc`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g5_shop_onlinecalc`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_shop_onlinecalc` (
|
||||
`oc_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`oc_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`oc_category` text NOT NULL,
|
||||
`oc_head_html` text NOT NULL,
|
||||
`oc_tail_html` text NOT NULL,
|
||||
PRIMARY KEY (`oc_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g5_shop_order`
|
||||
--
|
||||
|
||||
@ -189,9 +189,6 @@ if($g5_shop_install) {
|
||||
@mysql_query(" insert into `{$g5_shop_prefix}content` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 취급방침', co_content= '<p align=center><b>개인정보 취급방침에 대한 내용을 입력하십시오.</b></p>' ") or die(mysql_error() . "<p>" . $sql);
|
||||
@mysql_query(" insert into `{$g5_shop_prefix}content` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '<p align=center><b>서비스 이용약관에 대한 내용을 입력하십시오.</b></p>' ") or die(mysql_error() . "<p>" . $sql);
|
||||
|
||||
// 온라인견적
|
||||
@mysql_query(" insert into `{$g5_shop_prefix}onlinecalc` set oc_id = '1', oc_subject = '온라인견적' ") or die(mysql_error() . "<p>" . $sql);
|
||||
|
||||
// FAQ Master
|
||||
@mysql_query(" insert into `{$g5_shop_prefix}faq_master` set fm_id = '1', fm_subject = '자주하시는 질문' ") or die(mysql_error() . "<p>" . $sql);
|
||||
|
||||
@ -421,8 +418,7 @@ if($g5_shop_install) {
|
||||
$data_path.'/content',
|
||||
$data_path.'/event',
|
||||
$data_path.'/faq',
|
||||
$data_path.'/item',
|
||||
$data_path.'/onlinecalc'
|
||||
$data_path.'/item'
|
||||
);
|
||||
|
||||
for ($i=0; $i<count($dir_arr); $i++) {
|
||||
@ -496,7 +492,6 @@ if($g5_shop_install) {
|
||||
fwrite($f, "\$g5['g5_shop_item_qa_table'] = G5_SHOP_TABLE_PREFIX.'item_qa'; // 상품 질문답변 테이블\n");
|
||||
fwrite($f, "\$g5['g5_shop_item_relation_table'] = G5_SHOP_TABLE_PREFIX.'item_relation'; // 관련 상품 테이블\n");
|
||||
fwrite($f, "\$g5['g5_shop_new_win_table'] = G5_SHOP_TABLE_PREFIX.'new_win'; // 새창 테이블\n");
|
||||
fwrite($f, "\$g5['g5_shop_onlinecalc_table'] = G5_SHOP_TABLE_PREFIX.'onlinecalc'; // 온라인견적 테이블\n");
|
||||
fwrite($f, "\$g5['g5_shop_order_table'] = G5_SHOP_TABLE_PREFIX.'order'; // 주문서 테이블\n");
|
||||
fwrite($f, "\$g5['g5_shop_order_delete_table'] = G5_SHOP_TABLE_PREFIX.'order_delete'; // 주문서 삭제 테이블\n");
|
||||
fwrite($f, "\$g5['g5_shop_wish_table'] = G5_SHOP_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블\n");
|
||||
|
||||
Reference in New Issue
Block a user