summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/web/startTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode/web/startTest.php')
-rw-r--r--notFinishedCode/web/startTest.php135
1 files changed, 115 insertions, 20 deletions
diff --git a/notFinishedCode/web/startTest.php b/notFinishedCode/web/startTest.php
index 309e3fe..56b1602 100644
--- a/notFinishedCode/web/startTest.php
+++ b/notFinishedCode/web/startTest.php
@@ -1,34 +1,129 @@
<html>
<head>
<!--ADD HERE ALL THE NEEDED META DATA -->
-<title>Network test stuff!</title>
+<title>Uni-Freiburg Network test</title>
<link rel="stylesheet" href="css/formCSS.css" type="text/css" media="screen">
+<link rel="stylesheet" href="css/tooltip.css" type="text/css" media="screen">
</head>
+
<body>
+<div>
+Please select the type of the test you would like to perform or manually choose your tests! Then please press the submit button!
+</div>
+<div>
+<form>
+ <input type=button value="Simple test" onClick="simpleTest()">
+ <input type=button value="Smart test" onClick="smartTest()">
+ <input type=button value="Full test" onClick="fullTest()">
+ <input type=button value="Deselect all values" onClick="deselectTest()">
+</form>
+</div>
<div class='section form'>
-
-<FORM NAME="form1" form action="mutex1.php" method="POST">
+<form name="testForm" form action="mutex1.php" method="POST">
<div class='leftcol'>
- <label><input type="checkbox" NAME="sip_gsmrz1"> SIP to RZ-GSM 1</label>
- <label><input type="checkbox" NAME="sip_gsmrz2"> SIP to RZ-GSM 2</label>
- <label><input type="checkbox" NAME="sip_gsmrz3"> SIP to RZ-GSM 3</label>
- <label><input type="checkbox" NAME="sip_landln"> SIP to Landline</label>
- <label><input type="checkbox" NAME="sip_sipuniv"> SIP to SIP University Phone line</label>
- <label><input type="checkbox" NAME="gsmrz1_sip"> RZ-GSM 1 to SIP</label>
- <label><input type="checkbox" NAME="gsmrz2_sip"> RZ-GSM 2 to SIP</label>
- <label><input type="checkbox" NAME="gsmrz3_sip"> RZ-GSM 3 to SIP</label>
- <label><input type="checkbox" NAME="gsmrz1_gsmrz2"> RZ-GSM 1 to RZ-GSM 2</label>
- <label><input type="checkbox" NAME="gsmrz1_gsmrz3"> RZ-GSM 1 to RZ-GSM 3</label>
- <label><input type="checkbox" NAME="gsmrz2_gsmrz3"> RZ-GSM 2 to RZ-GSM 3</label>
- <label><input type="checkbox" NAME="landline_sip"> Landline to SIP </label>
- <label><input type="checkbox" NAME="landline_gsmrz1"> Landline to RZ-GSM 1</label>
- <label><input type="checkbox" NAME="landline_gsmrz2"> Landline to RZ-GSM 2</label>
- <label><input type="checkbox" NAME="landline_gsmrz3"> Landline to RZ-GSM 3</label>
- <BR> <INPUT TYPE=SUBMIT VALUE="Submit">
+ <label><input type="checkbox" name='sip_gsmrz1'> SIP to RZ-GSM 1</label>
+ <label><input type="checkbox" name="sip_gsmrz2"> SIP to RZ-GSM 2</label>
+ <label><input type="checkbox" name="sip_gsmrz3"> SIP to RZ-GSM 3</label>
+
+ <label><input type="checkbox" name="sip_landln"> SIP to Landline</label>
+ <label><input type="checkbox" name="sip_sipuniv"> SIP to Uni.telephone</label>
+
+
+ <label><input type="checkbox" name="gsmrz1_sip"> RZ-GSM 1 to SIP</label>
+ <label><input type="checkbox" name="gsmrz2_sip"> RZ-GSM 2 to SIP</label>
+ <label><input type="checkbox" name="gsmrz3_sip"> RZ-GSM 3 to SIP</label>
+
+ <label><input type="checkbox" name="gsmrz1_gsmrz2"> RZ-GSM 1 to RZ-GSM 2</label>
+ <label><input type="checkbox" name="gsmrz1_gsmrz3"> RZ-GSM 1 to RZ-GSM 3</label>
+ <label><input type="checkbox" name="gsmrz2_gsmrz3"> RZ-GSM 2 to RZ-GSM 3</label>
+
+
+ <label><input type="checkbox" name="landline_sip"> Landline to SIP </label>
+
+ <label><input type="checkbox" name="landline_gsmrz1"> Landline to RZ-GSM 1</label>
+ <label><input type="checkbox" name="landline_gsmrz2"> Landline to RZ-GSM 2</label>
+ <label><input type="checkbox" name="landline_gsmrz3"> Landline to RZ-GSM 3</label>
+
+
+ <label><input type="checkbox" name="gsmrz1_gsmee"> RZ-GSM 1 to E-Plus</label>
+ <label><input type="checkbox" name="gsmrz1_gsmev"> RZ-GSM 1 to Vodaphone</label>
+ <label><input type="checkbox" name="gsmrz1_gsmet"> RZ-GSM 1 to T-Mobile</label>
+ <label><input type="checkbox" name="gsmrz1_gsmeo"> RZ-GSM 1 to O2</label>
+
+ <label><input type="checkbox" name="gsmrz2_gsmee"> RZ-GSM 2 to E-Plus</label>
+ <label><input type="checkbox" name="gsmrz2_gsmev"> RZ-GSM 2 to Vodaphone</label>
+ <label><input type="checkbox" name="gsmrz2_gsmet"> RZ-GSM 2 to T-Mobile</label>
+ <label><input type="checkbox" name="gsmrz2_gsmeo"> RZ-GSM 2 to O2</label>
+
+ <label><input type="checkbox" name="gsmrz3_gsmee"> RZ-GSM 3 to E-Plus</label>
+ <label><input type="checkbox" name="gsmrz3_gsmev"> RZ-GSM 3 to Vodaphone</label>
+ <label><input type="checkbox" name="gsmrz3_gsmet"> RZ-GSM 3 to T-Mobile</label>
+ <label><input type="checkbox" name="gsmrz3_gsmeo"> RZ-GSM 3 to O2</label>
+
+
+ <label><input type="checkbox" name="unisip_gsmee"> Uni.telephone to E-Plus</label>
+ <label><input type="checkbox" name="unisip_gsmev"> Uni.telephone to Vodaphone</label>
+ <label><input type="checkbox" name="unisip_gsmet"> Uni.telephone to T-Mobile</label>
+ <label><input type="checkbox" name="unisip_gsmeo"> Uni.telephone to O2</label>
+
+
+ <label><input type="checkbox" name="landline_gsmrz1"> Landline to RZ-GSM 1</label>
+ <label><input type="checkbox" name="landline_gsmrz2"> Landline to RZ-GSM 2</label>
+ <label><input type="checkbox" name="landline_gsmrz3"> Landline to RZ-GSM 3</label>
+
+ <a class="tooltip" href="#">
+ <input type=SUBMIT value="Submit">
+ <span class="custom warning">
+ <img src="css/information.png" alt="Warning" height="48" width="48" />
+ <em>Warning</em>
+ This is just an example of what you can do using a CSS tooltip, feel free to get creative and produce your own!</span>
+ </a>
</div>
-</FORM>
+</form>
</div>
+
<script type="text/javascript" src="mootools.js"></script>
<script type="text/javascript" src="moocheck.js"></script>
+<script type = "text/javascript">
+function simpleTest()
+{
+ document.testForm.sip_gsmrz1.checked=true
+ document.testForm.sip_gsmrz2.checked=true
+ document.testForm.sip_gsmrz3.checked=true
+ FancyForm.update(document.testForm.sip_gsmrz1.getParent())
+ FancyForm.update(document.testForm.sip_gsmrz2.getParent())
+ FancyForm.update(document.testForm.sip_gsmrz3.getParent())
+}
+
+function fullTest()
+{
+ document.testForm.sip_gsmrz1.checked=true
+ document.testForm.sip_gsmrz2.checked=true
+ document.testForm.sip_gsmrz3.checked=true
+ FancyForm.update(document.testForm.sip_gsmrz1.getParent())
+ FancyForm.update(document.testForm.sip_gsmrz2.getParent())
+ FancyForm.update(document.testForm.sip_gsmrz3.getParent())
+}
+
+function smartTest()
+{
+ document.testForm.sip_gsmrz1.checked=true
+ document.testForm.sip_gsmrz2.checked=true
+ document.testForm.sip_gsmrz3.checked=true
+ FancyForm.update(document.testForm.sip_gsmrz1.getParent())
+ FancyForm.update(document.testForm.sip_gsmrz2.getParent())
+ FancyForm.update(document.testForm.sip_gsmrz3.getParent())
+}
+
+function deselectAll()
+{
+ document.testForm.sip_gsmrz1.checked=true
+ document.testForm.sip_gsmrz2.checked=true
+ document.testForm.sip_gsmrz3.checked=true
+ FancyForm.update(document.testForm.sip_gsmrz1.getParent())
+ FancyForm.update(document.testForm.sip_gsmrz2.getParent())
+ FancyForm.update(document.testForm.sip_gsmrz3.getParent())
+}
+</script>
</body>
</html>