사용하지 않는 이전 코드 삭제
This commit is contained in:
@ -177,10 +177,10 @@ function get_max_value($arr)
|
||||
?>
|
||||
<li class="<?php echo $li_bg; ?>" style="z-index:<?php echo $k; ?>">
|
||||
<div class="graph order" title="<?php echo $order_title; ?>">
|
||||
|
||||
|
||||
</div>
|
||||
<div class="graph cancel" title="<?php echo $cancel_title; ?>">
|
||||
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
@ -554,167 +554,6 @@ function graph_draw()
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php /*
|
||||
<section id="anc_sidx_ord">
|
||||
<h2>주문현황</h2>
|
||||
<?php echo $pg_anchor; ?>
|
||||
|
||||
<div class="local_desc01 local_desc">
|
||||
<ul>
|
||||
<?php
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_order_table']} where od_status = '주문' ";
|
||||
$row = sql_fetch($sql);
|
||||
echo "<li><a href=\"./orderlist.php?od_status=주문\">주문 : ".$row['cnt']."</a></li>";
|
||||
?>
|
||||
|
||||
<?php
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_order_table']} where od_status = '입금' ";
|
||||
$row = sql_fetch($sql);
|
||||
echo "<li><a href=\"./orderlist.php?od_status=입금\">입금 : ".$row['cnt']."</a></li>";
|
||||
?>
|
||||
|
||||
<?php
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_order_table']} where od_status = '준비' ";
|
||||
$row = sql_fetch($sql);
|
||||
echo "<li><a href=\"./orderlist.php?od_status=준비\">준비 : ".$row['cnt']."</a></li>";
|
||||
?>
|
||||
|
||||
<?php
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_order_table']} where od_status = '배송' ";
|
||||
$row = sql_fetch($sql);
|
||||
echo "<li><a href=\"./orderlist.php?od_status=배송\">배송 : ".$row['cnt']."</a></li>";
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="anc_sidx_rdy">
|
||||
<h2>입금완료 미배송내역</h2>
|
||||
<?php echo $pg_anchor; ?>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>입금완료 미배송내역</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">주문번호</th>
|
||||
<th scope="col">주문자</th>
|
||||
<th scope="col">입금액</th>
|
||||
<th scope="col">결제방법</th>
|
||||
<th scope="col">수정</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
// 미수금이 없고 운송장번호가 없는 자료를 구함
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_table']}
|
||||
where od_receipt_price > 0 and od_misu <= 0 and od_invoice = ''
|
||||
order by od_id desc
|
||||
limit $max_limit ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
|
||||
|
||||
$settle_method = "";
|
||||
if ($row['od_settle_case'])
|
||||
{
|
||||
$settle_method = $row['od_settle_case'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$settle_method .= '미입력';
|
||||
if ($row['od_receipt_point']) $settle_method .= '포인트';
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_odrnum2"><?php echo $row['od_id']; ?></td>
|
||||
<td class="td_name"><?php echo $name; ?></td>
|
||||
<td class="td_numsmall"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
<td class="td_payby"><?php echo $settle_method; ?></td>
|
||||
<td class="td_mngsmall"><a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>">수정</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if ($i == 0) echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_list03 btn_list">
|
||||
<a href="./deliverylist.php?sort1=od_invoice&sort2=asc&chk_misu=1">입금완료 미배송내역 더보기</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="anc_sidx_wait">
|
||||
<h2>미입금 주문내역</h2>
|
||||
<?php echo $pg_anchor; ?>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>미입금 주문내역</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">주문번호</th>
|
||||
<th scope="col">주문자</th>
|
||||
<th scope="col">주문액</th>
|
||||
<th scope="col">결제방법</th>
|
||||
<th scope="col">수정</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
// 미수금이 있고 송장번호가 없는 자료를 구함
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_table']}
|
||||
where od_misu > 0
|
||||
order by od_id desc
|
||||
limit $max_limit ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
|
||||
|
||||
$settle_method = "";
|
||||
if ($row['od_settle_case'])
|
||||
{
|
||||
$settle_method = $row['od_settle_case'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$settle_method .= '미입력';
|
||||
if ($row['od_receipt_point']) $settle_method .= '포인트';
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_odrnum2"><a href="./orderstatuslist.php?sort1=od_id&sel_field=od_id&search=<?php echo $row['od_id']; ?>"><?php echo $row['od_id']; ?></a></td>
|
||||
<td class="td_name"><?php echo $name; ?></td>
|
||||
<td class="td_numsmall"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
|
||||
<td class="td_payby"><?php echo $settle_method; ?></td>
|
||||
<td class="td_mngsmall"><a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>">수정</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if ($i == 0) echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_list03 btn_list">
|
||||
<a href="./orderlist.php?sort1=od_receipt_price&sort2=asc">미입금 주문내역 더보기</a>
|
||||
</div>
|
||||
</section>
|
||||
*/ ?>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user