Changeset 22429 for branches/version-2_12-multilang/data/class/pages/admin/total/LC_Page_Admin_Total.php
- Timestamp:
- 2013/01/27 19:31:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/pages/admin/total/LC_Page_Admin_Total.php
r22425 r22429 65 65 66 66 // ページタイトル todo あとでなおす 67 $this->arrTitle[''] = t(' LC_Page_Admin_Total_001');68 $this->arrTitle['term'] = t(' LC_Page_Admin_Total_002');69 $this->arrTitle['products'] = t(' LC_Page_Admin_Total_003');70 $this->arrTitle['age'] = t(' LC_Page_Admin_Total_004');71 $this->arrTitle['job'] = t(' LC_Page_Admin_Total_005');72 $this->arrTitle['member'] = t(' LC_Page_Admin_Total_006');67 $this->arrTitle[''] = t('c_Sales by period_01'); 68 $this->arrTitle['term'] = t('c_Sales by period_01'); 69 $this->arrTitle['products'] = t('c_Sales by product_01'); 70 $this->arrTitle['age'] = t('c_Sales by age group_01'); 71 $this->arrTitle['job'] = t('c_Sales by occupation_01'); 72 $this->arrTitle['member'] = t('c_Sales by member_01'); 73 73 74 74 // 月度集計のkey名 … … 335 335 list($sy, $sm, $sd) = preg_split('|[/ ]|' , $sdate); 336 336 list($ey, $em, $ed) = preg_split('|[/ ]|' , $edate); 337 $start_date = t(' LC_Page_Admin_Total_007', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd));338 $end_date = t(' LC_Page_Admin_Total_007', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed));339 $objGraphLine->drawTitle(t(' LC_Page_Admin_Total_008', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date)));337 $start_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 338 $end_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 339 $objGraphLine->drawTitle(t('c_Sales period: T_FIELD1 - T_FIELD2_01', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 340 340 341 341 // グラフ描画 … … 379 379 list($sy, $sm, $sd) = preg_split('|[/ ]|' , $sdate); 380 380 list($ey, $em, $ed) = preg_split('|[/ ]|' , $edate); 381 $start_date = t(' LC_Page_Admin_Total_007', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd));382 $end_date = t(' LC_Page_Admin_Total_007', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed));381 $start_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 382 $end_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 383 383 384 $objGraphPie->drawTitle(t(' LC_Page_Admin_Total_008', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date)));384 $objGraphPie->drawTitle(t('c_Sales period: T_FIELD1 - T_FIELD2_01', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 385 385 386 386 // 円グラフ描画 … … 428 428 list($sy, $sm, $sd) = preg_split('|[/ ]|' , $sdate); 429 429 list($ey, $em, $ed) = preg_split('|[/ ]|' , $edate); 430 $start_date = t(' LC_Page_Admin_Total_007', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd));431 $end_date = t(' LC_Page_Admin_Total_007', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed));432 $objGraphBar->drawTitle(t(' LC_Page_Admin_Total_008', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date)));430 $start_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 431 $end_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 432 $objGraphBar->drawTitle(t('c_Sales period: T_FIELD1 - T_FIELD2_01', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 433 433 434 434 $objGraphBar->drawGraph(); … … 529 529 $member_key = $arrResult['order_sex']; 530 530 if ($member_key != '') { 531 $arrResult['member_name'] = (($arrResult['member']) ? t('c_Member_01') : t(' LC_Page_Admin_Total_010')) . $this->arrSex[$member_key];531 $arrResult['member_name'] = (($arrResult['member']) ? t('c_Member_01') : t('c_Non-member_01')) . $this->arrSex[$member_key]; 532 532 } else { 533 $arrResult['member_name'] = t(' LC_Page_Admin_Total_011');533 $arrResult['member_name'] = t('c_Not answered_01'); 534 534 } 535 535 } … … 604 604 $arrResult['job_name'] = $this->arrJob[$job_key]; 605 605 } else { 606 $arrResult['job_name'] = t(' LC_Page_Admin_Total_011');606 $arrResult['job_name'] = t('c_Not answered_01'); 607 607 } 608 608 … … 639 639 $age_key = $arrResult['age']; 640 640 if ($age_key != '') { 641 $arrResult['age_name'] = t(' LC_Page_Admin_Total_012', array('T_FIELD' => $arrResult['age']));641 $arrResult['age_name'] = t('c_T_FIELDs_01', array('T_FIELD' => $arrResult['age'])); 642 642 } else { 643 $arrResult['age_name'] = t(' LC_Page_Admin_Total_011');644 } 645 646 } 647 $tpl_image = $this->lfGetGraphBar($arrTotalResults, 'age_name', 'age_' . $type, t(' LC_Page_Admin_Total_013'), t('LC_Page_Admin_Total_014'), $sdate, $edate);643 $arrResult['age_name'] = t('c_Not answered_01'); 644 } 645 646 } 647 $tpl_image = $this->lfGetGraphBar($arrTotalResults, 'age_name', 'age_' . $type, t('c_(Age)_01'), t('c_(Total sales)_01'), $sdate, $edate); 648 648 649 649 return array($arrTotalResults, $tpl_image); … … 661 661 switch ($type) { 662 662 case 'month': 663 $xtitle = t(' LC_Page_Admin_Total_015');664 $ytitle = t(' LC_Page_Admin_Total_014');663 $xtitle = t('c_(By month)_01'); 664 $ytitle = t('c_(Total sales)_01'); 665 665 $format = '%m'; 666 666 break; 667 667 case 'year': 668 $xtitle = t(' LC_Page_Admin_Total_016');669 $ytitle = t(' LC_Page_Admin_Total_014');668 $xtitle = t('c_(By year)_01'); 669 $ytitle = t('c_(Total sales)_01'); 670 670 $format = '%Y'; 671 671 break; 672 672 case 'wday': 673 $xtitle = t(' LC_Page_Admin_Total_017');674 $ytitle = t(' LC_Page_Admin_Total_014');673 $xtitle = t('c_(By day)_01'); 674 $ytitle = t('c_(Total sales)_01'); 675 675 $format = '%a'; 676 676 break; 677 677 case 'hour': 678 $xtitle = t(' LC_Page_Admin_Total_018');679 $ytitle = t(' LC_Page_Admin_Total_014');678 $xtitle = t('c_(By time)_01'); 679 $ytitle = t('c_(Total sales)_01'); 680 680 $format = '%H'; 681 681 break; 682 682 default: 683 $xtitle = t(' LC_Page_Admin_Total_019');684 $ytitle = t(' LC_Page_Admin_Total_014');683 $xtitle = t('c_(By date)_01'); 684 $ytitle = t('c_(Total sales)_01'); 685 685 $format = '%Y-%m-%d'; 686 686 $xincline = true;
Note: See TracChangeset
for help on using the changeset viewer.