Changeset 17201


Ignore:
Timestamp:
2008/04/03 18:45:09 (12 years ago)
Author:
pineray
Message:

フォーラムに投稿されていた、商品別および職業別の売上集計において、表とCSVデータに名前が表示されない不具合を修正

Location:
branches/comu-ver2/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/Smarty/templates/default/admin/total/page_products.tpl

    r17198 r17201  
    4747        <td align="center"><!--{*順位*}--><!--{$smarty.section.cnt.iteration}--></td> 
    4848        <td align="right"><!--{*商品番号*}--><!--{$arrResults[cnt].product_code|escape}--></td> 
    49         <td align="left"><!--{*商品名*}--><!--{$arrResults[cnt].name|sfCutString:40|escape}--></td> 
     49        <td align="left"><!--{*商品名*}--><!--{$arrResults[cnt].product_name|sfCutString:40|escape}--></td> 
    5050        <td align="right"><!--{*購入件数*}--><!--{$arrResults[cnt].order_count}-->件</td> 
    5151        <td align="right"><!--{*点数*}--><!--{$arrResults[cnt].products_count}--></td> 
  • branches/comu-ver2/data/class/pages/admin/total/LC_Page_Admin_Total.php

    r16745 r17201  
    6060        $this->arrWDAY = $masterData->getMasterData("mtb_wday"); 
    6161        $this->arrSex = $masterData->getMasterData("mtb_sex"); 
     62        $this->arrJob = $masterData->getMasterData("mtb_job"); 
    6263        // ページタイトル 
    6364        $this->arrTitle[''] = "期間別集計"; 
     
    677678        $where .= " and del_flg=0 and status <> " . ORDER_CANCEL; 
    678679 
    679         $sql = "SELECT T1.product_id, T1.product_code, T1.product_name as name, T1.products_count, T1.order_count, T1.price, T1.total "; 
     680        $sql = "SELECT T1.product_id, T1.product_code, T1.product_name, T1.products_count, T1.order_count, T1.price, T1.total "; 
    680681        $sql.= "FROM ( "; 
    681682        $sql.= "SELECT product_id, product_name, product_code, price, "; 
     
    698699        if($graph) { 
    699700            $image_key = "products_" . $type; 
    700             $objPage->tpl_image = $this->lfGetGraphPie($objPage->arrResults, "name", $image_key, "(売上比率)", $sdate, $edate); 
     701            $objPage->tpl_image = $this->lfGetGraphPie($objPage->arrResults, "product_name", $image_key, "(売上比率)", $sdate, $edate); 
    701702        } 
    702703    } 
     
    719720            $job_key = $objPage->arrResults[$i]['job']; 
    720721            if($job_key != "") { 
    721                 $objPage->arrResults[$i]['job_name'] = $arrJob[$job_key]; 
     722                $objPage->arrResults[$i]['job_name'] = $this->arrJob[$job_key]; 
    722723            } else { 
    723724                $objPage->arrResults[$i]['job_name'] = "未回答"; 
Note: See TracChangeset for help on using the changeset viewer.