summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/web/testCase.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/testCase.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/testCase.php')
-rw-r--r--notFinishedCode/web/testCase.php59
1 files changed, 48 insertions, 11 deletions
diff --git a/notFinishedCode/web/testCase.php b/notFinishedCode/web/testCase.php
index 288d065..0c7b16b 100644
--- a/notFinishedCode/web/testCase.php
+++ b/notFinishedCode/web/testCase.php
@@ -1,29 +1,51 @@
<?
-
//color definitions
$colorDunno = array("R"=>216,"G"=>166,"B"=>14,"BorderR"=>0,"BorderG"=>0,"BorderB"=>0);
$colorFail = array("R"=>255, "G"=>25, "B"=>25,"BorderR"=>0,"BorderG"=>0,"BorderB"=>0);
$colorWork = array("R"=>150,"G"=>215,"B"=>121,"BorderR"=>0,"BorderG"=>0,"BorderB"=>0);
+
+$GSMRZ1 = $_GET['RZ1'];
+$GSMRZ2 = $_GET['RZ2'];
+$GSMRZ3 = $_GET['RZ3'];
+
+$SIP = $_GET['S'];
+$UNISIP = $_GET['US'];
+$LANDLINE = $_GET['LL'];
+$LSFKS = $_GET['LS'];
+
+$GSMEE = $_GET['EE'];
+$GSMEV = $_GET['EV'];
+$GSMET = $_GET['ET'];
+$GSMEO = $_GET['EO'];
+
+
+$SIPP = $_GET['SP'];
+$LANDLINEP = $_GET['SGP'];
+$UNISIPP = $_GET['USP'];
+$NANOBTS1P = $_GET['NBP1'];
+$NANOBTS2P = $_GET['NBP2'];
+/*
$GSMRZ1 = 0;
$GSMRZ2 = -10;
$GSMRZ3 = 10;
-$SIP = 0;
+$SIP = 4;
$UNISIP = 0;
-$LANDLINE = 0;
+$LANDLINE = 1;
+$LSFKS = 1;
$GSMEE = 10;
$GSMEV = 10;
-$GSMET = 10;
+$GSMET = -10;
$GSMEO = 10;
-
+*/
$GSMEXTCOL = 'icons/box_dunno.png';
$GSMINTCOL = "icons/server_dunno.png";
$LSFKSCOL = "icons/server_dunno.png";
-$SIPCOL = $colorDunno;
-$UNISIPCOL = $colorDunno;
+$SIPCOL = 'icons/sip_dunno';
+$UNISIPCOL = 'icons/uni-network_dunno.png';
$LANDLINECOL = 'icons/telephone_dunno.png';
$BTS1COL = $colorDunno;
@@ -66,22 +88,31 @@ elseif($LANDLINE<0)
$LANDLINECOL = 'icons/telephone_fail.png';
}
+if($LSFKS>0)
+{
+ $LSFKSCOL = 'icons/server_work.png';
+}
+elseif($LSFKS<0)
+{
+ $LSFKSCOL = 'icons/server_fail.png';
+}
+
if($SIP>0)
{
- $SIPCOL = $colorWork;
+ $SIPCOL = 'icons/sip_work.png';
}
elseif($SIP<0)
{
- $SIPCOL = $colorFail;
+ $SIPCOL = 'icons/sip_fail.png';
}
if($UNISIP > 0)
{
- $UNISIPCOL = $colorWork;
+ $UNISIPCOL = 'icons/uni-network_work.png';
}
elseif($UNISIP < 0)
{
- $UNISIPCOL = $colorFail;
+ $UNISIPCOL = 'icons/uni-network_fail.png';
}
if($GSMEE > 0 || $GSMEV > 0 || $GSMET > 0 || $GSMEO > 0)
@@ -156,6 +187,12 @@ elseif($GSMEO < 0)
$GSMEOCOL = 'icons/blackberry_fail.png';
}
+//NETWORK OPERABILITY
+$GSMINTPercent = 54;
+$GSMEXTPercent = 75;
+$SIPPercent = 100;
+$UNISIPPercent = 0;
+$LANDLINEPercent = 0;
//print_r($GSMINTCOL);
// add here to set the color for each node after the test ;)