From c064dcb7124ac293ff834e14dd45a85eb26e1c76 Mon Sep 17 00:00:00 2001 From: Refik Hadzialic Date: Fri, 9 Sep 2011 20:46:09 +0200 Subject: changed the interface look as suggested by Konrad. added passing of variables between the result creation php document and mutex1.php (generating everything you see in the output) --- notFinishedCode/web/networkResult.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'notFinishedCode/web/networkResult.php') 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)); -- cgit v1.2.3-55-g7522