Changeset 2919 for temp/trunk


Ignore:
Timestamp:
2006/08/30 15:56:52 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/total/index.php

    r2918 r2919  
    393393 
    394394// ±ß¥°¥é¥Õ¤ÎºîÀ®  
    395 function lfGetGraphPie($arrResults, $keyname, $type, $title = "") { 
     395function lfGetGraphPie($arrResults, $keyname, $type, $title = "", $sdate, $edate) { 
    396396     
    397397    $ret_path = ""; 
     
    424424            // ¥á¥¤¥ó¥¿¥¤¥È¥ëºîÀ® 
    425425            $arrKey = array_keys($arrList); 
    426             list($sy, $sm, $sd) = split("/" , $arrKey[0]); 
    427             list($ey, $em, $ed) = split("/" , $arrKey[count($arrKey) - 1]); 
    428             $startKey = $sy . "ǯ" . $sm . "·î" . $sd . "Æü"; 
    429             $endKey = $ey . "ǯ" . $em . "·î" . $ed . "Æü"; 
    430             $objGraphPie->drawTitle("½¸·×´ü´Ö¡§" . $startKey . " - " . $endKey); 
     426            list($sy, $sm, $sd) = split("[/ ]" , $sdate); 
     427            list($ey, $em, $ed) = split("[/ ]" , $edate); 
     428            $start_date = $sy . "ǯ" . $sm . "·î" . $sd . "Æü"; 
     429            $end_date = $ey . "ǯ" . $em . "·î" . $ed . "Æü"; 
     430            $objGraphLine->drawTitle("½¸·×´ü´Ö¡§" . $start_date . " - " . $end_date); 
    431431                     
    432432            // ±ß¥°¥é¥ÕÉÁ²è 
     
    443443 
    444444// ËÀ¥°¥é¥Õ¤ÎºîÀ®  
    445 function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle) { 
     445function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate) { 
    446446    $ret_path = ""; 
    447447     
     
    467467            // ¥á¥¤¥ó¥¿¥¤¥È¥ëºîÀ® 
    468468            $arrKey = array_keys($arrList); 
    469             list($sy, $sm, $sd) = split("/" , $arrKey[0]); 
    470             list($ey, $em, $ed) = split("/" , $arrKey[count($arrKey) - 1]); 
    471             $startKey = $sy . "ǯ" . $sm . "·î" . $sd . "Æü"; 
    472             $endKey = $ey . "ǯ" . $em . "·î" . $ed . "Æü"; 
    473             $objGraphBar->drawTitle("½¸·×´ü´Ö¡§" . $startKey . " - " . $endKey); 
     469            list($sy, $sm, $sd) = split("[/ ]" , $sdate); 
     470            list($ey, $em, $ed) = split("[/ ]" , $edate); 
     471            $start_date = $sy . "ǯ" . $sm . "·î" . $sd . "Æü"; 
     472            $end_date = $ey . "ǯ" . $em . "·î" . $ed . "Æü"; 
     473            $objGraphLine->drawTitle("½¸·×´ü´Ö¡§" . $start_date . " - " . $end_date); 
    474474             
    475475            $objGraphBar->drawGraph(); 
     
    633633    if($graph) { 
    634634        $image_key = "job_" . $type; 
    635         $objPage->tpl_image = lfGetGraphPie($objPage->arrResults, "job_name", $image_key, "(Çä¾åÈæÎ¨)"); 
     635        $objPage->tpl_image = lfGetGraphPie($objPage->arrResults, "job_name", $image_key, "(Çä¾åÈæÎ¨)", $sdate, $edate); 
    636636    } 
    637637     
     
    674674        $xtitle = "(ǯÎð)"; 
    675675        $ytitle = "(Çä¾å¹ç·×)"; 
    676         $objPage->tpl_image = lfGetGraphBar($objPage->arrResults, "age_name", $image_key, $xtitle, $ytitle); 
     676        $objPage->tpl_image = lfGetGraphBar($objPage->arrResults, "age_name", $image_key, $xtitle, $ytitle, $sdate, $edate); 
    677677    } 
    678678     
Note: See TracChangeset for help on using the changeset viewer.