Ignore:
Timestamp:
2006/08/31 19:39:09 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

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

    r3532 r3533  
    362362        $path = GRAPH_DIR . $pngname; 
    363363         
    364         // ¥°¥é¥Õ²èÁü¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤À¤±ºîÀ®¤¹¤ë 
    365         //if(!file_exists($path)) { 
    366                          
    367             // ¥é¥Ù¥ëɽ¼¨¥¤¥ó¥¿¡¼¥Ð¥ë¤òµá¤á¤ë 
    368             $interval = intval(count($arrList) / 20); 
    369             if($interval < 1) { 
    370                 $interval = 1; 
    371             } 
    372             $objGraphPie = new SC_GraphPie(); 
    373             $objGraphLine = new SC_GraphLine(); 
    374              
    375             // ÃͤΥ»¥Ã¥È 
    376             $objGraphLine->setData($arrList); 
    377             $objGraphLine->setXLabel(array_keys($arrList)); 
    378              
    379             // ¥é¥Ù¥ë²óž(ÆüËܸìÉÔ²Ä) 
    380             if($keyname == "key_day"){ 
    381                 $objGraphLine->setXLabelAngle(-45); 
    382             } 
    383  
    384             // ¥¿¥¤¥È¥ë¥»¥Ã¥È 
    385             $objGraphLine->setXTitle($xtitle); 
    386             $objGraphLine->setYTitle($ytitle); 
    387              
    388             // ¥á¥¤¥ó¥¿¥¤¥È¥ëºîÀ® 
    389             list($sy, $sm, $sd) = split("[/ ]" , $sdate); 
    390             list($ey, $em, $ed) = split("[/ ]" , $edate); 
    391             $start_date = $sy . "ǯ" . $sm . "·î" . $sd . "Æü"; 
    392             $end_date = $ey . "ǯ" . $em . "·î" . $ed . "Æü"; 
    393             $objGraphLine->drawTitle("½¸·×´ü´Ö¡§" . $start_date . " - " . $end_date); 
    394              
    395             // ¥°¥é¥ÕÉÁ²è 
    396             $objGraphLine->drawGraph(); 
    397             $objGraphLine->outputGraph(false, $path); 
    398         //} 
     364        // ¥é¥Ù¥ëɽ¼¨¥¤¥ó¥¿¡¼¥Ð¥ë¤òµá¤á¤ë 
     365        $interval = intval(count($arrList) / 20); 
     366        if($interval < 1) { 
     367            $interval = 1; 
     368        } 
     369        $objGraphPie = new SC_GraphPie(); 
     370        $objGraphLine = new SC_GraphLine(); 
     371         
     372        // ÃͤΥ»¥Ã¥È 
     373        $objGraphLine->setData($arrList); 
     374        $objGraphLine->setXLabel(array_keys($arrList)); 
     375         
     376        // ¥é¥Ù¥ë²óž(ÆüËܸìÉÔ²Ä) 
     377        if($keyname == "key_day"){ 
     378            $objGraphLine->setXLabelAngle(-45); 
     379        } 
     380 
     381        // ¥¿¥¤¥È¥ë¥»¥Ã¥È 
     382        $objGraphLine->setXTitle($xtitle); 
     383        $objGraphLine->setYTitle($ytitle); 
     384         
     385        // ¥á¥¤¥ó¥¿¥¤¥È¥ëºîÀ® 
     386        list($sy, $sm, $sd) = split("[/ ]" , $sdate); 
     387        list($ey, $em, $ed) = split("[/ ]" , $edate); 
     388        $start_date = $sy . "ǯ" . $sm . "·î" . $sd . "Æü"; 
     389        $end_date = $ey . "ǯ" . $em . "·î" . $ed . "Æü"; 
     390        $objGraphLine->drawTitle("½¸·×´ü´Ö¡§" . $start_date . " - " . $end_date); 
     391         
     392        // ¥°¥é¥ÕÉÁ²è 
     393        $objGraphLine->drawGraph(); 
     394        $objGraphLine->outputGraph(false, $path); 
     395 
    399396        // ¥Õ¥¡¥¤¥ë¥Ñ¥¹¤òÊÖ¤¹ 
    400397        $ret_path = GRAPH_URL . $pngname; 
Note: See TracChangeset for help on using the changeset viewer.