summaryrefslogtreecommitdiffstats
path: root/Website/main.php
diff options
context:
space:
mode:
authorgsmselftest2011-11-09 16:41:00 +0100
committergsmselftest2011-11-09 16:41:00 +0100
commit1c009430af80260d67c47652783931414989c75d (patch)
tree204540af3ff3d8e23892986ad7585080900b7463 /Website/main.php
parentReport relocating! (diff)
downloadgsm-selftest-1c009430af80260d67c47652783931414989c75d.tar.gz
gsm-selftest-1c009430af80260d67c47652783931414989c75d.tar.xz
gsm-selftest-1c009430af80260d67c47652783931414989c75d.zip
Final folder team project
Diffstat (limited to 'Website/main.php')
-rw-r--r--Website/main.php63
1 files changed, 63 insertions, 0 deletions
diff --git a/Website/main.php b/Website/main.php
new file mode 100644
index 0000000..3a5bd25
--- /dev/null
+++ b/Website/main.php
@@ -0,0 +1,63 @@
+<SCRIPT language=Javascript>
+
+ function isNumberKey(evt)
+ {
+ var charCode = (evt.which) ? evt.which : event.keyCode
+ if (charCode > 31 && (charCode < 48 || charCode > 57))
+ return false;
+
+ return true;
+ }
+
+ function ValidateForm(form){
+ ErrorText= "";
+ if ( ( form.device[0].checked == false ) && ( form.device[1].checked == false ) && ( form.device[2].checked == false )&& ( form.device[3].checked == false )&& ( form.device[4].checked == false )) {
+ alert ( "Please choose your The device" );
+ return false;
+ }
+
+ var port = form.portname.value;
+ var ime = form.imei.value;
+ var num = form.number.value;
+
+ if ((port==null || port=="") && (num==null || num=="")) {alert("* all information must be filled out");return false;}
+}
+</SCRIPT>
+
+ <table style="width:50%; margin:auto" border="0">
+ <tr>
+ <td height="100px" width ="120px" align="left">
+ <font size="3" face="Century Gothic" color="LightGray">
+ <form name ="insert" action="insertdevice.php" 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>
+ <td height="100px" width ="100px" align="left">
+ <font size="3" face="Century Gothic" color="LightGray">
+ Port Address<br>
+ IMEI<br>
+ Number<br>
+ </font>
+ </td>
+ <td height="100px" width ="90px" align="left">
+ <font size="3" face="Century Gothic" color="LightGray">
+ : <input type="text" name="portname" /> *</br>
+ : <input type="text" name="imei" onkeypress="return isNumberKey(event)"/><br>
+ : <input type="text" name="number" onkeypress="return isNumberKey(event)"/> *<br>
+ </font>
+ </td>
+ <td height="100px" width ="50px" align="left">
+ <font size="3" face="Century Gothic" color="LightGray">
+ <INPUT type="image" value="submit" name="submit" src="Images/SubmitButton.png" onClick="ValidateForm(this.form)"><br />
+ </font>
+ </td>
+
+ </form>
+ </tr>
+ </table>
+