-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
133 lines (76 loc) · 2.28 KB
/
index.php
File metadata and controls
133 lines (76 loc) · 2.28 KB
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
124
125
126
127
128
129
130
131
132
133
<?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.0">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.js"></script>
<script src="../../js/bootstrap.min.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>
<div class="container mt-3">
<h1 class="font-weight-light">LACAK RESI</h1>
<hr>
<form class="search" method="POST" name="formku2" id="formku2">
<input class="search-input form-control m-1" type="search" name="resi" id="resi" placeholder="Nomor Resi..." value="" autofocus="" required="required">
<div class="row">
<div class="col-md-3 m-1">
<select name="jasa" id="jasa" class="search-select form-control" required>
<option value="jne">JNE</option>
<option value="pos">POS</option>
<option value="tiki">TIKI</option>
</select>
</div>
<div class="col-md-3 m-1">
<button class="search-submit btn btn-primary" type="submit" name="cek" id="cek">Cek Resi</button>
</div>
</div>
</form>
<div id="iloading">
<img src="progress-bar.gif" width="100" height="16">loading...
</div>
</div>
<div>
<div style='font-size:10px;' id="ihasil"></div>
</div>
</body>
</html>