-
Notifications
You must be signed in to change notification settings - Fork 16
/
track-status.php
123 lines (111 loc) · 4.46 KB
/
track-status.php
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Courier / Cargo Tracking Script in PHP - Ver 0.97</title>
<link href="css/mystyle.css" rel="stylesheet" type="text/css">
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="900">
<tbody><tr>
<td width="900">
<table border="0" cellpadding="0" cellspacing="0" width="900">
<tbody><tr>
<td><img src="images/trheader.jpg" height="109" width="900"></td>
</tr>
<tr>
<td bgcolor="#FFCC00"> </td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table border="0" cellpadding="1" cellspacing="1" align="center" width="98%">
<tbody><tr>
<td class="Partext1"> </td>
</tr>
<tr>
<td class="Partext1"><div align="center">
<table cellpadding="4" cellspacing="0" align="center" width="70%">
<script language="javascript">
function validate()
{
if (form.Consignment.value == "" )
{
alert("Consignment No is required.");
form.track.focus( );
return false;
}
}
</script>
<tbody><tr>
<td class="TrackTitle" valign="top"><div class="newtext" align="center"><strong> Track and Trace your Cargo/Courier <br>
</strong></div></td>
</tr>
<tr>
<td class="bottom" valign="middle"> </td>
</tr>
<tr bgcolor="EFEFEF">
<td class="aalpha" valign="top"><div align="center">Enter the Consignment no </div></td>
</tr>
<tr bgcolor="EFEFEF">
<td valign="top"><div align="center">
<form action="track-result.php" method="post" name="form" id="form" >
<input name="Consignment" class="gentxt" id="Consignment" maxlength="50" type="text">
<input name="Submit" type="submit" class="gentxt" onClick="MM_validateForm('Consignment','','R');return document.MM_returnValue" value="Track now">
</form>
<span class="gentxt">Ex: IXM53533553 </span> </div></td>
</tr>
<tr bgcolor="EFEFEF">
<td valign="top"> </td>
</tr>
<tr bgcolor="EFEFEF">
<td class="TrackNormalBlue" bgcolor="#FFFFFF" valign="top"> </td>
</tr>
</tbody></table>
</div></td>
</tr>
<tr>
<td class="Partext1"> </td>
</tr>
<tr>
<td> </td>
</tr>
</tbody></table> </td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" align="center" width="900">
<tbody><tr>
<td bgcolor="#2284d5" height="40" width="476"> </td>
<td bgcolor="#2284d5" width="304"> </td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</body></html>