- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/total/LC_Page_Admin_Total.php
r22239 r22567 31 31 * @version $Id$ 32 32 */ 33 class LC_Page_Admin_Total extends LC_Page_Admin_Ex { 33 class LC_Page_Admin_Total extends LC_Page_Admin_Ex 34 { 34 35 35 36 // }}} … … 41 42 * @return void 42 43 */ 43 function init() { 44 function init() 45 { 44 46 parent::init(); 45 47 // GDライブラリのインストール判定 … … 91 93 * @return void 92 94 */ 93 function process() { 95 function process() 96 { 94 97 $this->action(); 95 98 $this->sendResponse(); … … 101 104 * @return void 102 105 */ 103 function action() { 106 function action() 107 { 104 108 105 109 if (isset($_GET['draw_image']) && $_GET['draw_image'] != '') { … … 170 174 * @return void 171 175 */ 172 function destroy() { 176 function destroy() 177 { 173 178 parent::destroy(); 174 179 } 175 180 176 181 /* デフォルト値の取得 */ 177 function lfGetDateDefault() { 182 function lfGetDateDefault() 183 { 178 184 $year = date('Y'); 179 185 $month = date('m'); … … 202 208 203 209 /* パラメーター情報の初期化 */ 204 function lfInitParam(&$objFormParam) { 210 function lfInitParam(&$objFormParam) 211 { 205 212 // デフォルト値の取得 206 213 $arrList = $this->lfGetDateDefault(); … … 225 232 226 233 /* 入力内容のチェック */ 227 function lfCheckError(&$objFormParam) { 234 function lfCheckError(&$objFormParam) 235 { 228 236 229 237 $objFormParam->convParam(); … … 251 259 252 260 /* サブナビを移動しても日付が残るようにセッションに入力期間を記録する */ 253 function lfSaveDateSession($session, $arrForm) { 261 function lfSaveDateSession($session, $arrForm) 262 { 254 263 255 264 // session の初期化をする … … 266 275 267 276 /* 日付の初期値 */ 268 function lfGetDateInit() { 277 function lfGetDateInit() 278 { 269 279 $search_startyear_m = $search_startyear = $search_endyear = date('Y'); 270 280 $search_startmonth_m = $search_startmonth = $search_endmonth = date('m'); … … 275 285 276 286 /* フォームで入力された日付を適切な形にする */ 277 function lfSetStartEndDate(&$objFormParam) { 287 function lfSetStartEndDate(&$objFormParam) 288 { 278 289 $arrRet = $objFormParam->getHashArray(); 279 290 … … 294 305 295 306 /* 折れ線グラフの作成 */ 296 function lfGetGraphLine($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate, $xincline) { 307 function lfGetGraphLine($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate, $xincline) 308 { 297 309 298 310 $ret_path = ''; … … 352 364 353 365 // 円グラフの作成 354 function lfGetGraphPie($arrResults, $keyname, $type, $title = '', $sdate = '', $edate = '') { 366 function lfGetGraphPie($arrResults, $keyname, $type, $title = '', $sdate = '', $edate = '') 367 { 355 368 356 369 $ret_path = ''; … … 396 409 397 410 // 棒グラフの作成 398 function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate) { 411 function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate) 412 { 399 413 $ret_path = ''; 400 414 … … 442 456 443 457 // グラフ用のPNGファイル名 444 function lfGetGraphPng($keyname) { 458 function lfGetGraphPng($keyname) 459 { 445 460 446 461 if ($_POST['search_startyear_m'] != '') { … … 453 468 454 469 // 会員、非会員集計のWHERE分の作成 455 function lfGetWhereMember($col_date, $sdate, $edate, $type, $col_member = 'customer_id') { 470 function lfGetWhereMember($col_date, $sdate, $edate, $type, $col_member = 'customer_id') 471 { 456 472 $where = ''; 457 473 // 取得日付の指定 … … 496 512 497 513 /** 会員別集計 **/ 498 function lfGetOrderMember($type, $sdate, $edate) { 514 function lfGetOrderMember($type, $sdate, $edate) 515 { 499 516 $objQuery = SC_Query_Ex::getSingletonInstance(); 500 517 … … 537 554 538 555 /** 商品別集計 **/ 539 function lfGetOrderProducts($type, $sdate, $edate) { 556 function lfGetOrderProducts($type, $sdate, $edate) 557 { 540 558 $objQuery = SC_Query_Ex::getSingletonInstance(); 541 559 … … 574 592 575 593 /** 職業別集計 **/ 576 function lfGetOrderJob($type, $sdate, $edate) { 594 function lfGetOrderJob($type, $sdate, $edate) 595 { 577 596 $objQuery = SC_Query_Ex::getSingletonInstance(); 578 597 list($where, $arrWhereVal) = $this->lfGetWhereMember('dtb_order.create_date', $sdate, $edate, $type); … … 610 629 611 630 /** 年代別集計 **/ 612 function lfGetOrderAge($type, $sdate, $edate) { 631 function lfGetOrderAge($type, $sdate, $edate) 632 { 613 633 614 634 $objQuery = SC_Query_Ex::getSingletonInstance(); … … 648 668 /** 期間別集計 **/ 649 669 // todo あいだの日付埋める 650 function lfGetOrderTerm($type, $sdate, $edate) { 670 function lfGetOrderTerm($type, $sdate, $edate) 671 { 651 672 $objQuery = SC_Query_Ex::getSingletonInstance(); 652 673 … … 704 725 * 期間中の日付を埋める 705 726 */ 706 function lfAddBlankLine($arrResults, $type, $st, $ed) { 727 function lfAddBlankLine($arrResults, $type, $st, $ed) 728 { 707 729 708 730 $arrDateList = $this->lfDateTimeArray($type, $st, $ed); … … 730 752 * 731 753 */ 732 function lfDateTimeArray($type, $st, $ed) { 754 function lfDateTimeArray($type, $st, $ed) 755 { 733 756 switch ($type) { 734 757 case 'month': … … 771 794 * 合計を付与する 772 795 */ 773 function lfAddTotalLine($arrResults) { 796 function lfAddTotalLine($arrResults) 797 { 774 798 // 検索結果が0でない場合 775 799 if (count($arrResults) > 0) { … … 790 814 791 815 // 必要なカラムのみ抽出する(CSVデータで取得する) 792 function lfGetDataColCSV($arrData, $arrDataCol) { 816 function lfGetDataColCSV($arrData, $arrDataCol) 817 { 793 818 $max = count($arrData); 794 819 $csv_data = ''; … … 806 831 } 807 832 808 function lfGetCSVColum($page) { 833 function lfGetCSVColum($page) 834 { 809 835 switch ($page) { 810 836 // 商品別集計
Note: See TracChangeset
for help on using the changeset viewer.