경로 수정 작업 중

This commit is contained in:
chicpro
2013-03-14 17:56:20 +09:00
parent 8ba59fe9b0
commit 1a60978568
1212 changed files with 39023 additions and 33180 deletions

View File

@ -8,33 +8,33 @@ $od_pwd = sql_password($od_pwd);
// 회원인 경우
if ($is_member)
{
$sql_common = " from $g4[yc4_order_table] where mb_id = '$member[mb_id]' ";
$sql_common = " from {$g4['yc4_order_table']} where mb_id = '{$member['mb_id']}' ";
}
else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번호가 넘어왔다면
{
$sql_common = " from $g4[yc4_order_table] where od_id = '$od_id' and od_pwd = '$od_pwd' ";
$sql_common = " from {$g4['yc4_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
}
else // 그렇지 않다면 로그인으로 가기
{
goto_url("$g4[bbs_path]/login.php?url=".urlencode("$g4[shop_path]/orderinquiry.php"));
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/orderinquiry.php"));
}
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
$row = sql_fetch($sql);
$total_count = $row[cnt];
$total_count = $row['cnt'];
// 비회원 주문확인시 비회원의 모든 주문이 다 출력되는 오류 수정
// 조건에 맞는 주문서가 없다면
if ($total_count == 0)
{
if ($is_member) // 회원일 경우는 메인으로 이동
alert("주문이 존재하지 않습니다.", $g4[path]);
alert("주문이 존재하지 않습니다.", G4_SHOP_URL);
else // 비회원일 경우는 이전 페이지로 이동
alert("주문이 존재하지 않습니다.");
}
$rows = $config[cf_page_rows];
$rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
@ -43,19 +43,19 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
// 비회원 주문확인의 경우 바로 주문서 상세조회로 이동
if (!$is_member)
{
$sql = " select od_id, on_uid from $g4[yc4_order_table] where od_id = '$od_id' and od_pwd = '$od_pwd' ";
$sql = " select od_id, on_uid from {$g4['yc4_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
$row = sql_fetch($sql);
if ($row[od_id]) {
set_session("ss_on_uid_inquiry", $row[on_uid]);
goto_url("$g4[shop_path]/orderinquiryview.php?od_id=$row[od_id]&on_uid=$row[on_uid]");
if ($row['od_id']) {
set_session("ss_on_uid_inquiry", $row['on_uid']);
goto_url(G4_ShOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&on_uid={$row['on_uid']}");
}
}
$g4[title] = "주문내역";
include_once("./_head.php");
$g4['title'] = "주문내역";
include_once('./_head.php');
?>
<img src="<?=$g4[shop_img_path]?>/top_orderinquiry.gif" border=0><p>
<img src="<?=G4_SHOP_URL?>/img/top_orderinquiry.gif" border=0><p>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
@ -77,10 +77,10 @@ include_once("./_head.php");
<table width=98%>
<tr>
<td width=50%>&nbsp;</td>
<td width=50% align=right><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?></td>
<td width=50% align=right><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></td>
</tr>
</table>
<?
include_once("./_tail.php");
include_once('./_tail.php');
?>