diff --git a/adm/shop_admin/sale1date.php b/adm/shop_admin/sale1date.php
index c4bbe905a..35c252fed 100644
--- a/adm/shop_admin/sale1date.php
+++ b/adm/shop_admin/sale1date.php
@@ -22,7 +22,7 @@ function print_line($save)
?>
- | =$save['od_date']?> |
+ =$save['od_date']?> |
=number_format($save['ordercount'])?> |
=number_format($save['orderamount'])?> |
=number_format($save['ordercancel'] + $save['dc'])?> |
diff --git a/adm/shop_admin/sale1month.php b/adm/shop_admin/sale1month.php
index c953aa89c..0a50e3fc5 100644
--- a/adm/shop_admin/sale1month.php
+++ b/adm/shop_admin/sale1month.php
@@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
-$fr_date = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $fr_date);
-$to_date = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $to_date);
+$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*/
include_once (G4_ADMIN_PATH.'/admin.head.php');
@@ -16,45 +16,60 @@ function print_line($save)
static $count = 0;
if ($count++ > 0)
- echo "
|
\n";
+ echo ' |
';
$date = preg_replace("/-/", "", $save['od_date']);
- echo "
-
- | $save[od_date] |
- ".number_format($save['ordercount'])." |
- ".number_format($save['orderamount'])." |
- ".number_format($save['ordercancel'] + $save['dc'])." |
- ".number_format($save['receiptbank'])." |
- ".number_format($save['receiptcard'])." |
- ".number_format($save['receiptpoint'])." |
- ".number_format($save['receiptcancel'])." |
- ".number_format($save['misu'])." |
-
\n";
+ ?>
+
+ | =$save[od_date]?> |
+ =number_format($save['ordercount'])?> |
+ =number_format($save['orderamount'])?> |
+ =number_format($save['ordercancel'] + $save['dc'])?> |
+ =number_format($save['receiptbank'])?> |
+ =number_format($save['receiptcard'])?> |
+ =number_format($save['receiptpoint'])?> |
+ =number_format($save['receiptcancel'])?> |
+ =number_format($save['misu'])?> |
+
+
}
?>
-
-//=subtitle($g4['title'])?>
-
-
- |
-
- | 주문월 |
- 주문수 |
- 주문합계 |
- 취소+DC |
- 무통장입금 |
- 카드입금 |
- 포인트입금 |
- 입금취소 |
- 미수금 |
-
- |
-
-unset($save);
-unset($tot);
-$sql = " select uq_id,
+
+
+ 월별 매출현황
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | 주문월 |
+ 주문수 |
+ 주문합계 |
+ 취소+DC |
+ 무통장입금 |
+ 카드입금 |
+ 포인트입금 |
+ 입금취소 |
+ 미수금 |
+
+
+
+
+ unset($save);
+ unset($tot);
+ $sql = " select uq_id,
SUBSTRING(od_time,1,7) as od_date,
od_send_cost,
od_receipt_bank,
@@ -64,11 +79,11 @@ $sql = " select uq_id,
(od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount,
(od_refund_amount + od_cancel_card) as receiptcancel
from {$g4['yc4_order_table']}
- where SUBSTRING(od_time,1,7) between '$fr_date' and '$to_date'
+ where SUBSTRING(od_time,1,7) between '$fr_month' and '$to_month'
order by od_time desc ";
-$result = sql_query($sql);
-for ($i=0; $row=mysql_fetch_array($result); $i++)
-{
+ $result = sql_query($sql);
+ for ($i=0; $row=mysql_fetch_array($result); $i++)
+ {
if ($i == 0)
$save['od_date'] = $row['od_date'];
@@ -108,28 +123,31 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$tot['receiptamount'] += $row['receiptamount'];
$tot['receiptcancel'] += $row['receiptcancel'];
$tot['misu'] += $misu;
-}
+ }
-if ($i == 0) {
- echo "| 자료가 한건도 없습니다. |
";
-} else {
+ if ($i == 0) {
+ echo '| 자료가 한건도 없습니다. |
';
+ } else {
print_line($save);
-}
-?>
- |
-
- | 합 계 |
- =number_format($tot['ordercount'])?> |
- =number_format($tot['orderamount'])?> |
- =number_format($tot['ordercancel'] + $tot['dc'])?> |
- =number_format($tot['receiptbank'])?> |
- =number_format($tot['receiptcard'])?> |
- =number_format($tot['receiptpoint'])?> |
- =number_format($tot['receiptcancel'])?> |
- =number_format($tot['misu'])?> |
-
- |
-
+ }
+ ?>
+
+
+
+ | 합 계 |
+ =number_format($tot['ordercount'])?> |
+ =number_format($tot['orderamount'])?> |
+ =number_format($tot['ordercancel'] + $tot['dc'])?> |
+ =number_format($tot['receiptbank'])?> |
+ =number_format($tot['receiptcard'])?> |
+ =number_format($tot['receiptpoint'])?> |
+ =number_format($tot['receiptcancel'])?> |
+ =number_format($tot['misu'])?> |
+
+
+
+
+
include_once (G4_ADMIN_PATH.'/admin.tail.php');
diff --git a/adm/shop_admin/sale1today.php b/adm/shop_admin/sale1today.php
index d52e10a9c..bf5b769b3 100644
--- a/adm/shop_admin/sale1today.php
+++ b/adm/shop_admin/sale1today.php
@@ -79,7 +79,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
- | =$row[od_id]?> |
+ =$row[od_id]?> |
=$href?>=$row[od_name]?> |
=number_format($row1['orderamount'])?> |
=number_format($row1['ordercancel'] + $row['od_dc_amount'])?> |