쇼핑몰관리자: #35 쇼핑몰현황 월간매출현황 표준화 및 스타일 완료

This commit is contained in:
whitedot
2013-04-19 17:53:07 +09:00
parent 6d949cbc76
commit 6faf0620ac

View File

@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
$fr_month = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $fr_month);
$to_month = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $to_month);
$g4['title'] = "$fr_month ~ $to_month 매출현황"; /*레이블 중복 인식과 페이지와의 연결 때문에 month로 바꿈 김혜련 2013-04-04*/
$g4['title'] = "$fr_month ~ $to_month 월간 매출현황"; /*레이블 중복 인식과 페이지와의 연결 때문에 month로 바꿈 김혜련 2013-04-04*/
include_once (G4_ADMIN_PATH.'/admin.head.php');
function print_line($save)
@ -15,13 +15,10 @@ function print_line($save)
global $admin_dir;
static $count = 0;
if ($count++ > 0)
echo '<tr><td colspan="9"></td></tr>';
$date = preg_replace("/-/", "", $save['od_date']);
?>
<tr class="sale1">
<tr>
<td><a href="./sale1date.php?fr_date=<?=$date?>01&to_date=<?=$date?>31"><?=$save['od_date']?></a></td>
<td><?=number_format($save['ordercount'])?></td>
<td><?=number_format($save['orderamount'])?></td>
@ -78,23 +75,11 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$tot['misu'] += $misu;
}
?>
<style type="text/css">
.sale1{text-align:center}
</style>
<section class="cbox">
<h2>월별 매출현황</h2>
<section id="ssale_month" class="cbox">
<h2>월간 매출 집계 목록</h2>
<table>
<colgroup>
<col class="grid_2">
<col class="grid_2">
<col class="grid_2">
<col class="grid_2">
<col class="grid_2">
<col class="grid_2">
<col class="grid_2">
<col class="grid_2">
<col class="grid_2">
</colgroup>
<thead>
<tr>
<th scope="col">주문월</th>
@ -109,7 +94,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
</tr>
</thead>
<tfoot>
<tr class="sale1">
<tr>
<td>합 계</td>
<td><?=number_format($tot['ordercount'])?></td>
<td><?=number_format($tot['orderamount'])?></td>
@ -150,7 +135,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
}
if ($i == 0) {
echo '<tr><td colspan="9" class="sale1"><span>자료가 한건도 없습니다.</span></td></tr>';
echo '<tr><td colspan="9" class="empty_table">자료가 없습니다.</td></tr>';
} else {
print_line($save);
}