g4를 g5로 변경
This commit is contained in:
@ -8,15 +8,15 @@ $od_pwd = sql_password($od_pwd);
|
||||
// 회원인 경우
|
||||
if ($is_member)
|
||||
{
|
||||
$sql_common = " from {$g4['shop_order_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
$sql_common = " from {$g5['shop_order_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
}
|
||||
else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번호가 넘어왔다면
|
||||
{
|
||||
$sql_common = " from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$sql_common = " from {$g5['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
}
|
||||
else // 그렇지 않다면 로그인으로 가기
|
||||
{
|
||||
goto_url(G4_BBS_URL.'/login.php?url='.urlencode(G4_SHOP_URL.'/orderinquiry.php'));
|
||||
goto_url(G5_BBS_URL.'/login.php?url='.urlencode(G5_SHOP_URL.'/orderinquiry.php'));
|
||||
}
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
@ -29,7 +29,7 @@ $total_count = $row['cnt'];
|
||||
if ($total_count == 0)
|
||||
{
|
||||
if ($is_member) // 회원일 경우는 메인으로 이동
|
||||
alert('주문이 존재하지 않습니다.', G4_SHOP_URL);
|
||||
alert('주문이 존재하지 않습니다.', G5_SHOP_URL);
|
||||
else // 비회원일 경우는 이전 페이지로 이동
|
||||
alert('주문이 존재하지 않습니다.');
|
||||
}
|
||||
@ -43,17 +43,17 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
// 비회원 주문확인의 경우 바로 주문서 상세조회로 이동
|
||||
if (!$is_member)
|
||||
{
|
||||
$sql = " select od_id, od_time, od_ip from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$sql = " select od_id, od_time, od_ip from {$g5['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['od_id']) {
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
set_session('ss_orderview_uid', $uid);
|
||||
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&uid='.$uid);
|
||||
goto_url(G5_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&uid='.$uid);
|
||||
}
|
||||
}
|
||||
|
||||
$g4['title'] = '주문내역조회';
|
||||
include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
$g5['title'] = '주문내역조회';
|
||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
?>
|
||||
|
||||
<div id="sod_v">
|
||||
@ -61,12 +61,12 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
|
||||
<?php
|
||||
$limit = " limit $from_record, $rows ";
|
||||
include G4_MSHOP_PATH.'/orderinquiry.sub.php';
|
||||
include G5_MSHOP_PATH.'/orderinquiry.sub.php';
|
||||
?>
|
||||
|
||||
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once(G4_MSHOP_PATH.'/_tail.php');
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user