summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/web/mutex1.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/mutex1.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/mutex1.php')
-rw-r--r--notFinishedCode/web/mutex1.php37
1 files changed, 30 insertions, 7 deletions
diff --git a/notFinishedCode/web/mutex1.php b/notFinishedCode/web/mutex1.php
index 11d7529..bc9139d 100644
--- a/notFinishedCode/web/mutex1.php
+++ b/notFinishedCode/web/mutex1.php
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/tableCSS.css" type="text/css" media="screen">
</head>
<body onscroll="scrollEvent();" onload="loaderInit();">
-
+<div>
<?php
//Connection stuff
@@ -20,7 +20,6 @@ $dbpass = 'randompasswordSQL';
$port = 34500;
$ip = 'localhost';
-
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
$dbname = 'gsmselftesting';
@@ -40,7 +39,7 @@ if ($locking == '1') //1 means nobody is on the website
if ($lockMe == '1') //1 means a successful lock
{
include 'post.php'; // read posted data and add them to the database
- echo 'WE had errors: '. $errorAdding;
+// echo 'WE had errors: '. $errorAdding;
//stuff to do here
//check if the software is running!
$softwareLock = 'SoftwareStarted';
@@ -78,7 +77,8 @@ if ($locking == '1') //1 means nobody is on the website
if ($received == "CONFIRM\n") //we got the confirmation from the testing software
{
- echo '<table summary = "Results">
+ echo '<div id="main">
+ <table summary = "Results">
<thead>
<tr>
<th scope = "col"> From: </th>
@@ -95,9 +95,32 @@ if ($locking == '1') //1 means nobody is on the website
elseif ($received == "TEST DONE\n")
{
//test finished successfully
+ $GSMRZ1 = 0;
+ $GSMRZ2 = 10;
+ $GSMRZ3 = 10;
+
+ $SIP = 4;
+ $UNISIP = -1;
+ $LANDLINE = 1;
+ $LSFKS = 1;
+
+ $GSMEE = 10;
+ $GSMEV = 10;
+ $GSMET = -10;
+ $GSMEO = 10;
+
+ $SIPP = 0;
+ $LANDLINEP = 0;
+ $UNISIPP = 1;
+ $NANOBTS1P = 1;
+ $NANOBTS2P = 1;
+
+
echo '</tbody></table>';
- echo 'Test successfully finished!<br>';
- echo "<a class='pChart' href='networkResult.php' data-pchart-alt='Picture3'>Picture 3</a>";
+ echo '</div>';
+ echo '<div id="sidebar">';
+ echo "<a class='pChart' href='networkResult.php?S=$SIP&RZ1=$GSMRZ1&RZ2=$GSMRZ2&RZ3=$GSMRZ3&US=$UNISIP&LL=$LANDLINE&LS=$LSFKS&EE=$GSMEE&EV=$GSMEV&ET=$GSMET&EO=$GSMEO&SP=$SIPP&SGP=$LANDLINEP&USP=$UNISIPP&NBP1=$NANOBTS1P&NBP2=$NANOBTS2P' data-pchart-alt='Picture3'>Picture 3</a></div>";
+ echo '<div id="footer">Test successfully finished!</div>';
echo str_repeat("\n",7024);
flush();
usleep(100);
@@ -167,7 +190,7 @@ else
echo 'We have some serious error here';
}
?>
-
+</div>
</body>
</html>