쇼핑몰: #139 상품주문 주문조회 표준화 및 스타일 완료
This commit is contained in:
@ -16,7 +16,7 @@ else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번
|
||||
}
|
||||
else // 그렇지 않다면 로그인으로 가기
|
||||
{
|
||||
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/orderinquiry.php"));
|
||||
goto_url(G4_BBS_URL.'/login.php?url='.urlencode(G4_SHOP_URL.'/orderinquiry.php'));
|
||||
}
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
@ -29,14 +29,14 @@ $total_count = $row['cnt'];
|
||||
if ($total_count == 0)
|
||||
{
|
||||
if ($is_member) // 회원일 경우는 메인으로 이동
|
||||
alert("주문이 존재하지 않습니다.", G4_SHOP_URL);
|
||||
alert('주문이 존재하지 않습니다.', G4_SHOP_URL);
|
||||
else // 비회원일 경우는 이전 페이지로 이동
|
||||
alert("주문이 존재하지 않습니다.");
|
||||
alert('주문이 존재하지 않습니다.');
|
||||
}
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
|
||||
@ -47,40 +47,25 @@ if (!$is_member)
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['od_id']) {
|
||||
set_session("ss_uq_id_inquiry", $row['uq_id']);
|
||||
goto_url(G4_ShOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}");
|
||||
goto_url(G4_ShOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&uq_id='.$row['uq_id']);
|
||||
}
|
||||
}
|
||||
|
||||
$g4['title'] = "주문내역";
|
||||
$g4['title'] = '주문내역조회';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<img src="<?php echo G4_SHOP_URL; ?>/img/top_orderinquiry.gif" border=0><p>
|
||||
<div id="sod_v">
|
||||
<p>주문서번호 링크를 누르시면 주문상세내역을 조회하실 수 있습니다.</p>
|
||||
|
||||
<table width=100% cellpadding=0 cellspacing=0 border=0>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$limit = " limit $from_record, $rows ";
|
||||
include "./orderinquiry.sub.php";
|
||||
?>
|
||||
|
||||
<div style='height:30px;'>
|
||||
※ <font color="#FF6600">주문서번호를 클릭</font>하시면 주문, 입금, 배송정보등 세부 내역을 확인하실 수 있습니다.
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$limit = " limit $from_record, $rows ";
|
||||
include "./orderinquiry.sub.php";
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width=98%>
|
||||
<tr>
|
||||
<td width=50%> </td>
|
||||
<td width=50% align=right><?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user