Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/total/LC_Page_Admin_Total.php

    r22567 r22796  
    3131 * @version $Id$ 
    3232 */ 
    33 class LC_Page_Admin_Total extends LC_Page_Admin_Ex  
    34 { 
     33class LC_Page_Admin_Total extends LC_Page_Admin_Ex { 
    3534 
    3635    // }}} 
     
    4241     * @return void 
    4342     */ 
    44     function init() 
    45     { 
     43    function init() { 
    4644        parent::init(); 
    4745        // GDライブラリのインストール判定 
     
    9391     * @return void 
    9492     */ 
    95     function process() 
    96     { 
     93    function process() { 
    9794        $this->action(); 
    9895        $this->sendResponse(); 
     
    104101     * @return void 
    105102     */ 
    106     function action() 
    107     { 
     103    function action() { 
    108104 
    109105        if (isset($_GET['draw_image']) && $_GET['draw_image'] != '') { 
     
    174170     * @return void 
    175171     */ 
    176     function destroy() 
    177     { 
     172    function destroy() { 
    178173        parent::destroy(); 
    179174    } 
    180175 
    181176    /* デフォルト値の取得 */ 
    182     function lfGetDateDefault() 
    183     { 
     177    function lfGetDateDefault() { 
    184178        $year = date('Y'); 
    185179        $month = date('m'); 
     
    208202 
    209203    /* パラメーター情報の初期化 */ 
    210     function lfInitParam(&$objFormParam) 
    211     { 
     204    function lfInitParam(&$objFormParam) { 
    212205        // デフォルト値の取得 
    213206        $arrList = $this->lfGetDateDefault(); 
     
    232225 
    233226    /* 入力内容のチェック */ 
    234     function lfCheckError(&$objFormParam) 
    235     { 
     227    function lfCheckError(&$objFormParam) { 
    236228 
    237229        $objFormParam->convParam(); 
     
    259251 
    260252    /* サブナビを移動しても日付が残るようにセッションに入力期間を記録する */ 
    261     function lfSaveDateSession($session, $arrForm) 
    262     { 
     253    function lfSaveDateSession($session, $arrForm) { 
    263254 
    264255        // session の初期化をする 
     
    275266 
    276267    /* 日付の初期値 */ 
    277     function lfGetDateInit() 
    278     { 
     268    function lfGetDateInit() { 
    279269        $search_startyear_m     = $search_startyear  = $search_endyear  = date('Y'); 
    280270        $search_startmonth_m    = $search_startmonth = $search_endmonth = date('m'); 
     
    285275 
    286276    /* フォームで入力された日付を適切な形にする */ 
    287     function lfSetStartEndDate(&$objFormParam) 
    288     { 
     277    function lfSetStartEndDate(&$objFormParam) { 
    289278        $arrRet = $objFormParam->getHashArray(); 
    290279 
     
    305294 
    306295    /* 折れ線グラフの作成 */ 
    307     function lfGetGraphLine($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate, $xincline) 
    308     { 
     296    function lfGetGraphLine($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate, $xincline) { 
    309297 
    310298        $ret_path = ''; 
     
    364352 
    365353    // 円グラフの作成 
    366     function lfGetGraphPie($arrResults, $keyname, $type, $title = '', $sdate = '', $edate = '') 
    367     { 
     354    function lfGetGraphPie($arrResults, $keyname, $type, $title = '', $sdate = '', $edate = '') { 
    368355 
    369356        $ret_path = ''; 
     
    409396 
    410397    // 棒グラフの作成 
    411     function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate) 
    412     { 
     398    function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate) { 
    413399        $ret_path = ''; 
    414400 
     
    456442 
    457443    // グラフ用のPNGファイル名 
    458     function lfGetGraphPng($keyname) 
    459     { 
     444    function lfGetGraphPng($keyname) { 
    460445 
    461446        if ($_POST['search_startyear_m'] != '') { 
     
    468453 
    469454    // 会員、非会員集計のWHERE分の作成 
    470     function lfGetWhereMember($col_date, $sdate, $edate, $type, $col_member = 'customer_id') 
    471     { 
     455    function lfGetWhereMember($col_date, $sdate, $edate, $type, $col_member = 'customer_id') { 
    472456        $where = ''; 
    473457        // 取得日付の指定 
     
    512496 
    513497    /** 会員別集計 **/ 
    514     function lfGetOrderMember($type, $sdate, $edate) 
    515     { 
     498    function lfGetOrderMember($type, $sdate, $edate) { 
    516499        $objQuery = SC_Query_Ex::getSingletonInstance(); 
    517500 
     
    554537 
    555538    /** 商品別集計 **/ 
    556     function lfGetOrderProducts($type, $sdate, $edate) 
    557     { 
     539    function lfGetOrderProducts($type, $sdate, $edate) { 
    558540        $objQuery = SC_Query_Ex::getSingletonInstance(); 
    559541 
     
    592574 
    593575    /** 職業別集計 **/ 
    594     function lfGetOrderJob($type, $sdate, $edate) 
    595     { 
     576    function lfGetOrderJob($type, $sdate, $edate) { 
    596577        $objQuery = SC_Query_Ex::getSingletonInstance(); 
    597578        list($where, $arrWhereVal) = $this->lfGetWhereMember('dtb_order.create_date', $sdate, $edate, $type); 
     
    629610 
    630611    /** 年代別集計 **/ 
    631     function lfGetOrderAge($type, $sdate, $edate) 
    632     { 
     612    function lfGetOrderAge($type, $sdate, $edate) { 
    633613 
    634614        $objQuery = SC_Query_Ex::getSingletonInstance(); 
     
    668648    /** 期間別集計 **/ 
    669649    // todo あいだの日付埋める 
    670     function lfGetOrderTerm($type, $sdate, $edate) 
    671     { 
     650    function lfGetOrderTerm($type, $sdate, $edate) { 
    672651        $objQuery   = SC_Query_Ex::getSingletonInstance(); 
    673652 
     
    725704     * 期間中の日付を埋める 
    726705     */ 
    727     function lfAddBlankLine($arrResults, $type, $st, $ed) 
    728     { 
     706    function lfAddBlankLine($arrResults, $type, $st, $ed) { 
    729707 
    730708        $arrDateList = $this->lfDateTimeArray($type, $st, $ed); 
     
    752730     * 
    753731     */ 
    754     function lfDateTimeArray($type, $st, $ed) 
    755     { 
     732    function lfDateTimeArray($type, $st, $ed) { 
    756733        switch ($type) { 
    757734            case 'month': 
     
    794771     * 合計を付与する 
    795772     */ 
    796     function lfAddTotalLine($arrResults) 
    797     { 
     773    function lfAddTotalLine($arrResults) { 
    798774        // 検索結果が0でない場合 
    799775        if (count($arrResults) > 0) { 
     
    814790 
    815791    // 必要なカラムのみ抽出する(CSVデータで取得する) 
    816     function lfGetDataColCSV($arrData, $arrDataCol) 
    817     { 
     792    function lfGetDataColCSV($arrData, $arrDataCol) { 
    818793        $max = count($arrData); 
    819794        $csv_data = ''; 
    820795        for ($i = 0; $i < $max; $i++) { 
    821796            foreach ($arrDataCol as $val) { 
    822                 $arrRet[$i][$val] = ($arrData[$i][$val]) ? $arrData[$i][$val] : "0"; 
     797                $arrRet[$i][$val] = $arrData[$i][$val]; 
    823798            } 
    824799            // 期間別集計の合計行の「期間」項目に不要な値が表示されてしまわない様、'合計'と表示する 
     
    831806    } 
    832807 
    833     function lfGetCSVColum($page) 
    834     { 
     808    function lfGetCSVColum($page) { 
    835809        switch ($page) { 
    836810            // 商品別集計 
Note: See TracChangeset for help on using the changeset viewer.