Ignore:
Timestamp:
2007/06/14 22:01:13 (17 years ago)
Author:
adati
Message:

1.4.0a-betaのマージ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/html/admin/total/index.php

    r13353 r14676  
    107107                 
    108108        $page = $objFormParam->getValue('page'); 
     109         
    109110        switch($page) { 
    110111        // ¾¦ÉÊÊ̽¸·× 
     
    201202default: 
    202203    if(count($_GET) == 0) { 
    203         // ¥Ð¥Ã¥Á¥â¡¼¥É¤Î¾ì¹ç¤Î¤ß¼Â¹Ô¤¹¤ë 
     204        // ¥Ð¥Ã¥Á¥â¡¼¥É¤Î¾ì¹ç¤Î¤ß¼Â¹Ô¤¹¤ë¡ÊÅöÆü¤Î½¸·×¤ò¹Ô¤¦¤¿¤á¡Ë 
    204205        if(DAILY_BATCH_MODE) { 
    205206            // 3ÆüÁ°¤Þ¤Ç¤Î½¸·× 
     
    209210    break; 
    210211} 
    211  
    212212 
    213213$objPage->install_GD = $install_GD; 
     
    622622function lfGetOrderProducts($type, $sdate, $edate, $objPage, $graph = true, $mode = "") { 
    623623    list($where, $arrval) = lfGetWhereMember('create_date', $sdate, $edate, $type); 
     624     
     625    $where .= " and del_flg=0 and status <> " . ORDER_CANCEL; 
    624626     
    625627    $where .= " and del_flg=0 and status <> " . ORDER_CANCEL; 
     
    659661     
    660662    $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"; 
    663665     
    664666    $objQuery = new SC_Query(); 
    665667    $objPage->arrResults = $objQuery->getall($sql, $arrval); 
    666              
     668     
    667669    $max = count($objPage->arrResults); 
    668670    for($i = 0; $i < $max; $i++) { 
     
    808810        // ¸¡º÷·ë²Ì¤Î¼èÆÀ 
    809811        $objPage->arrResults = $objQuery->select($col, $from, $where, $arrval); 
    810          
     812         
    811813        // ÀÞ¤ìÀþ¥°¥é¥Õ¤ÎÀ¸À®    
    812814        if($graph) { 
Note: See TracChangeset for help on using the changeset viewer.