Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
chicpro
2013-05-06 20:07:40 +09:00
3 changed files with 48 additions and 62 deletions

View File

@ -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 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 h2 {text-align:center}

View File

@ -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;'>
&nbsp;&nbsp;※ <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%>&nbsp;</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&amp;page="); ?>
</div>
<?php
include_once('./_tail.php');
?>
?>

View File

@ -4,24 +4,20 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
?>
<table width=98% align=center cellpadding=0 cellspacing=0 border=0>
<colgroup width=100>
<colgroup width=''>
<colgroup width=80>
<colgroup width=120>
<colgroup width=120>
<colgroup width=120>
<?php if (!$limit) { echo "<tr><td colspan=6 align=right>총 {$cnt} 건</td></tr>"; } ?>
<tr><td height=2 colspan=6 class=c1></td></tr>
<tr align=center height=28 class=c2>
<td>주문서번호</td>
<td>주문일시</td>
<td>상품수</td>
<td>주문금액</td>
<td>입금액</td>
<td>미입금액</td>
<?php if (!$limit) { ?>총 <?php echo $cnt; ?> 건<?php } ?>
<table class="basic_tbl">
<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>
<tr><td height=1 colspan=6 class=c1></td></tr>
</thead>
<tbody>
<?php
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
@ -34,23 +30,25 @@ $sql = " select a.od_id,
$result = sql_query($sql);
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";
echo "<td align=center>";
echo "<input type=hidden name='ct_id[$i]' value='{$row['ct_id']}'>\n";
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";
echo "<td align=center>".substr($row['od_time'],0,16)." (".get_yoil($row['od_time']).")</td>\n";
echo "<td align=center>{$row['itemcount']}</td>\n";
echo "<td align=right>".display_amount($row['orderamount'])."&nbsp;&nbsp;</td>\n";
echo "<td align=right>".display_amount($row['receiptamount'])."&nbsp;&nbsp;</td>\n";
echo "<td align=right>".display_amount($row['misu'])."&nbsp;&nbsp;</td>\n";
echo "</tr>\n";
<tr>
<td>
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uq_id=<?php echo $row['uq_id']; ?>"><?php echo $row['od_id']; ?></a>
</td>
<td><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
<td class="td_bignum"><?php echo $row['itemcount']; ?></td>
<td class="td_bignum"><?php echo display_amount($row['orderamount']); ?></td>
<td class="td_bignum"><?php echo display_amount($row['receiptamount']); ?></td>
<td class="td_bignum"><?php echo display_amount($row['misu']); ?></td>
</tr>
<?php
}
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>
</table><br>
</tbody>
</table>