summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/web/networkResult.php
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode/web/networkResult.php')
-rw-r--r--notFinishedCode/web/networkResult.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/notFinishedCode/web/networkResult.php b/notFinishedCode/web/networkResult.php
index 2f46044..208dba6 100644
--- a/notFinishedCode/web/networkResult.php
+++ b/notFinishedCode/web/networkResult.php
@@ -23,7 +23,7 @@
/* Create and populate the pData object */
$MyData = new pData();
- $MyData->addPoints(array(66,100,50,39,28),"Hits");
+ $MyData->addPoints(array($GSMINTPercent,$GSMEXTPercent,$SIPPercent,$UNISIPPercent,$LANDLINEPercent),"Hits");
$MyData->setAxisName(0,"Network operability");
$MyData->addPoints(array("GSM University","GSM External","SIP","Uni.Tel.network","Landline"),"Networks");
$MyData->setSerieDescription("Networks","Networks");
@@ -249,16 +249,17 @@
// Set the grid size
$mySurface->setGrid(4,0);
- $mySurface->writeXLabels(array("Angle"=>45,"Labels"=>array("SIP Server","SIP Gate","UNI SIP","nanoBTS 1","nanoBTS 2")));
+ $mySurface->writeXLabels(array("Angle"=>45,"Labels"=>array("SIP","Landline","Uni. Telephone","nanoBTS 1","nanoBTS 2")));
$mySurface->writeYLabels(array("Labels"=>array("Ping")));
- $Palette = array(0=>array("R"=>0,"G"=>255,"B"=>0, "Alpha"=>40),
- 1=>array("R"=>255,"G"=>0,"B"=>1, "Alpha"=>40));
- // Add random values
- for($i=0; $i<=5; $i++)
- {
- $mySurface->addPoint($i,0,rand(0,1));
- }
+ $Palette = array(1=>array("R"=>0,"G"=>255,"B"=>0, "Alpha"=>40),
+ 0=>array("R"=>255,"G"=>0,"B"=>1, "Alpha"=>40));
+
+ $mySurface->addPoint(0,0,$SIPP);
+ $mySurface->addPoint(1,0,$LANDLINEP);
+ $mySurface->addPoint(2,0,$UNISIPP);
+ $mySurface->addPoint(3,0,$NANOBTS1P);
+ $mySurface->addPoint(4,0,$NANOBTS2P);
// Draw the surface chart
$mySurface->drawSurface(array("Border"=>TRUE,"Surrounding"=>40,"Palette"=>$Palette));