Changeset 2919 for temp/trunk
- Timestamp:
- 2006/08/30 15:56:52 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/total/index.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/total/index.php
r2918 r2919 393 393 394 394 // ±ß¥°¥é¥Õ¤ÎºîÀ® 395 function lfGetGraphPie($arrResults, $keyname, $type, $title = "" ) {395 function lfGetGraphPie($arrResults, $keyname, $type, $title = "", $sdate, $edate) { 396 396 397 397 $ret_path = ""; … … 424 424 // ¥á¥¤¥ó¥¿¥¤¥È¥ëºîÀ® 425 425 $arrKey = array_keys($arrList); 426 list($sy, $sm, $sd) = split(" /" , $arrKey[0]);427 list($ey, $em, $ed) = split(" /" , $arrKey[count($arrKey) - 1]);428 $start Key= $sy . "ǯ" . $sm . "·î" . $sd . "Æü";429 $end Key= $ey . "ǯ" . $em . "·î" . $ed . "Æü";430 $objGraph Pie->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); 431 431 432 432 // ±ß¥°¥é¥ÕÉÁ²è … … 443 443 444 444 // ËÀ¥°¥é¥Õ¤ÎºîÀ® 445 function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle ) {445 function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate) { 446 446 $ret_path = ""; 447 447 … … 467 467 // ¥á¥¤¥ó¥¿¥¤¥È¥ëºîÀ® 468 468 $arrKey = array_keys($arrList); 469 list($sy, $sm, $sd) = split(" /" , $arrKey[0]);470 list($ey, $em, $ed) = split(" /" , $arrKey[count($arrKey) - 1]);471 $start Key= $sy . "ǯ" . $sm . "·î" . $sd . "Æü";472 $end Key= $ey . "ǯ" . $em . "·î" . $ed . "Æü";473 $objGraph Bar->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); 474 474 475 475 $objGraphBar->drawGraph(); … … 633 633 if($graph) { 634 634 $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); 636 636 } 637 637 … … 674 674 $xtitle = "(ǯÎð)"; 675 675 $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); 677 677 } 678 678
Note: See TracChangeset
for help on using the changeset viewer.
