summaryrefslogtreecommitdiffstats
path: root/Website/main.php
blob: 3a5bd253812fb2cf5e99b0161dda861f7cbab50f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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>