コード例 #1
0
$serie2->addPoint(new Point("{$month} 11", $ro->getPHICReceivablesMonthly_package($month, "11", $year) / 1000));
$serie2->addPoint(new Point("{$month} 10", $ro->getPHICReceivablesMonthly_package($month, "10", $year) / 1000));
$serie2->addPoint(new Point("{$month} 09", $ro->getPHICReceivablesMonthly_package($month, "09", $year) / 1000));
$serie2->addPoint(new Point("{$month} 08", $ro->getPHICReceivablesMonthly_package($month, "08", $year) / 1000));
$serie2->addPoint(new Point("{$month} 07", $ro->getPHICReceivablesMonthly_package($month, "07", $year) / 1000));
$serie2->addPoint(new Point("{$month} 06", $ro->getPHICReceivablesMonthly_package($month, "06", $year) / 1000));
$serie2->addPoint(new Point("{$month} 05", $ro->getPHICReceivablesMonthly_package($month, "05", $year) / 1000));
$serie2->addPoint(new Point("{$month} 04", $ro->getPHICReceivablesMonthly_package($month, "04", $year) / 1000));
$serie2->addPoint(new Point("{$month} 03", $ro->getPHICReceivablesMonthly_package($month, "03", $year) / 1000));
$serie2->addPoint(new Point("{$month} 02", $ro->getPHICReceivablesMonthly_package($month, "02", $year) / 1000));
$serie2->addPoint(new Point("{$month} 01", $ro->getPHICReceivablesMonthly_package($month, "01", $year) / 1000));
$nonPackage = $ro->getPHICReceivablesMonthly($month, "01", $year) + $ro->getPHICReceivablesMonthly($month, "02", $year) + $ro->getPHICReceivablesMonthly($month, "03", $year) + $ro->getPHICReceivablesMonthly($month, "04", $year) + $ro->getPHICReceivablesMonthly($month, "05", $year) + $ro->getPHICReceivablesMonthly($month, "06", $year) + $ro->getPHICReceivablesMonthly($month, "07", $year) + $ro->getPHICReceivablesMonthly($month, "08", $year) + $ro->getPHICReceivablesMonthly($month, "09", $year) + $ro->getPHICReceivablesMonthly($month, "10", $year) + $ro->getPHICReceivablesMonthly($month, "11", $year) + $ro->getPHICReceivablesMonthly($month, "12", $year) + $ro->getPHICReceivablesMonthly($month, "13", $year) + $ro->getPHICReceivablesMonthly($month, "14", $year) + $ro->getPHICReceivablesMonthly($month, "15", $year) + $ro->getPHICReceivablesMonthly($month, "16", $year) + $ro->getPHICReceivablesMonthly($month, "17", $year) + $ro->getPHICReceivablesMonthly($month, "18", $year) + $ro->getPHICReceivablesMonthly($month, "19", $year) + $ro->getPHICReceivablesMonthly($month, "20", $year) + $ro->getPHICReceivablesMonthly($month, "21", $year) + $ro->getPHICReceivablesMonthly($month, "22", $year) + $ro->getPHICReceivablesMonthly($month, "23", $year) + $ro->getPHICReceivablesMonthly($month, "24", $year) + $ro->getPHICReceivablesMonthly($month, "25", $year) + $ro->getPHICReceivablesMonthly($month, "26", $year) + $ro->getPHICReceivablesMonthly($month, "27", $year) + $ro->getPHICReceivablesMonthly($month, "28", $year) + $ro->getPHICReceivablesMonthly($month, "29", $year) + $ro->getPHICReceivablesMonthly($month, "30", $year) + $ro->getPHICReceivablesMonthly($month, "31", $year);
$package = $ro->getPHICReceivablesMonthly_package($month, "01", $year) + $ro->getPHICReceivablesMonthly_package($month, "02", $year) + $ro->getPHICReceivablesMonthly_package($month, "03", $year) + $ro->getPHICReceivablesMonthly_package($month, "04", $year) + $ro->getPHICReceivablesMonthly_package($month, "05", $year) + $ro->getPHICReceivablesMonthly_package($month, "06", $year) + $ro->getPHICReceivablesMonthly_package($month, "07", $year) + $ro->getPHICReceivablesMonthly_package($month, "08", $year) + $ro->getPHICReceivablesMonthly_package($month, "09", $year) + $ro->getPHICReceivablesMonthly_package($month, "10", $year) + $ro->getPHICReceivablesMonthly_package($month, "11", $year) + $ro->getPHICReceivablesMonthly_package($month, "12", $year) + $ro->getPHICReceivablesMonthly_package($month, "13", $year) + $ro->getPHICReceivablesMonthly_package($month, "14", $year) + $ro->getPHICReceivablesMonthly_package($month, "15", $year) + $ro->getPHICReceivablesMonthly_package($month, "16", $year) + $ro->getPHICReceivablesMonthly_package($month, "17", $year) + $ro->getPHICReceivablesMonthly_package($month, "18", $year) + $ro->getPHICReceivablesMonthly_package($month, "19", $year) + $ro->getPHICReceivablesMonthly_package($month, "20", $year) + $ro->getPHICReceivablesMonthly_package($month, "21", $year) + $ro->getPHICReceivablesMonthly_package($month, "22", $year) + $ro->getPHICReceivablesMonthly_package($month, "23", $year) + $ro->getPHICReceivablesMonthly_package($month, "24", $year) + $ro->getPHICReceivablesMonthly_package($month, "25", $year) + $ro->getPHICReceivablesMonthly_package($month, "26", $year) + $ro->getPHICReceivablesMonthly_package($month, "27", $year) + $ro->getPHICReceivablesMonthly_package($month, "28", $year) + $ro->getPHICReceivablesMonthly_package($month, "29", $year) + $ro->getPHICReceivablesMonthly_package($month, "30", $year) + $ro->getPHICReceivablesMonthly_package($month, "31", $year);
$dataSet = new XYSeriesDataSet();
$dataSet->addSerie("PhilHealth Non-Package (" . number_format($nonPackage, 2) . ")", $serie1);
$dataSet->addSerie("PhilHealth Package (" . number_format($package, 2) . ")", $serie2);
$chart->setDataSet($dataSet);
$chart->setTitle("PhilHealth Receivables for {$month} {$year}");
$chart->render("../../../COCONUT/graphicalReport/chartList/phicReceivables.png");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Libchart line demonstration</title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
</head>
<body>
	<img alt="Line chart" src="/COCONUT/graphicalReport/chartList/phicReceivables.png" style="border: 1px solid gray;"/>
</body>
</html>
コード例 #2
0
$serie2->addPoint(new Point("{$month} 11 ", $ro->getPxRevenueDaily_ipd($month, "11", $year) / 1000));
$serie2->addPoint(new Point("{$month} 10 ", $ro->getPxRevenueDaily_ipd($month, "10", $year) / 1000));
$serie2->addPoint(new Point("{$month} 09 ", $ro->getPxRevenueDaily_ipd($month, "09", $year) / 1000));
$serie2->addPoint(new Point("{$month} 08 ", $ro->getPxRevenueDaily_ipd($month, "08", $year) / 1000));
$serie2->addPoint(new Point("{$month} 07 ", $ro->getPxRevenueDaily_ipd($month, "07", $year) / 1000));
$serie2->addPoint(new Point("{$month} 06 ", $ro->getPxRevenueDaily_ipd($month, "06", $year) / 1000));
$serie2->addPoint(new Point("{$month} 05 ", $ro->getPxRevenueDaily_ipd($month, "05", $year) / 1000));
$serie2->addPoint(new Point("{$month} 04 ", $ro->getPxRevenueDaily_ipd($month, "04", $year) / 1000));
$serie2->addPoint(new Point("{$month} 03 ", $ro->getPxRevenueDaily_ipd($month, "03", $year) / 1000));
$serie2->addPoint(new Point("{$month} 02 ", $ro->getPxRevenueDaily_ipd($month, "02", $year) / 1000));
$serie2->addPoint(new Point("{$month} 01 ", $ro->getPxRevenueDaily_ipd($month, "01", $year) / 1000));
$totalOPD = $ro->getPxRevenueDaily_opd($month, "01", $year) + $ro->getPxRevenueDaily_opd($month, "02", $year) + $ro->getPxRevenueDaily_opd($month, "03", $year) + $ro->getPxRevenueDaily_opd($month, "04", $year) + $ro->getPxRevenueDaily_opd($month, "05", $year) + $ro->getPxRevenueDaily_opd($month, "06", $year) + $ro->getPxRevenueDaily_opd($month, "07", $year) + $ro->getPxRevenueDaily_opd($month, "08", $year) + $ro->getPxRevenueDaily_opd($month, "09", $year) + $ro->getPxRevenueDaily_opd($month, "10", $year) + $ro->getPxRevenueDaily_opd($month, "11", $year) + $ro->getPxRevenueDaily_opd($month, "12", $year) + $ro->getPxRevenueDaily_opd($month, "13", $year) + $ro->getPxRevenueDaily_opd($month, "14", $year) + $ro->getPxRevenueDaily_opd($month, "15", $year) + $ro->getPxRevenueDaily_opd($month, "16", $year) + $ro->getPxRevenueDaily_opd($month, "17", $year) + $ro->getPxRevenueDaily_opd($month, "18", $year) + $ro->getPxRevenueDaily_opd($month, "19", $year) + $ro->getPxRevenueDaily_opd($month, "20", $year) + $ro->getPxRevenueDaily_opd($month, "21", $year) + $ro->getPxRevenueDaily_opd($month, "22", $year) + $ro->getPxRevenueDaily_opd($month, "23", $year) + $ro->getPxRevenueDaily_opd($month, "24", $year) + $ro->getPxRevenueDaily_opd($month, "25", $year) + $ro->getPxRevenueDaily_opd($month, "26", $year) + $ro->getPxRevenueDaily_opd($month, "27", $year) + $ro->getPxRevenueDaily_opd($month, "28", $year) + $ro->getPxRevenueDaily_opd($month, "29", $year) + $ro->getPxRevenueDaily_opd($month, "30", $year) + $ro->getPxRevenueDaily_opd($month, "31", $year);
$totalIPD = $ro->getPxRevenueDaily_ipd($month, "01", $year) + $ro->getPxRevenueDaily_ipd($month, "02", $year) + $ro->getPxRevenueDaily_ipd($month, "03", $year) + $ro->getPxRevenueDaily_ipd($month, "04", $year) + $ro->getPxRevenueDaily_ipd($month, "05", $year) + $ro->getPxRevenueDaily_ipd($month, "06", $year) + $ro->getPxRevenueDaily_ipd($month, "07", $year) + $ro->getPxRevenueDaily_ipd($month, "08", $year) + $ro->getPxRevenueDaily_ipd($month, "09", $year) + $ro->getPxRevenueDaily_ipd($month, "10", $year) + $ro->getPxRevenueDaily_ipd($month, "11", $year) + $ro->getPxRevenueDaily_ipd($month, "12", $year) + $ro->getPxRevenueDaily_ipd($month, "13", $year) + $ro->getPxRevenueDaily_ipd($month, "14", $year) + $ro->getPxRevenueDaily_ipd($month, "15", $year) + $ro->getPxRevenueDaily_ipd($month, "16", $year) + $ro->getPxRevenueDaily_ipd($month, "17", $year) + $ro->getPxRevenueDaily_ipd($month, "18", $year) + $ro->getPxRevenueDaily_ipd($month, "19", $year) + $ro->getPxRevenueDaily_ipd($month, "20", $year) + $ro->getPxRevenueDaily_ipd($month, "21", $year) + $ro->getPxRevenueDaily_ipd($month, "22", $year) + $ro->getPxRevenueDaily_ipd($month, "23", $year) + $ro->getPxRevenueDaily_ipd($month, "24", $year) + $ro->getPxRevenueDaily_ipd($month, "25", $year) + $ro->getPxRevenueDaily_ipd($month, "26", $year) + $ro->getPxRevenueDaily_ipd($month, "27", $year) + $ro->getPxRevenueDaily_ipd($month, "28", $year) + $ro->getPxRevenueDaily_ipd($month, "29", $year) + $ro->getPxRevenueDaily_ipd($month, "30", $year) + $ro->getPxRevenueDaily_ipd($month, "31", $year);
$dataSet = new XYSeriesDataSet();
$dataSet->addSerie("OPD - " . number_format($totalOPD, 2) . "", $serie1);
$dataSet->addSerie("IPD - " . number_format($totalIPD, 2) . "", $serie2);
$chart->setDataSet($dataSet);
$chart->setTitle("Revenue for {$month} {$year}");
$chart->render("../../../COCONUT/graphicalReport/chartList/monthlyRev.png");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Libchart line demonstration</title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
</head>
<body>
	<img alt="Line chart" src="/COCONUT/graphicalReport/chartList/monthlyRev.png" style="border: 1px solid gray;"/>
</body>
</html>
コード例 #3
0
$serie1->addPoint(new Point("{$month} 10", number_format($ro->getBestSellingChart_ipd($month, "10", $year, $description) / 1000, 2)));
$serie1->addPoint(new Point("{$month} 9", number_format($ro->getBestSellingChart_ipd($month, "09", $year, $description) / 1000, 2)));
$serie1->addPoint(new Point("{$month} 8", number_format($ro->getBestSellingChart_ipd($month, "08", $year, $description) / 1000, 2)));
$serie1->addPoint(new Point("{$month} 7", number_format($ro->getBestSellingChart_ipd($month, "07", $year, $description) / 1000, 2)));
$serie1->addPoint(new Point("{$month} 6", number_format($ro->getBestSellingChart_ipd($month, "06", $year, $description) / 1000, 2)));
$serie1->addPoint(new Point("{$month} 5", number_format($ro->getBestSellingChart_ipd($month, "05", $year, $description) / 1000, 2)));
$serie1->addPoint(new Point("{$month} 4", number_format($ro->getBestSellingChart_ipd($month, "04", $year, $description) / 1000, 2)));
$serie1->addPoint(new Point("{$month} 3", number_format($ro->getBestSellingChart_ipd($month, "03", $year, $description) / 1000, 2)));
$serie1->addPoint(new Point("{$month} 2", number_format($ro->getBestSellingChart_ipd($month, "02", $year, $description) / 1000, 2)));
$serie1->addPoint(new Point("{$month} 1", number_format($ro->getBestSellingChart_ipd($month, "01", $year, $description) / 1000, 2)));
$dataSet = new XYSeriesDataSet();
$dataSet->addSerie("{$description} ", $serie1);
$chart->setDataSet($dataSet);
$chart->getPlot()->setGraphCaptionRatio(0.35);
$chart->setTitle("{$description} for {$month} {$year}");
$chart->render("../../../COCONUT/graphicalReport/chartList/sellingDetails_ipd.png");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Sales of <?php 
echo $description;
?>
 for <?php 
echo $month;
echo $year;
?>
</title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />

</head>