Changeset 14676 for branches/beta/html/admin/total/index.php
- Timestamp:
- 2007/06/14 22:01:13 (19 years ago)
- File:
-
- 1 edited
-
branches/beta/html/admin/total/index.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/html/admin/total/index.php
r13353 r14676 107 107 108 108 $page = $objFormParam->getValue('page'); 109 109 110 switch($page) { 110 111 // ¾¦ÉÊÊ̽¸·× … … 201 202 default: 202 203 if(count($_GET) == 0) { 203 // ¥Ð¥Ã¥Á¥â¡¼¥É¤Î¾ì¹ç¤Î¤ß¼Â¹Ô¤¹¤ë 204 // ¥Ð¥Ã¥Á¥â¡¼¥É¤Î¾ì¹ç¤Î¤ß¼Â¹Ô¤¹¤ë¡ÊÅöÆü¤Î½¸·×¤ò¹Ô¤¦¤¿¤á¡Ë 204 205 if(DAILY_BATCH_MODE) { 205 206 // 3ÆüÁ°¤Þ¤Ç¤Î½¸·× … … 209 210 break; 210 211 } 211 212 212 213 213 $objPage->install_GD = $install_GD; … … 622 622 function lfGetOrderProducts($type, $sdate, $edate, $objPage, $graph = true, $mode = "") { 623 623 list($where, $arrval) = lfGetWhereMember('create_date', $sdate, $edate, $type); 624 625 $where .= " and del_flg=0 and status <> " . ORDER_CANCEL; 624 626 625 627 $where .= " and del_flg=0 and status <> " . ORDER_CANCEL; … … 659 661 660 662 $sql = "SELECT job, count(*) AS order_count, SUM(total) AS total, (AVG(total)) AS total_average "; 661 $sql.= "FROM dtb_customer AS T1 LEFT JOIN dtb_order AS T2 USING ( customer_id ) WHERE $where AND T2.del_flg = 0 ";662 $sql.= " GROUP BY job ORDER BY total DESC";663 $sql.= "FROM dtb_customer AS T1 LEFT JOIN dtb_order AS T2 USING ( customer_id ) WHERE $where AND T2.del_flg = 0 and T2.status <> " . ORDER_CANCEL; 664 $sql.= " GROUP BY job ORDER BY total DESC"; 663 665 664 666 $objQuery = new SC_Query(); 665 667 $objPage->arrResults = $objQuery->getall($sql, $arrval); 666 668 667 669 $max = count($objPage->arrResults); 668 670 for($i = 0; $i < $max; $i++) { … … 808 810 // ¸¡º÷·ë²Ì¤Î¼èÆÀ 809 811 $objPage->arrResults = $objQuery->select($col, $from, $where, $arrval); 810 812 811 813 // ÀÞ¤ìÀþ¥°¥é¥Õ¤ÎÀ¸À® 812 814 if($graph) {
Note: See TracChangeset
for help on using the changeset viewer.
