summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTriatmoko2011-10-26 01:24:08 +0200
committerTriatmoko2011-10-26 01:24:08 +0200
commitd99d839aa73c5293a3485f78ad7d6ddcf0d6ce32 (patch)
tree5e050d8f2cf1950f8cb40a8e9550b3bdfb78bcb5
parentMerge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest (diff)
downloadgsm-selftest-d99d839aa73c5293a3485f78ad7d6ddcf0d6ce32.tar.gz
gsm-selftest-d99d839aa73c5293a3485f78ad7d6ddcf0d6ce32.tar.xz
gsm-selftest-d99d839aa73c5293a3485f78ad7d6ddcf0d6ce32.zip
update device manual
-rw-r--r--For Weekly Test/tricode/devconf.php4
-rw-r--r--backupWebsite/devconfigManual.php30
-rw-r--r--backupWebsite/main.php12
-rw-r--r--notFinishedCode/Report/Tri-report.docbin52736 -> 55296 bytes
4 files changed, 34 insertions, 12 deletions
diff --git a/For Weekly Test/tricode/devconf.php b/For Weekly Test/tricode/devconf.php
index 237c5bb..2f5bc00 100644
--- a/For Weekly Test/tricode/devconf.php
+++ b/For Weekly Test/tricode/devconf.php
@@ -25,7 +25,7 @@ $dbname = 'gsmselftesting';
mysql_select_db($dbname);
//End of connection stuff
include 'mutexFunctions.php'; //mutex functions, isfree, lock and release
-include 'insertData.php'; //insert task functions
+//include 'insertData.php'; //insert task functions
$nameOfLock = 'Webpage';
$timeToKeepTheMutex = 360;
@@ -98,7 +98,7 @@ if ($locking == '1') //1 means nobody is on the website
fwrite($fp, 'DISCONNECT'); //tell the testing software it may close
break;
}
- }
+ }
}
fclose($fp);//close the soccket and the connection
diff --git a/backupWebsite/devconfigManual.php b/backupWebsite/devconfigManual.php
index c021e0f..e12ebd8 100644
--- a/backupWebsite/devconfigManual.php
+++ b/backupWebsite/devconfigManual.php
@@ -1,4 +1,9 @@
-<!DOCTYPE html>
+<?php
+
+$db = mysql_connect("localhost","root","randompasswordSQL");
+mysql_select_db("gsmselftesting",$db);
+?>
+
<html>
<head>
@@ -8,7 +13,22 @@
</head>
<body background="Images/BackGround.jpg">
-
+<?php
+$message='';
+if (isset($_REQUEST['Submit']))
+ {
+ $sql="UPDATE DeviceAddressTable SET portName = '$_POST[portname]', number = '$_POST[number]' WHERE deviceName = '$_POST[device]'";
+ if($result = mysql_query($sql ,$db))
+ {
+ $message = '<font size="3" face="Century Gothic" color="LightGray"> UPDATE Device Succeed</font>';
+ }
+ else
+ {
+ echo "ERROR: ".mysql_error();
+ }
+ }
+else {
+?>
<!--<FORM name="testForm" form action="devconf.php" method="POST">-->
<table style="width:50%; margin:auto" border="0">
<tr>
@@ -39,7 +59,7 @@
<tr>
<td height="200px" align="center"></td>
- <td height="200px" align="center"></td>
+ <td height="200px" align="center"><?php $message ?></td>
<td height="200px" align="center"></td>
</tr>
@@ -51,7 +71,9 @@
</table>
</tr>
</table>
-
+<?php
+}
+?>
</body>
</html>
diff --git a/backupWebsite/main.php b/backupWebsite/main.php
index 835c3df..60cef31 100644
--- a/backupWebsite/main.php
+++ b/backupWebsite/main.php
@@ -2,12 +2,12 @@
<tr>
<td height="100px" width ="120px" align="left">
<font size="3" face="Century Gothic" color="LightGray">
- <form name="myform" action="xxx.php" method="POST">
- <input type="radio" name="device" value="RZ" /> RZ GSM 1<br>
- <input type="radio" name="device" value="EPlus" /> E-Plus<br>
- <input type="radio" name="device" value="O2" /> O2<br>
- <input type="radio" name="device" value="Vodaphone" /> Vodaphone<br>
- <input type="radio" name="device" value="T-Mobile" /> T-Mobile<br>
+ <form action="" method="POST">
+ <input type="radio" name="device" value="GSMRZ1" /> RZ GSM 1<br>
+ <input type="radio" name="device" value="GSMext.Eplus" /> E-Plus<br>
+ <input type="radio" name="device" value="GSMext.O2" /> O2<br>
+ <input type="radio" name="device" value="GSMext.Voda" /> Vodaphone<br>
+ <input type="radio" name="device" value="GSMext.Tm" /> T-Mobile<br>
</font>
</td>
diff --git a/notFinishedCode/Report/Tri-report.doc b/notFinishedCode/Report/Tri-report.doc
index aab3512..5b00f7d 100644
--- a/notFinishedCode/Report/Tri-report.doc
+++ b/notFinishedCode/Report/Tri-report.doc
Binary files differ