summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/web/networkResult.php
diff options
context:
space:
mode:
authorRefik Hadzialic2011-09-09 20:46:09 +0200
committerRefik Hadzialic2011-09-09 20:46:09 +0200
commitc064dcb7124ac293ff834e14dd45a85eb26e1c76 (patch)
tree9364b43888f62e30eba355b7b607b73c24ee7069 /notFinishedCode/web/networkResult.php
parentAdded another indicator on the display image! Does the connection exist, ping! (diff)
downloadgsm-selftest-c064dcb7124ac293ff834e14dd45a85eb26e1c76.tar.gz
gsm-selftest-c064dcb7124ac293ff834e14dd45a85eb26e1c76.tar.xz
gsm-selftest-c064dcb7124ac293ff834e14dd45a85eb26e1c76.zip
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)
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));