Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -569,6 +569,9 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
|
|||||||
#sit_rel {margin:0 0 10px;padding:10px 10px 0}
|
#sit_rel {margin:0 0 10px;padding:10px 10px 0}
|
||||||
#sit_rel h2 {margin:0 0 10px}
|
#sit_rel h2 {margin:0 0 10px}
|
||||||
|
|
||||||
|
/* 주문내역 */
|
||||||
|
#sod_v .basic_tbl {text-align:center}
|
||||||
|
|
||||||
/* 공지사항 및 커뮤니티 새글 */
|
/* 공지사항 및 커뮤니티 새글 */
|
||||||
#sidx_lat {padding:15px 0 0;border-top:1px solid #ddd}
|
#sidx_lat {padding:15px 0 0;border-top:1px solid #ddd}
|
||||||
#sidx_lat h2 {text-align:center}
|
#sidx_lat h2 {text-align:center}
|
||||||
|
|||||||
@ -16,7 +16,7 @@ else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번
|
|||||||
}
|
}
|
||||||
else // 그렇지 않다면 로그인으로 가기
|
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 ($total_count == 0)
|
||||||
{
|
{
|
||||||
if ($is_member) // 회원일 경우는 메인으로 이동
|
if ($is_member) // 회원일 경우는 메인으로 이동
|
||||||
alert("주문이 존재하지 않습니다.", G4_SHOP_URL);
|
alert('주문이 존재하지 않습니다.', G4_SHOP_URL);
|
||||||
else // 비회원일 경우는 이전 페이지로 이동
|
else // 비회원일 경우는 이전 페이지로 이동
|
||||||
alert("주문이 존재하지 않습니다.");
|
alert('주문이 존재하지 않습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
|
|
||||||
@ -47,39 +47,24 @@ if (!$is_member)
|
|||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['od_id']) {
|
if ($row['od_id']) {
|
||||||
set_session("ss_uq_id_inquiry", $row['uq_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');
|
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>
|
<?php
|
||||||
<tr>
|
$limit = " limit $from_record, $rows ";
|
||||||
<td>
|
include "./orderinquiry.sub.php";
|
||||||
|
?>
|
||||||
|
|
||||||
<div style='height:30px;'>
|
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
||||||
※ <font color="#FF6600">주문서번호를 클릭</font>하시면 주문, 입금, 배송정보등 세부 내역을 확인하실 수 있습니다.
|
</div>
|
||||||
</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
|
<?php
|
||||||
include_once('./_tail.php');
|
include_once('./_tail.php');
|
||||||
|
|||||||
@ -4,24 +4,20 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|||||||
if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table width=98% align=center cellpadding=0 cellspacing=0 border=0>
|
<?php if (!$limit) { ?>총 <?php echo $cnt; ?> 건<?php } ?>
|
||||||
<colgroup width=100>
|
|
||||||
<colgroup width=''>
|
<table class="basic_tbl">
|
||||||
<colgroup width=80>
|
<thead>
|
||||||
<colgroup width=120>
|
<tr>
|
||||||
<colgroup width=120>
|
<th scope="col">주문서번호</th>
|
||||||
<colgroup width=120>
|
<th scope="col">주문일시</th>
|
||||||
<?php if (!$limit) { echo "<tr><td colspan=6 align=right>총 {$cnt} 건</td></tr>"; } ?>
|
<th scope="col">상품수</th>
|
||||||
<tr><td height=2 colspan=6 class=c1></td></tr>
|
<th scope="col">주문금액</th>
|
||||||
<tr align=center height=28 class=c2>
|
<th scope="col">입금액</th>
|
||||||
<td>주문서번호</td>
|
<th scope="col">미입금액</th>
|
||||||
<td>주문일시</td>
|
|
||||||
<td>상품수</td>
|
|
||||||
<td>주문금액</td>
|
|
||||||
<td>입금액</td>
|
|
||||||
<td>미입금액</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td height=1 colspan=6 class=c1></td></tr>
|
</thead>
|
||||||
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$sql = " select a.od_id,
|
$sql = " select a.od_id,
|
||||||
a.*, "._MISU_QUERY_."
|
a.*, "._MISU_QUERY_."
|
||||||
@ -34,23 +30,25 @@ $sql = " select a.od_id,
|
|||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
{
|
{
|
||||||
if ($i > 0)
|
?>
|
||||||
echo "<tr><td colspan=6 height=1 background='".G4_SHOP_URL."/img/dot_line.gif'></td></tr>\n";
|
|
||||||
|
|
||||||
echo "<tr height=28>\n";
|
<tr>
|
||||||
echo "<td align=center>";
|
<td>
|
||||||
echo "<input type=hidden name='ct_id[$i]' value='{$row['ct_id']}'>\n";
|
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
|
||||||
echo "<a href='".G4_SHOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}'><U>{$row['od_id']}</U></a></td>\n";
|
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uq_id=<?php echo $row['uq_id']; ?>"><?php echo $row['od_id']; ?></a>
|
||||||
echo "<td align=center>".substr($row['od_time'],0,16)." (".get_yoil($row['od_time']).")</td>\n";
|
</td>
|
||||||
echo "<td align=center>{$row['itemcount']}</td>\n";
|
<td><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||||
echo "<td align=right>".display_amount($row['orderamount'])." </td>\n";
|
<td class="td_bignum"><?php echo $row['itemcount']; ?></td>
|
||||||
echo "<td align=right>".display_amount($row['receiptamount'])." </td>\n";
|
<td class="td_bignum"><?php echo display_amount($row['orderamount']); ?></td>
|
||||||
echo "<td align=right>".display_amount($row['misu'])." </td>\n";
|
<td class="td_bignum"><?php echo display_amount($row['receiptamount']); ?></td>
|
||||||
echo "</tr>\n";
|
<td class="td_bignum"><?php echo display_amount($row['misu']); ?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
echo "<tr><td colspan=20 height=100 align=center><span class=point>주문 내역이 없습니다.</span></td></tr>";
|
echo '<tr><td colspan="6" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
<tr><td colspan=20 height=1 bgcolor=#94D7E7></td></tr>
|
</tbody>
|
||||||
</table><br>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user