-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.php
120 lines (63 loc) · 1.87 KB
/
index.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
<?php
error_reporting(0);
?>
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>CEK RESI</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/js/bootstrap.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#loading').ajaxStart(function(){
$(this).show();
}).ajaxStop(function(){
$(this).hide();
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#loading').ajaxStart(function(){
$(this).show();
}).ajaxStop(function(){
$(this).hide();
});
$("#cek").on('click', function(){
$("#iloading").show();
$("#formku2").submit(function(){
$.ajax({
url: "i_tracking.php",
type:"POST",
data:$(this).serialize(),
success:function(data){
$("#ihasil").html(data);
$("#iloading").hide();
}
});
return false;
});
});
$("#iloading").hide();
});
</script>
</head>
<body>
<h1>CEK RESI</h1>
<form class="search" method="POST" name="formku2" id="formku2">
<input class="search-input" type="search" name="resi" id="resi" placeholder="Nomor Resi..." value="" autofocus="" required="">
<select name="jasa" id="jasa" class="search-select" required>
<option value="jne">JNE</option>
<option value="pos">POS</option>
<option value="tiki">TIKI</option>
</select>
<button class="search-submit" type="submit" name="cek" id="cek">Cek Resi</button>
</form>
<div id="iloading">
<img src="progress-bar.gif" width="100" height="16">loading...
</div>
<div id="ihasil"></div>
</body></html>